getclient: Fix sourced env variables
* Update to use the sourced environemental variables. * Add switch for not using default gateway.
This commit is contained in:
parent
c3321abce5
commit
d412ce9f7e
@ -17,7 +17,6 @@ cat <<EOF
|
|||||||
client
|
client
|
||||||
nobind
|
nobind
|
||||||
dev tun
|
dev tun
|
||||||
redirect-gateway def1
|
|
||||||
remote-cert-tls server
|
remote-cert-tls server
|
||||||
|
|
||||||
<key>
|
<key>
|
||||||
@ -38,6 +37,10 @@ $(cat $EASYRSA_PKI/ta.key)
|
|||||||
key-direction 1
|
key-direction 1
|
||||||
|
|
||||||
<connection>
|
<connection>
|
||||||
remote $servername $port $proto
|
remote $OVPN_CN $OVPN_PORT $OVPN_PROTO
|
||||||
</connection>
|
</connection>
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
if [ "$OVPN_DEFROUTE" != "0" ];then
|
||||||
|
echo "redirect-gateway def1"
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user