Skip to content

Commit

Permalink
Fix using wrong rules
Browse files Browse the repository at this point in the history
  • Loading branch information
janole committed Jun 9, 2024
1 parent f8b9f3d commit a8bbe6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/start-vpn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ openssl verify -verbose -CAfile ${VPNCAFILE} ${VPNCERTFILE}
CONF="${SERVERCONF:-$TCPCONF}"

VPN_PORT=`grep "^port " $CONF | sed -e "s/[^0-9]*//g"`
envsubst < /etc/iptables/rules.v4 | iptables-restore
envsubst < $TEMPLATESDIR/openvpn/rules.v4.template | iptables-restore

echo "Starting with config ${CONF} ..."
exec openvpn --config ${CONF}

0 comments on commit a8bbe6c

Please sign in to comment.