tibunix.eu

Tips for the configuration of the Turris Omnia, Orange Polska, FTTH, Katowice

/etc/config/network

config interface 'wan'
  option proto 'pppoe'
  option password 'xxxxxxxx'
  option ifname 'eth1.35'
  option mtu '1500'
  option ipv6 '1'
  option username 'xxxxxxx@neostrada.pl/ipv6'

config interface 'iptv'
  option type 'bridge'
  option ifname 'eth2 eth1.838 eth1.839 eth1.840'
  option proto 'none'
  option auto '1'

/etc/rc.local (updated)

for i in 0 1 2 3 4 5 6 7; do
  /usr/sbin/ip link set eth1.838 type vlan egress $i:4 >/dev/null
  /usr/sbin/ip link set eth1.839 type vlan egress $i:4 >/dev/null
  /usr/sbin/ip link set eth1.840 type vlan egress $i:4 >/dev/null
# Only for information, what was previously. #  vconfig set_egress_map eth1.838 $i 4 >/dev/null
#  vconfig set_egress_map eth1.839 $i 4 >/dev/null
#  vconfig set_egress_map eth1.840 $i 4 >/dev/null
done

ebtables -F
ebtables -t filter -A FORWARD -o eth1.838 -d ff:ff:ff:ff:ff:ff/ff:ff:ff:ff:ff:ff -j ACCEPT
ebtables -t filter -A FORWARD -o eth1.838 -d 01:00:00:00:00:00/01:00:00:00:00:00 -j DROP

exit 0