summaryrefslogtreecommitdiff
path: root/etc/uanytun/client2/post-up.sh
diff options
context:
space:
mode:
Diffstat (limited to 'etc/uanytun/client2/post-up.sh')
-rwxr-xr-xetc/uanytun/client2/post-up.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/etc/uanytun/client2/post-up.sh b/etc/uanytun/client2/post-up.sh
index d04d6df..9348f47 100755
--- a/etc/uanytun/client2/post-up.sh
+++ b/etc/uanytun/client2/post-up.sh
@@ -1,5 +1,12 @@
#!/bin/sh
-ip addr add dev $1 fde5:30c9:1984::2/48
+ip link set dev $1 up
+ip link set dev $1 mtu 1400
+ip addr add dev $1 192.168.123.2/24
+ip addr add dev $1 fec0::2/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