Skip to content

Commit

Permalink
getclient: Fix sourced env variables
Browse files Browse the repository at this point in the history
* Update to use the sourced environemental variables.
* Add switch for not using default gateway.
  • Loading branch information
kylemanna committed Jul 6, 2014
1 parent c3321ab commit d412ce9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin/ovpn_getclient
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ cat <<EOF
client
nobind
dev tun
redirect-gateway def1
remote-cert-tls server
<key>
Expand All @@ -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

0 comments on commit d412ce9

Please sign in to comment.