Scenario:
local LAN: 192.168.33.0/24
local gateway: 192.168.33.1
local gateway is also acting as a DNS resolver and the local domain is "box"
The user sets up OpenVPN on an E2 box named "quadbox"
There are two net-wide public hostnames (Usually IPv4 DynDNS hosts): mynet.mooo.com and mynet.hopto.org
There is also one host-specific hostname (Usually IPv6 DynDNS hosts): quadbox.mooo.com
The user choses to use port 443 for OpenVPN, "tun" and "TCP"
Resulting server config (Without certs, they will be appended):
proto tcp6
port 443
dev tun
server 172.31.33.0 255.255.255.0
comp-lzo yes
keepalive 10 60
verb 3
client-to-client
float
push "dhcp-option DNS 192.168.33.1"
push "dhcp-option DOMAIN box"
push "dhcp-option SEARCH box"
push "route 192.168.33.0 255.255.255.0"
push "route 172.31.33.0 255.255.255.0"
push "route-gateway "172.31.33.1"
Resulting client config (Without certs, they will be appended):
remote quadbox.mooo.com 443
remote mynet.mooo.com 443
remote mynet.hopto.org 443
proto tcp6-client
dev tun
resolv-retry infinite
mute-replay-warnings
comp-lzo
verb 3
keepalive 10 60
persist-key
persist-tun
nobind
tls-client
mute 20
ping-timer-rem
Any suggestions for enhancements/changes?