summaryrefslogtreecommitdiff
path: root/etc/anytun/client3/post-up.sh
diff options
context:
space:
mode:
Diffstat (limited to 'etc/anytun/client3/post-up.sh')
-rwxr-xr-xetc/anytun/client3/post-up.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/anytun/client3/post-up.sh b/etc/anytun/client3/post-up.sh
index f93c347..330d5be 100755
--- a/etc/anytun/client3/post-up.sh
+++ b/etc/anytun/client3/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.3/24
+ip addr add dev $1 fec0::3/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