diff --git a/etc/default/babeld b/etc/default/babeld index 6f8512a..2ed7385 100644 --- a/etc/default/babeld +++ b/etc/default/babeld @@ -2,7 +2,7 @@ # sourced by /etc/init.d/babeld # List of interfaces on which the protocol should operate -INTERFACES="fff-has2 fff-has fff-wue1 fff-sw" +INTERFACES="fff-has2 fff-has fff-wue1 fff-sw fff-gw-sw" # Additional arguments DAEMON_ARGS="-S /var/lib/babeld/state" diff --git a/etc/network/interfaces b/etc/network/interfaces index b5195e9..5f47f0c 100644 --- a/etc/network/interfaces +++ b/etc/network/interfaces @@ -38,6 +38,8 @@ source /etc/network/interfaces.d/gre_fff-wue1 source /etc/network/interfaces.d/gre_fff-sw +source /etc/network/interfaces.d/gre_fff-gw-sw + #source /etc/network/interfaces.d/gre_fff-gw-wue2 #source /etc/network/interfaces.d/gre_fff-gw-m3 diff --git a/etc/network/interfaces.d/gre_fff-gw-sw b/etc/network/interfaces.d/gre_fff-gw-sw new file mode 100644 index 0000000..1bd627a --- /dev/null +++ b/etc/network/interfaces.d/gre_fff-gw-sw @@ -0,0 +1,32 @@ + +#GRE-Tunnel zu fff-gw-sw +# +#Dennis Eisold (de@itstall.de) +# +#fff-gw-sw +# öffentlich: 173.212.207.163 +# freifunk: 10.50.252.3 +#fff-ab-01 +# öffentlich: 5.189.177.88 +# freifunk: 10.50.252.161 + +auto fff-gw-sw +iface fff-gw-sw inet static + address 10.50.252.161 + pre-up iptunnel add $IFACE mode gre remote 173.212.207.163 local 5.189.177.88 ttl 255 + up ifconfig $IFACE multicast + pointopoint 10.50.252.3 + post-up iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -o $IFACE -j TCPMSS --clamp-mss-to-pmtu + post-up ip rule add iif $IFACE table fff + post-up ip rule add from 10.50.0.0/16 table fff + post-up ip rule add to 10.50.0.0/16 table fff + post-up ip -6 addr flush dev $IFACE + post-up ip -6 addr add fe80::1983:1:5/64 dev $IFACE + post-down ip rule del iif $IFACE table fff + post-down ip rule del from 10.50.0.0/16 table fff + post-down ip rule del to 10.50.0.0/16 table fff + post-down iptables -t mangle -D POSTROUTING -p tcp --tcp-flags SYN,RST SYN -o $IFACE -j TCPMSS --clamp-mss-to-pmtu + post-down iptunnel del $IFACE + + +