summaryrefslogtreecommitdiff
path: root/etc/anytun/client3/post-up.sh
blob: 4245ff4f9741776a148377a2d9c0b8d1c2065f6b (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.3/24
ip addr add dev $1 fec0::3/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