pushing WINS server address(es) to openvpn client

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
softhetheruser
Posts: 4
Joined: Fri Apr 07, 2017 2:46 pm

pushing WINS server address(es) to openvpn client

Post by softhetheruser » 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)

qupfer
Posts: 202
Joined: Wed Jul 10, 2013 2:07 pm

Re: pushing WINS server address(es) to openvpn client

Post by qupfer » Tue Apr 11, 2017 6:47 am

Do you use the layer2 ovpn configuration for your clients?

softhetheruser
Posts: 4
Joined: Fri Apr 07, 2017 2:46 pm

Re: pushing WINS server address(es) to openvpn client

Post by softhetheruser » Tue Apr 11, 2017 10:04 am

Layer3 , as the connection is from road warrior OpenVPN clients, this is why it would be so important for the WINS server being passed from the DHCP server to the VPN clients via the Softether server.

The VPN clients pop into the same subnet as the office computers and are being handled by the same DHCP server.

softhetheruser
Posts: 4
Joined: Fri Apr 07, 2017 2:46 pm

Re: pushing WINS server address(es) to openvpn client

Post by softhetheruser » Wed Apr 12, 2017 4:08 pm

The issue was actually dis-related to the softether server, it does indeed passes the wins server addresses obtained from the dhcp server on behalf for the vpn client.

All is good.

thisjun
Posts: 2458
Joined: Mon Feb 24, 2014 11:03 am

Re: pushing WINS server address(es) to openvpn client

Post by thisjun » Wed Apr 19, 2017 7:48 am

Could you capture packets and attach?

softhetheruser
Posts: 4
Joined: Fri Apr 07, 2017 2:46 pm

SOLVED Re: pushing WINS server address(es) to openvpn client

Post by softhetheruser » Wed Apr 19, 2017 10:26 am

The issue is SOLVED.

The root cause of the issue was not the softether server, the DHCP server was not configured with WINS servers to send out.

I ant to thank everyone who have read the post and asked questions and made suggestions.

Post Reply