diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-02-13 10:29:12 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-02-13 10:29:12 +0100 |
commit | bd3711f0bb5022f389e2cbe1110b185da700ee6d (patch) | |
tree | e7def1ef8b7eb87416574fec6dbdc0c6b916940c /ImmaeEu-down | |
parent | 88e66de272bf09750d2096752dcd4e5fc344cbc3 (diff) | |
download | hosts-bd3711f0bb5022f389e2cbe1110b185da700ee6d.tar.gz hosts-bd3711f0bb5022f389e2cbe1110b185da700ee6d.tar.zst hosts-bd3711f0bb5022f389e2cbe1110b185da700ee6d.zip |
Fix concurrent ip6 addresses
Diffstat (limited to 'ImmaeEu-down')
-rwxr-xr-x | ImmaeEu-down | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ImmaeEu-down b/ImmaeEu-down index 8459778..638933f 100755 --- a/ImmaeEu-down +++ b/ImmaeEu-down | |||
@@ -4,9 +4,11 @@ | |||
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 | 6 | rm -f /tmp/tinc_$NETNAME /run/tinc_$NETNAME.vars |
7 | [ -n "$GWIP" ] && ip -6 route del default via $GWIP | 7 | [ -n "$GWIP" ] && ip -6 route del default via $GWIP table 655 |
8 | for MYIP in $MYIPS; do | 8 | for MYIP in $MYIPS; do |
9 | ip -6 addr del $MYIP/96 dev $INTERFACE | 9 | ip -6 addr del $MYIP/80 dev $INTERFACE |
10 | ip -6 rule del from $MYIP/80 table 655 | ||
11 | ip -6 rule del to $MYIP/80 table 655 | ||
10 | done | 12 | done |
11 | ip -6 link set $INTERFACE down | 13 | ip -6 link set $INTERFACE down |
12 | 14 | ||