summaryrefslogtreecommitdiff
path: root/etc/anytun/client1/post-up.sh
diff options
context:
space:
mode:
Diffstat (limited to 'etc/anytun/client1/post-up.sh')
-rwxr-xr-xetc/anytun/client1/post-up.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/anytun/client1/post-up.sh b/etc/anytun/client1/post-up.sh
index bf01387..e9e3a8b 100755
--- a/etc/anytun/client1/post-up.sh
+++ b/etc/anytun/client1/post-up.sh
@@ -3,5 +3,10 @@
ip link set dev $1 up
ip link set dev $1 mtu 1400
ip addr add dev $1 192.168.123.1/24
+ip addr add dev $1 fec0::1/128
+
+# Disable ICMP Redirects as they don't work within the tunnel
+echo 0 > /proc/sys/net/ipv4/conf/$1/send_redirects
+echo 0 > /proc/sys/net/ipv4/conf/$1/accept_redirects
exit 0