GRE-Tunnel

This commit is contained in:
root
2017-11-18 21:00:18 +01:00
parent a0d4c074c7
commit 704f74f44c
6 changed files with 174 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
#GRE-Tunnel zu fff-gw-wue2
#
#???? Michael Mifritscher (mifritscher)
#???? fff@mifritscher.de
#
#fff-gw-wue2
# öffentlich:
# freifunk: 10.50.252.166
#fff-ab-01
# öffentlich: 5.189.177.88
# freifunk: 10.50.252.167
auto fff-gw-wue2
iface fff-gw-wue2 inet static
address 10.50.252.167
pre-up iptunnel add $IFACE mode gre local 5.189.177.88 remote <remote-IP> ttl 225
up ifconfig $IFACE multicast
pointopoint 10.50.252.166
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-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