bugfix: tunnels: Unable to route to connections across tunnel

Firewall rules don't get called because vtund is at /usr/sbin/vtund not /usr/bin/vtund

Also make the check if line posix compatible while we are chaning the path to be sure it works in the future too.
This commit is contained in:
Conrad Lara - KG6JEI 2015-05-25 23:04:34 -07:00
parent cae4064b48
commit 1f2737f0f3
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
# Handles setting up rules for tunnel interfaces
if [[ -x "/usr/bin/vtund" ]]
if [ -x "/usr/sbin/vtund" ]
then
ISVPN=false
case "$INTERFACE" in
@ -19,4 +19,4 @@ then
# echo "$INTF down" >> /tmp/vtundscript.log
fi
fi
fi
fi