Added extra config doc in faqs and fixed an unlikely unbound variable
This commit is contained in:
parent
ac3cb44d85
commit
e8eb1dda0c
@ -226,7 +226,7 @@ done
|
|||||||
[ ${#TMP_DNS_SERVERS[@]} -gt 0 ] && OVPN_DNS_SERVERS=("${TMP_DNS_SERVERS[@]}")
|
[ ${#TMP_DNS_SERVERS[@]} -gt 0 ] && OVPN_DNS_SERVERS=("${TMP_DNS_SERVERS[@]}")
|
||||||
|
|
||||||
# Server name is in the form "udp://vpn.example.com:1194"
|
# Server name is in the form "udp://vpn.example.com:1194"
|
||||||
if [[ "$OVPN_SERVER_URL" =~ ^((udp|tcp)://)?([0-9a-zA-Z\.\-]+)(:([0-9]+))?$ ]]; then
|
if [[ "${OVPN_SERVER_URL:-}" =~ ^((udp|tcp)://)?([0-9a-zA-Z\.\-]+)(:([0-9]+))?$ ]]; then
|
||||||
OVPN_PROTO=${BASH_REMATCH[2]};
|
OVPN_PROTO=${BASH_REMATCH[2]};
|
||||||
OVPN_CN=${BASH_REMATCH[3]};
|
OVPN_CN=${BASH_REMATCH[3]};
|
||||||
OVPN_PORT=${BASH_REMATCH[5]};
|
OVPN_PORT=${BASH_REMATCH[5]};
|
||||||
|
@ -15,6 +15,11 @@ If it was all in one container, an upgrade would require a few steps to extract
|
|||||||
|
|
||||||
## How do I set up a split tunnel?
|
## How do I set up a split tunnel?
|
||||||
|
|
||||||
Split tunnels are configurations where only some of the traffic from a client goes to the VPN, with the remainder routed through the normal non-VPN interfaces. You'll want to disable a default route (-d) when you generate the configuration, but still use NAT (-N) to keep network address translation enabled.
|
Split tunnels are configurations where only some of the traffic from a client goes to the VPN, with the remainder routed through the normal non-VPN interfaces. You'll want to disable a default route (-d) when you generate the configuration, but still use NAT (-N) to keep network address translation enabled.
|
||||||
|
|
||||||
ovpn_genconfig -N -d ...
|
ovpn_genconfig -N -d ...
|
||||||
|
|
||||||
|
## I need to add some extra configurations to openvpn.conf, How can I do that ?
|
||||||
|
|
||||||
|
You can pass multiple '-e' options to ovpn_genconfig. For example, if you need to add 'duplicate-cn' and 'topology subnet' to the server configuration you could do something like this:
|
||||||
|
ovpn_genconfig -e 'duplicate-cn' -e 'topology subnet' -u udp://VPN.SERVERNAME.COM
|
||||||
|
Loading…
Reference in New Issue
Block a user