summaryrefslogtreecommitdiff
path: root/etc/uanytun/client1/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/client1/post-up.sh
parentupdated manpage (diff)
updated sample config
Diffstat (limited to 'etc/uanytun/client1/post-up.sh')
-rwxr-xr-xetc/uanytun/client1/post-up.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/etc/uanytun/client1/post-up.sh b/etc/uanytun/client1/post-up.sh
index 18c42fb..dd18fe5 100755
--- a/etc/uanytun/client1/post-up.sh
+++ b/etc/uanytun/client1/post-up.sh
@@ -1,5 +1,12 @@
#!/bin/sh
-ip addr add dev $1 fde5:30c9:1984::1/48
+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