summaryrefslogtreecommitdiff
path: root/ImmaeEu-up
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-02-13 10:29:12 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-02-13 10:29:12 +0100
commitbd3711f0bb5022f389e2cbe1110b185da700ee6d (patch)
treee7def1ef8b7eb87416574fec6dbdc0c6b916940c /ImmaeEu-up
parent88e66de272bf09750d2096752dcd4e5fc344cbc3 (diff)
downloadhosts-bd3711f0bb5022f389e2cbe1110b185da700ee6d.tar.gz
hosts-bd3711f0bb5022f389e2cbe1110b185da700ee6d.tar.zst
hosts-bd3711f0bb5022f389e2cbe1110b185da700ee6d.zip
Fix concurrent ip6 addresses
Diffstat (limited to 'ImmaeEu-up')
-rwxr-xr-xImmaeEu-up6
1 files changed, 4 insertions, 2 deletions
diff --git a/ImmaeEu-up b/ImmaeEu-up
index c2dc93a..a3784aa 100755
--- a/ImmaeEu-up
+++ b/ImmaeEu-up
@@ -18,7 +18,9 @@ rm -f /run/tinc_$NETNAME.vars
18echo -e "MYIPS=\"$MYIPS\"\nGWIP=\"$GWIP\"" > /run/tinc_$NETNAME.vars 18echo -e "MYIPS=\"$MYIPS\"\nGWIP=\"$GWIP\"" > /run/tinc_$NETNAME.vars
19ip -6 link set $INTERFACE up mtu 1280 19ip -6 link set $INTERFACE up mtu 1280
20for MYIP in $MYIPS; do 20for MYIP in $MYIPS; do
21 ip -6 addr add $MYIP/96 dev $INTERFACE 21 ip -6 addr add $MYIP/80 dev $INTERFACE
22 ip -6 rule add from $MYIP/80 table 655
23 ip -6 rule add to $MYIP/80 table 655
22done 24done
23ip -6 route add default via $GWIP 25ip -6 route add default via $GWIP dev $INTERFACE table 655
24(cd /etc/tinc/$NETNAME/hosts && git pull -q origin master) || true 26(cd /etc/tinc/$NETNAME/hosts && git pull -q origin master) || true