pushing WINS server address(es) to openvpn client
Posted: Fri Apr 07, 2017 4:27 pm
Hi,
I have a setup with bridged SoftEther server, where the vpn clients get their network configiration on the LAN from the existing external DHCP server
I have noticed, when OpenVPN clients are used, they dont get the WINS server settings from the SoftEther server, as it seems the the SoftEther server strips out the WINS server adress(es) from the DHCP server's replay when it is forwarded to the OpenVPN client.
When the native SoftEther client is used, the WINS server(s) are correctly passed by the SoftEther VPN server fromt the external DHCP server to the VPN client
SoftEther VPN Server Version 4.20 Build 9608
OPENVPN_L3 Clients:
Windows - OpenVPN 2.4.1 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Mar 22 2017
Linux - OpenVPN 2.3.10 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Feb 2 2016
SoftEther Server relevant logs:
2017-04-07 15:38:37.483 OpenVPN Session 1 (192.168.1.94:50752 -> 192.168.1.13:443) Channel 0: The IP address and other network information parameters are set successfully. IP Address of Client: 192.168.1.181, Subnet Mask: 255.255.255.0, Default Gateway: 192.168.1.1, DNS Server 1: 192.168.1.10, DNS Server 2: 192.168.1.8, WINS Server 1: , WINS Server 2:
I saw that in src/Mayaqua/TcpIp.h under "Rebuilding the options list" in the DHCP reply besides the default gateway the wins servers and the domain name is stripped out as well and been wondering if this could be the cause but then the WINS servers would be missing from the SoftEther client's network settings (and they dont as with SOftEther vpn client the network browsing works)
Also, if on the windows openvpn client I add the line to the config file:
dhcp-option WINS <wins server address>
Then network browsing works with the openvpn clients as well.
Perhaps since there is no WINS server option in the SecureNAT DHCP server, this info gets lost somewhere when it is passed from an outside DHCP server in case of bridged connection)
I have a setup with bridged SoftEther server, where the vpn clients get their network configiration on the LAN from the existing external DHCP server
I have noticed, when OpenVPN clients are used, they dont get the WINS server settings from the SoftEther server, as it seems the the SoftEther server strips out the WINS server adress(es) from the DHCP server's replay when it is forwarded to the OpenVPN client.
When the native SoftEther client is used, the WINS server(s) are correctly passed by the SoftEther VPN server fromt the external DHCP server to the VPN client
SoftEther VPN Server Version 4.20 Build 9608
OPENVPN_L3 Clients:
Windows - OpenVPN 2.4.1 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Mar 22 2017
Linux - OpenVPN 2.3.10 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Feb 2 2016
SoftEther Server relevant logs:
2017-04-07 15:38:37.483 OpenVPN Session 1 (192.168.1.94:50752 -> 192.168.1.13:443) Channel 0: The IP address and other network information parameters are set successfully. IP Address of Client: 192.168.1.181, Subnet Mask: 255.255.255.0, Default Gateway: 192.168.1.1, DNS Server 1: 192.168.1.10, DNS Server 2: 192.168.1.8, WINS Server 1: , WINS Server 2:
I saw that in src/Mayaqua/TcpIp.h under "Rebuilding the options list" in the DHCP reply besides the default gateway the wins servers and the domain name is stripped out as well and been wondering if this could be the cause but then the WINS servers would be missing from the SoftEther client's network settings (and they dont as with SOftEther vpn client the network browsing works)
Also, if on the windows openvpn client I add the line to the config file:
dhcp-option WINS <wins server address>
Then network browsing works with the openvpn clients as well.
Perhaps since there is no WINS server option in the SecureNAT DHCP server, this info gets lost somewhere when it is passed from an outside DHCP server in case of bridged connection)