diff options
author | lassulus <lassulus@googlemail.com> | 2013-12-29 13:46:23 +0100 |
---|---|---|
committer | lassulus <lassulus@googlemail.com> | 2013-12-29 13:46:23 +0100 |
commit | e4328ccb256639a66bcedc30c80f89d4f5b342a2 (patch) | |
tree | c38205e8afa7fa5d50f9c3c131161d779b2db210 /retiolum/scripts/tinc_setup/new_install.sh | |
parent | fd1144b06d602581270a310d9e15476c07873335 (diff) |
tinc-setup: new route in tinc-up
Diffstat (limited to 'retiolum/scripts/tinc_setup/new_install.sh')
-rwxr-xr-x | retiolum/scripts/tinc_setup/new_install.sh | 2 |
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 |