summaryrefslogtreecommitdiff
path: root/etc/uanytun/client3/post-up.sh
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-02-27 18:52:04 +0000
committerChristian Pointner <equinox@anytun.org>2009-02-27 18:52:04 +0000
commitbd0d88050efd3d7664a8ca48c460d83891c854a0 (patch)
tree967b123633e5fc28d94d5f6bd319cc6f5a57153a /etc/uanytun/client3/post-up.sh
parentupdated manpage (diff)
updated sample config
Diffstat (limited to 'etc/uanytun/client3/post-up.sh')
-rwxr-xr-xetc/uanytun/client3/post-up.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/etc/uanytun/client3/post-up.sh b/etc/uanytun/client3/post-up.sh
index ac4afd7..9348f47 100755
--- a/etc/uanytun/client3/post-up.sh
+++ b/etc/uanytun/client3/post-up.sh
@@ -1,5 +1,12 @@
#!/bin/sh
-ip addr add dev $1 fde5:30c9:1984::3/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