getclient: Fix sourced env variables

* Update to use the sourced environemental variables.
* Add switch for not using default gateway.
This commit is contained in:
Kyle Manna 2014-07-06 00:25:14 -07:00
parent c3321abce5
commit d412ce9f7e

View File

@ -17,7 +17,6 @@ cat <<EOF
client
nobind
dev tun
redirect-gateway def1
remote-cert-tls server
<key>
@ -38,6 +37,10 @@ $(cat $EASYRSA_PKI/ta.key)
key-direction 1
<connection>
remote $servername $port $proto
remote $OVPN_CN $OVPN_PORT $OVPN_PROTO
</connection>
EOF
if [ "$OVPN_DEFROUTE" != "0" ];then
echo "redirect-gateway def1"
fi