small tweak to make openvpn example server config valid

This commit is contained in:
Blake Harnden 2020-02-04 17:09:54 -08:00
parent 9216683902
commit 3b0a8ebc37
3 changed files with 10 additions and 10 deletions

View file

@ -13,13 +13,13 @@ keyname=client1
vpnserver="10.0.2.10"
# optional next hop for adding a static route to reach the VPN server
nexthop="10.0.1.1"
#nexthop="10.0.1.1"
# --------- END CUSTOMIZATION --------
# validate addresses
if [ "$(dpkg -l | grep " sipcalc ")" = "" ]; then
echo "WARNING: ip validation disabled because package sipcalc not installed
echo "WARNING: ip validation disabled because package sipcalc not installed
" > $PWD/vpnclient.log
else
if [ "$(sipcalc "$vpnserver" "$nexthop" | grep ERR)" != "" ]; then
@ -59,5 +59,5 @@ verb 4
daemon
EOF
) > client.conf
openvpn --config client.conf