summaryrefslogtreecommitdiff
path: root/ImmaeEu-up
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-02-13 11:17:29 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-02-13 11:17:29 +0100
commitf27841e11dd36b9bb945dc3ce0cdfbd67f78b4e2 (patch)
tree3607b9d0bc519b521f32def278eb7a3adfb24169 /ImmaeEu-up
parentbd3711f0bb5022f389e2cbe1110b185da700ee6d (diff)
downloadhosts-f27841e11dd36b9bb945dc3ce0cdfbd67f78b4e2.tar.gz
hosts-f27841e11dd36b9bb945dc3ce0cdfbd67f78b4e2.tar.zst
hosts-f27841e11dd36b9bb945dc3ce0cdfbd67f78b4e2.zip
Fix subnet expansion
Diffstat (limited to 'ImmaeEu-up')
-rwxr-xr-xImmaeEu-up6
1 files changed, 3 insertions, 3 deletions
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
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/80 dev $INTERFACE 21 ip -6 addr add $MYIP/96 dev $INTERFACE
22 ip -6 rule add from $MYIP/80 table 655 22 ip -6 rule add from $MYIP/96 table 655
23 ip -6 rule add to $MYIP/80 table 655 23 ip -6 rule add to $MYIP/96 table 655
24done 24done
25ip -6 route add default via $GWIP dev $INTERFACE table 655 25ip -6 route add default via $GWIP dev $INTERFACE table 655
26(cd /etc/tinc/$NETNAME/hosts && git pull -q origin master) || true 26(cd /etc/tinc/$NETNAME/hosts && git pull -q origin master) || true