Konfiguration anpassen
From t-hack.com - Hack X300T / X301T
(→base.txt) |
(→igmp.txt) |
||
Line 21: | Line 21: | ||
IP_NET_1_DEV='eth0' # required: device name like ethX | IP_NET_1_DEV='eth0' # required: device name like ethX | ||
− | + | ||
IP_NET_2='192.168.3.1/24' # IP address of your n'th ethernet card and | IP_NET_2='192.168.3.1/24' # IP address of your n'th ethernet card and | ||
# netmask in CIDR (no. of set bits) | # netmask in CIDR (no. of set bits) | ||
IP_NET_2_DEV='eth2' # required: device name like ethX | IP_NET_2_DEV='eth2' # required: device name like ethX | ||
+ | <br> | ||
+ | 2.Auszug:<br> | ||
+ | #-------------------------------------------------------------------------- | ||
+ | # Known networks - Networks which are allowed to pass the packet | ||
+ | # filter (additional restrictions may be applied via black/white | ||
+ | # lists, port based filters, port forwarding opens additional holes, ...) | ||
+ | #-------------------------------------------------------------------------- | ||
+ | MASQ_NETWORK='IP_NET_1,IP_NET_2' # networks to masquerade (e.g. our LAN) | ||
+ | ROUTE_NETWORK='' # same as masq_network, but packets | ||
+ | <br> | ||
+ | 3.Auszug:<br> | ||
+ | PF_INPUT_N='3' | ||
+ | PF_INPUT_1='IP_NET_1 ACCEPT' # allow all hosts in the local | ||
+ | PF_INPUT_2='IP_NET_2 ACCEPT' # network access to the router | ||
+ | PF_INPUT_3='any 224.0.0.0/4 ACCEPT' | ||
+ | <br> | ||
+ | 4.Auszug:<br> | ||
+ | |||
+ | # otherwise drop packet | ||
+ | PF_FORWARD_N='4' | ||
+ | PF_FORWARD_1='tmpl:samba DROP' # drop samba traffic if it tries | ||
+ | # to leave the subnet | ||
+ | PF_FORWARD_2='IP_NET_1 ACCEPT' # accept everything else | ||
+ | PF_FORWARD_3='IP_NET_2 ACCEPT' | ||
+ | PF_FORWARD_4='any 224.0.0.0/4 ACCEPT' # accept everything else | ||
+ | PF_POSTROUTING_N='2' | ||
+ | PF_POSTROUTING_1='IP_NET_1 MASQUERADE' # masquerade traffic leaving | ||
+ | PF_POSTROUTING_2='IP_NET_2 MASQUERADE' # the subnet | ||
+ | |||
+ | <br> | ||
+ | 5.Auszug:<br> | ||
+ | Damit die Settopbox(en) eine feste IP-Adresse zugewiesen bekommen, müssen im Bereich "HOSTS" diese erfasst und festgelegt werden. | ||
+ | Dafür benötigst Du die MAC-Adresse der Box(en). | ||
+ | |||
+ | |||
+ | HOST_26_NAME='T-HOME-WZ' | ||
+ | HOST_26_IP='192.168.3.4' | ||
+ | HOST_26_MAC='00:D0:E0:XX:XX:XX' # WZ | ||
+ | |||
+ | HOST_27_NAME='T-HOME-BUERO' | ||
+ | HOST_27_IP='192.168.3.5' | ||
+ | HOST_27_MAC='00:D0:E0::XX:XX:XX' # Buero | ||
+ | |||
+ | HOST_30_NAME='T-HOME-SZ' | ||
+ | HOST_30_IP='192.168.3.6' | ||
+ | HOST_30_MAC='00:1A:C3:XX:XX:XX' # Schlafzimmer | ||
+ | |||
+ | <br> | ||
+ | 6.Auszug:<br> | ||
+ | |||
+ | Zusätzlich kannst Du beim DHCP-Server zusätzliche Ranges für weitere Geräte festlegen. | ||
+ | Dafür habe ich im Homenetzwerk 192.168.0.244(DNSDHCP_RANGE_1_START) bis 247(DNSDHCP_RANGE_1_END) und im IPTV-Netzwerk 192.168.3.10 (DNSDHCP_RANGE_2_START) bis .20 (DNSDHCP_RANGE_2_END)vorgesehen. Natürlich kannst Du eigene bereiche festlegen | ||
+ | |||
+ | # Parameters for local Networks | ||
+ | # ----------------------------- | ||
+ | DNSDHCP_RANGE_1_START='192.168.0.244' # start-IP of n'th ethernet, | ||
+ | DNSDHCP_RANGE_1_END='192.168.0.247' # end-IP of n'th ethernet, | ||
+ | DNSDHCP_RANGE_1_DNS_SERVER='' # if empty the IP of interface | ||
+ | DNSDHCP_RANGE_1_NTP_SERVER='' # if empty and OPT_CHRONY='yes' | ||
+ | DNSDHCP_RANGE_1_GATEWAY='' # if empty the IP of interface | ||
+ | DNSDHCP_RANGE_2_START='192.168.3.10' # start-IP of n'th ethernet, | ||
+ | DNSDHCP_RANGE_2_END='192.168.3.20' # end-IP of n'th ethernet, | ||
+ | DNSDHCP_RANGE_2_DNS_SERVER='' # if empty the IP of interface | ||
+ | DNSDHCP_RANGE_2_NTP_SERVER='' # if empty and OPT_CHRONY='yes' | ||
+ | DNSDHCP_RANGE_2_GATEWAY='' # if empty the IP of interface | ||
== dsl.txt == | == dsl.txt == | ||
Line 154: | Line 219: | ||
IGMP_PROXY_ALT_NET_2='217.0.119.0/24' # Required for T-Home | IGMP_PROXY_ALT_NET_2='217.0.119.0/24' # Required for T-Home | ||
IGMP_PROXY_ALT_NET_3='193.158.35.0/24' # Required T-Home | IGMP_PROXY_ALT_NET_3='193.158.35.0/24' # Required T-Home | ||
− | IGMP_PROXY_ALT_NET_4='192.168.3.0/24' # address of my IPTV-box | + | IGMP_PROXY_ALT_NET_4='192.168.3.0/24' # address of my IPTV-box |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |