summaryrefslogtreecommitdiff
path: root/etc/uanytun/client2/post-up.sh
blob: b65cb0ba4c37b70a6e9007f54d8947d6d2ef30b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

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/64

# 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