From bd3711f0bb5022f389e2cbe1110b185da700ee6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Thu, 13 Feb 2020 10:29:12 +0100 Subject: Fix concurrent ip6 addresses --- ImmaeEu-down | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ImmaeEu-down') diff --git a/ImmaeEu-down b/ImmaeEu-down index 8459778..638933f 100755 --- a/ImmaeEu-down +++ b/ImmaeEu-down @@ -4,9 +4,11 @@ [ -e /tmp/tinc_$NETNAME ] && . /tmp/tinc_$NETNAME [ -e /run/tinc_$NETNAME.vars ] && . /run/tinc_$NETNAME.vars rm -f /tmp/tinc_$NETNAME /run/tinc_$NETNAME.vars -[ -n "$GWIP" ] && ip -6 route del default via $GWIP +[ -n "$GWIP" ] && ip -6 route del default via $GWIP table 655 for MYIP in $MYIPS; do - ip -6 addr del $MYIP/96 dev $INTERFACE + ip -6 addr del $MYIP/80 dev $INTERFACE + ip -6 rule del from $MYIP/80 table 655 + ip -6 rule del to $MYIP/80 table 655 done ip -6 link set $INTERFACE down -- cgit v1.2.3