From: Ismaƫl Bouya Date: Thu, 13 Feb 2020 10:17:29 +0000 (+0100) Subject: Fix subnet expansion X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=f27841e11dd36b9bb945dc3ce0cdfbd67f78b4e2;p=perso%2FImmae%2FConfig%2Ftinc%2Fhosts.git Fix subnet expansion --- 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