There is literally nothing on this forum post that will allow me to edit this site, even though in the bottom right hand it states I have permission to edit my own posts. Strange.
Anyway, let me elaborate a bit so I can more properly follow the forum rules.
My Goal:
My Goal is to be able to push both dhcp-option DNS (and dhcp-option DOMAIN) information to my non-Windows clients.
server.conf:
port 443
proto tcp
dev tun
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key
dh /etc/openvpn/keys/dh4096.pem
topology subnet
server 10.10.201.0 255.255.255.128
ifconfig-pool-persist ipp.txt
crl-verify /etc/openvpn/keys/crl.pem
push "route 10.8.0.0 255.255.0.0 10.10.201.1"
push "route 10.9.0.0 255.255.0.0 10.10.201.1"
push "route 10.99.0.0 255.255.0.0 10.10.201.1"
push "route 10.150.0.0 255.255.0.0 10.10.201.1"
push "route 172.16.0.0 255.255.224.0 10.10.201.1"
push "route 10.7.0.0 255.255.0.0 10.10.201.1"
push "route 10.224.0.0 255.255.0.0 10.10.201.1"
push "route 10.13.0.0 255.255.0.0 10.10.201.1"
push "route 10.222.0.0 255.255.0.0 10.10.201.1"
push "route 10.70.0.0 255.255.0.0 10.10.201.1"
push "route 10.219.0.0 255.255.0.0 10.10.201.1"
push "route 10.220.0.0 255.255.0.0 10.10.201.1"
push "route 10.212.0.0 255.255.0.0 10.10.201.1"
push "route 10.223.241.0 255.0.0.0 10.10.201.1"
push "route 10.194.0.0 255.255.0.0 10.10.201.1"
push "route 10.195.0.0 255.255.0.0 10.10.201.1"
push "route 10.198.0.0 255.255.0.0 10.10.201.1"
push "route 10.199.0.0 255.255.0.0 10.10.201.1"
push "route 10.225.0.0 255.255.0.0 10.10.201.1"
push "dhcp-option DNS 10.224.241.120"
push "dhcp-option DNS 10.212.203.100"
keepalive 10 120
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
plugin /usr/lib64/openvpn/plugins/openvpn-plugin-auth-pam.so openvpn
cipher AES-256-CBC
tls-auth /etc/openvpn/keys/pfs.key 0
verb 4
client.conf:
ca ca.crt
cert linuxtest-client2.crt
key linuxtest-client2.key
tls-auth pfs.key 1
script-security 2
up /etc/openvpn/update-resolv-conf.sh
down /etc/openvpn/update-resolv-conf.sh
client
dev tun
proto tcp
auth-user-pass
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
cipher AES-256-CBC
comp-lzo
verb 4
<connection>
remote x.x.x.x 443 # Primary server
</connection>
Actual log snippet with verb 4:
Nov 19 05:07:18 localhost openvpn[12324]: SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Nov 19 05:07:18 localhost openvpn[12324]: PUSH: Received control message: 'PUSH_REPLY,route 10.8.0.0 255.255.0.0 10.10.201.1,route 10.9.0.0 255.255.0.0 10.10.201.1,route 10.99.0.0 255.255.0.0 10.10.201.1,route 10.150.0.0 255.255.0.0 10.10.201.1,route 172.16.0.0 255.255.224.0 10.10.201.1,route 10.7.0.0 255.255.0.0 10.10.201.1,route 10.224.0.0 255.255.0.0 10.10.201.1, route 10.13.0.0 255.255.0.0 10.10.201.1,route 10.222.0.0 255.255.0.0 10.10.201.1,route 10.70.0.0 255.255.0.0 10.10.201.1,route 10.219.0.0 255.255.0.0 10.10.201.1,route 10.220.0.0 255.255.0.0 10.10.201.1,route 10.212.0.0 255.255.0.0 10.10.201.1,route 10.223.241.0 255.0.0.0 10.10.201.1,route 10.194.0.0 255.255.0.0 10.10.201.1,route 10.195.0.0 255.255.0.0 10.10.201.1,route 10.198.0.0 255.255.0.0 10.10.201.1,route 10.199.0.0 255.255.0.0 10.10.201.1,route 10.225.0.0 255.255.0.0 10.10.201.1,dhcp-option DNS 10.224.241.120,dhcp-option DNS 10.212.203.100,route-gateway 10.10.201.1,topology subnet,ping 10,push-continuation 2'
Nov 19 05:07:18 localhost openvpn[12324]: PUSH: Received control message: 'PUSH_REPLY,ping-restart 120,ifconfig 10.10.201.2 255.255.255.128,push-continuation 1'
Nov 19 05:07:18 localhost openvpn[12324]: OPTIONS IMPORT: timers and/or timeouts modified
Nov 19 05:07:18 localhost openvpn[12324]: OPTIONS IMPORT: --ifconfig/up options modified
Nov 19 05:07:18 localhost openvpn[12324]: OPTIONS IMPORT: route options modified
Nov 19 05:07:18 localhost openvpn[12324]: OPTIONS IMPORT: route-related options modified
Nov 19 05:07:18 localhost openvpn[12324]: OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Nov 19 05:07:18 localhost openvpn[12324]: ROUTE_GATEWAY 10.212.109.1/255.255.255.0 IFACE=wlan0 HWADDR=00:1e:65:7f:60:66
Nov 19 05:07:19 localhost openvpn[12324]: TUN/TAP device tun0 opened
Nov 19 05:07:19 localhost openvpn[12324]: TUN/TAP TX queue length set to 100
Nov 19 05:07:19 localhost openvpn[12324]: do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Nov 19 05:07:19 localhost openvpn[12324]: /sbin/ip link set dev tun0 up mtu 1500
Nov 19 05:07:19 localhost openvpn[12324]: /sbin/ip addr add dev tun0 10.10.201.2/25 broadcast 10.10.201.127
Nov 19 05:07:19 localhost openvpn[12324]: /etc/openvpn/update-resolv-conf.sh tun0 1500 1560 10.10.201.2 255.255.255.128 init
Nov 19 05:07:19 localhost openvpn[12324]: WARNING: Failed running command (--up/--down): could not execute external program
Nov 19 05:07:19 localhost openvpn[12324]: Exiting due to fatal error
The last three errors are most relevant. This is giving me a headache 🙁
Thanks.