From f27841e11dd36b9bb945dc3ce0cdfbd67f78b4e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Thu, 13 Feb 2020 11:17:29 +0100 Subject: Fix subnet expansion --- ImmaeEu-down | 6 +++--- ImmaeEu-up | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ImmaeEu-down b/ImmaeEu-down index 638933f..daee563 100755 --- a/ImmaeEu-down +++ b/ImmaeEu-down @@ -6,9 +6,9 @@ rm -f /tmp/tinc_$NETNAME /run/tinc_$NETNAME.vars [ -n "$GWIP" ] && ip -6 route del default via $GWIP table 655 for MYIP in $MYIPS; do - 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 + ip -6 addr del $MYIP/96 dev $INTERFACE + ip -6 rule del from $MYIP/96 table 655 + ip -6 rule del to $MYIP/96 table 655 done ip -6 link set $INTERFACE down diff --git a/ImmaeEu-up b/ImmaeEu-up index a3784aa..e9a4c9f 100755 --- a/ImmaeEu-up +++ b/ImmaeEu-up @@ -18,9 +18,9 @@ rm -f /run/tinc_$NETNAME.vars echo -e "MYIPS=\"$MYIPS\"\nGWIP=\"$GWIP\"" > /run/tinc_$NETNAME.vars ip -6 link set $INTERFACE up mtu 1280 for MYIP in $MYIPS; do - ip -6 addr add $MYIP/80 dev $INTERFACE - ip -6 rule add from $MYIP/80 table 655 - ip -6 rule add to $MYIP/80 table 655 + ip -6 addr add $MYIP/96 dev $INTERFACE + ip -6 rule add from $MYIP/96 table 655 + ip -6 rule add to $MYIP/96 table 655 done ip -6 route add default via $GWIP dev $INTERFACE table 655 (cd /etc/tinc/$NETNAME/hosts && git pull -q origin master) || true -- cgit v1.2.3