From bd0d88050efd3d7664a8ca48c460d83891c854a0 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 27 Feb 2009 18:52:04 +0000 Subject: updated sample config --- etc/uanytun/client1/post-up.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'etc/uanytun/client1/post-up.sh') 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 -- cgit v1.2.3