diff options
Diffstat (limited to 'ImmaeEu-down')
-rwxr-xr-x | ImmaeEu-down | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/ImmaeEu-down b/ImmaeEu-down index d983a3b..19eafa1 100755 --- a/ImmaeEu-down +++ b/ImmaeEu-down | |||
@@ -4,11 +4,17 @@ | |||
4 | [ -e /tmp/tinc_$NETNAME ] && . /tmp/tinc_$NETNAME | 4 | [ -e /tmp/tinc_$NETNAME ] && . /tmp/tinc_$NETNAME |
5 | [ -e /run/tinc_$NETNAME.vars ] && . /run/tinc_$NETNAME.vars | 5 | [ -e /run/tinc_$NETNAME.vars ] && . /run/tinc_$NETNAME.vars |
6 | rm -f /tmp/tinc_$NETNAME /run/tinc_$NETNAME.vars || true | 6 | rm -f /tmp/tinc_$NETNAME /run/tinc_$NETNAME.vars || true |
7 | [ -n "$GWIP" ] && ip -6 route del default via $GWIP table 655 | 7 | if false; then |
8 | # Allow accessing the external world from the ip | ||
9 | [ -n "$GWIP" ] && ip -6 route del default via $GWIP table 655 | ||
10 | fi | ||
8 | for MYIP in $MYIPS; do | 11 | for MYIP in $MYIPS; do |
9 | ip -6 addr del $MYIP/96 dev $INTERFACE | 12 | ip -6 addr del $MYIP/96 dev $INTERFACE |
10 | ip -6 rule del from $MYIP/96 table 655 | 13 | if false; then |
11 | ip -6 rule del to $MYIP/96 table 655 | 14 | # Allow accessing the external world from the ip |
15 | ip -6 rule del from $MYIP/96 table 655 | ||
16 | ip -6 rule del to $MYIP/96 table 655 | ||
17 | fi | ||
12 | done | 18 | done |
13 | ip -6 link set $INTERFACE down | 19 | ip -6 link set $INTERFACE down |
14 | 20 | ||