35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
|
|
#GRE-Tunnel zu fff-has
|
|
#
|
|
#Max Wohlfart (Moexe)
|
|
#
|
|
#fff-has
|
|
# öffentlich alt: 78.47.36.148
|
|
# öffentlich: 46.4.85.120
|
|
# freifunk: 10.50.252.158
|
|
#fff-ab-01
|
|
# öffentlich: 5.189.177.88
|
|
# freifunk: 10.50.252.159
|
|
|
|
auto fff-has
|
|
iface fff-has inet static
|
|
address 10.50.252.159
|
|
#pre-up iptunnel add $IFACE mode gre local 5.189.177.88 remote 78.47.36.148 ttl 225
|
|
pre-up iptunnel add $IFACE mode gre local 5.189.177.88 remote 46.4.85.120 ttl 225
|
|
up ifconfig $IFACE multicast
|
|
pointopoint 10.50.252.158
|
|
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
|
|
#Babel über GRE
|
|
post-up ip -6 addr flush dev $IFACE
|
|
post-up ip -6 addr add fe80::1984/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
|
|
|