Openvpn not setting DNS server
Posted: Thu Jan 05, 2023 4:48 pm
New Softether setup after I gave up on openvpn community and getting radius working.
Softether Windows Ver 441 build 9782
Secure nat enabled. Gateway removed and routes added so all traffic is not sent down VPN.
Softether client works perfectly.
L2TP works perfectly.
Decided to activate OpenVPN for some users that already use OpenVPN or new android folks.
Connection work, routing works, but the DNS server is not being sent.
Here is what the log shows for that OpenVPN connection. It looks like it is sending it but it is not getting set on the client. (ios or windows have been tried)
2023-01-05 11:25:47.278 [HUB "FWHUB"] Session "SID-SECURENAT-1": The DHCP server of host "5E-AA-AA-F4-11-4E" (192.168.30.1) on this session allocated, for host "SID-Juser-[OPENVPN_L3]-16" on another session "CA-11-22-33-FD-F4", the new IP address 192.168.30.13.
2023-01-05 11:25:47.278 OpenVPN Session 12 (117.111.22.81:3724 -> 172.16.1.12:1194) Channel 0: The channel becomes the established state.
2023-01-05 11:25:47.278 OpenVPN Session 12 (117.111.22.81:3724 -> 172.16.1.12:1194) Channel 0: The IP address and other network information parameters are set successfully. IP Address of Client: 192.168.30.13, Subnet Mask: 255.255.255.0, Default Gateway: , DNS Server 1: 192.168.30.1, DNS Server 2: , WINS Server 1: , WINS Server 2:
2023-01-05 11:25:47.278 OpenVPN Session 12 (117.111.22.81:3724 -> 172.16.1.12:1194) Channel 0: The full strings replied: "PUSH_REPLY,ping 3,ping-restart 10,ifconfig 192.168.30.13 192.168.30.14,dhcp-option DOMAIN company.com,dhcp-option DNS 192.168.30.1,route 172.16.0.0 255.255.0.0 vpn_gateway"
Softether Windows Ver 441 build 9782
Secure nat enabled. Gateway removed and routes added so all traffic is not sent down VPN.
Softether client works perfectly.
L2TP works perfectly.
Decided to activate OpenVPN for some users that already use OpenVPN or new android folks.
Connection work, routing works, but the DNS server is not being sent.
Here is what the log shows for that OpenVPN connection. It looks like it is sending it but it is not getting set on the client. (ios or windows have been tried)
2023-01-05 11:25:47.278 [HUB "FWHUB"] Session "SID-SECURENAT-1": The DHCP server of host "5E-AA-AA-F4-11-4E" (192.168.30.1) on this session allocated, for host "SID-Juser-[OPENVPN_L3]-16" on another session "CA-11-22-33-FD-F4", the new IP address 192.168.30.13.
2023-01-05 11:25:47.278 OpenVPN Session 12 (117.111.22.81:3724 -> 172.16.1.12:1194) Channel 0: The channel becomes the established state.
2023-01-05 11:25:47.278 OpenVPN Session 12 (117.111.22.81:3724 -> 172.16.1.12:1194) Channel 0: The IP address and other network information parameters are set successfully. IP Address of Client: 192.168.30.13, Subnet Mask: 255.255.255.0, Default Gateway: , DNS Server 1: 192.168.30.1, DNS Server 2: , WINS Server 1: , WINS Server 2:
2023-01-05 11:25:47.278 OpenVPN Session 12 (117.111.22.81:3724 -> 172.16.1.12:1194) Channel 0: The full strings replied: "PUSH_REPLY,ping 3,ping-restart 10,ifconfig 192.168.30.13 192.168.30.14,dhcp-option DOMAIN company.com,dhcp-option DNS 192.168.30.1,route 172.16.0.0 255.255.0.0 vpn_gateway"