diff --git a/bin/ovpn_getclient b/bin/ovpn_getclient index 14de814..82807d6 100755 --- a/bin/ovpn_getclient +++ b/bin/ovpn_getclient @@ -17,7 +17,6 @@ cat < @@ -38,6 +37,10 @@ $(cat $EASYRSA_PKI/ta.key) key-direction 1 -remote $servername $port $proto +remote $OVPN_CN $OVPN_PORT $OVPN_PROTO EOF + +if [ "$OVPN_DEFROUTE" != "0" ];then + echo "redirect-gateway def1" +fi