There was an error while loading. Please reload this page.
2 parents 149acb0 + f050bf8 commit 216d1a8Copy full SHA for 216d1a8
1 file changed
start.sh
@@ -103,8 +103,8 @@ $($iptab)
103
echo "--------------------------------------------------"
104
if [ "$FIREWALL" == "false" ]; then
105
echo "Not doing any iptables"
106
-else
107
- echo "creating tempfile for iptables (public routes"
+elif [ grep "push \"route" /docker/ovpn.conf ]
+ echo "creating tempfile for iptables (public routes)"
108
tmp=$(mktemp)
109
grep "push \"route" /docker/ovpn.conf >> $tmp
110
while read -r line ; do
@@ -126,6 +126,8 @@ else
126
iptables=$(which iptables)
127
chmod u+s $iptables
128
chmod +x /docker/firewall.sh
129
+else
130
+ echo "no routes found in /docker/ovpn.conf"
131
fi
132
if [ -f "/docker/ip-routes.txt" ]; then
133
0 commit comments