Imported Upstream version 0.3
[debian/uanytun.git] / etc / uanytun / client1 / post-up.sh
1 #!/bin/sh
2
3 ip link set dev $1 up
4 ip link set dev $1 mtu 1400
5 ip addr add dev $1 192.168.123.1/24
6 ip addr add dev $1 fec0::1/64
7
8 # disable ICMP redirects as they don't work within the tunnel
9 echo 0 > /proc/sys/net/ipv4/conf/$1/send_redirects
10 echo 0 > /proc/sys/net/ipv4/conf/$1/accept_redirects
11
12 exit 0