aboutsummaryrefslogtreecommitdiff
path: root/modules/private/vpn/tinc/tinc-down
blob: 1cc45c0c1cd0413277bff66b6cd68dc187e9aa24 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
# This file closes down the tap device.

echo 0 > /proc/sys/net/ipv6/conf/@mainInterface@/proxy_ndp
echo 0 > /proc/sys/net/ipv6/conf/all/forwarding

GWIP=`getent hosts gw.vpn.immae.eu | head -n1 | cut -d' ' -f1`

ip neigh del proxy $GWIP dev eth0

ip -6 addr del $GWIP/96 dev $INTERFACE
ip -6 link set $INTERFACE down