summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2013-12-29 13:46:23 +0100
committerlassulus <lassulus@googlemail.com>2013-12-29 13:46:23 +0100
commite4328ccb256639a66bcedc30c80f89d4f5b342a2 (patch)
treec38205e8afa7fa5d50f9c3c131161d779b2db210
parentfd1144b06d602581270a310d9e15476c07873335 (diff)
tinc-setup: new route in tinc-up
-rwxr-xr-xretiolum/scripts/tinc_setup/new_install.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/retiolum/scripts/tinc_setup/new_install.sh b/retiolum/scripts/tinc_setup/new_install.sh
index 1ebde38b..50fbc3b5 100755
--- a/retiolum/scripts/tinc_setup/new_install.sh
+++ b/retiolum/scripts/tinc_setup/new_install.sh
@@ -218,6 +218,8 @@ EOF
echo "addr4=\$(sed -n \"s|^ *Subnet *= *\\($SUBNET4[.][^ ]*\\) *\$|\\\\1|p\" \$host)" >> tinc-up
echo 'ip -4 addr add $addr4 dev $INTERFACE' >> tinc-up
echo "ip -4 route add $FULLSUBNET/$MASK4 dev \$INTERFACE" >> tinc-up
+ #TODO: variable for network announced
+ echo "ip -4 route add 172.22.0.0/15 dev \$INTERFACE" >> tinc-up
echo '' >> tinc-up
echo "addr6=\$(sed -n \"s|^ *Subnet *= *\\($SUBNET6[:][^ ]*\\) *\$|\\\\1|p\" \$host)" >> tinc-up
echo 'ip -6 addr add $addr6 dev $INTERFACE' >> tinc-up