[ -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
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/96 dev $INTERFACE
+ 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
done
-ip -6 route add default via $GWIP
+ip -6 route add default via $GWIP dev $INTERFACE table 655
(cd /etc/tinc/$NETNAME/hosts && git pull -q origin master) || true