OpenVPN and WINS problem

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

OpenVPN and WINS problem

Post by Mimiko » Wed Sep 22, 2010 3:22 am

Hi!

I managed to setup OpenVPN server and clients as tun method. Everything is working, except that after awhile after OpenVPN server service is started, the WINS on the same server does not respond to queryies on any network connected. Stopping OpenVPN brings back WINS reponses.

How to resolve this issue?

Thanks.

User avatar
krzee
Forum Team
Posts: 728
Joined: Fri Aug 29, 2008 5:42 pm

Re: OpenVPN and WINS problem

Post by krzee » Mon Oct 04, 2010 11:04 pm

please post both client and server configs without comments. also include what versions of openvpn, and what subnets the machines are on.

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: OpenVPN and WINS problem

Post by Mimiko » Tue Oct 05, 2010 2:13 am

I've made some researches. I installed a clean windows server 2003 on a virtual machine withou any programs and roles. Added only wins role and in wins service added a static mapping. After that I installed openvpn ver.2.1.3 and configured like:

Code: Select all

;local a.b.c.d
port 1194
proto udp
dev tun
;dev-node tap0901
server 192.168.3.0 255.255.255.0
ifconfig-pool-persist ipp.txt
route-delay 60 60
push "route 132.101.0.0 255.255.0.0"
client-config-dir ccd
route 192.168.0.0 255.255.255.0
push "route 192.168.0.0 255.255.255.0"
route 132.103.0.0 255.255.0.0
push "route 132.103.0.0 255.255.0.0"
client-to-client
;duplicate-cn
keepalive 10 120
comp-lzo
;max-clients 100
;user nobody
;group nobody
persist-key
persist-tun
status openvpn-status.log
log         openvpn.log
;log-append  openvpn.log
verb 3
ip-win32 ipapi
Client1 ccd:

Code: Select all

iroute 192.168.0.0 255.255.255.0
Client2 ccd:

Code: Select all

iroute 132.103.0.0 255.255.0.0
That's all. The client's configuration file is not relevant because the client is not even started. Then, upon starting openvpn server, the service waits for clients, but WINS server stops to respondig from lan. On the server console WINS responds normally.

User avatar
krzee
Forum Team
Posts: 728
Joined: Fri Aug 29, 2008 5:42 pm

Re: OpenVPN and WINS problem

Post by krzee » Tue Oct 05, 2010 8:35 am

what LAN subnet is the server on?

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: OpenVPN and WINS problem

Post by Mimiko » Tue Oct 05, 2010 9:25 am

Server LAN subnet: 132.101.0.0 / 255.255.0.0

Douglas
Forum Team
Posts: 285
Joined: Wed Aug 27, 2008 2:41 am

Re: OpenVPN and WINS problem

Post by Douglas » Fri Oct 08, 2010 11:56 am

Mimiko wrote:Server LAN subnet: 132.101.0.0 / 255.255.0.0
US Army? :)

User avatar
krzee
Forum Team
Posts: 728
Joined: Fri Aug 29, 2008 5:42 pm

Re: OpenVPN and WINS problem

Post by krzee » Fri Oct 08, 2010 12:47 pm

lol @ the army for needing windows filesharing :-p

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: OpenVPN and WINS problem

Post by Mimiko » Mon Oct 18, 2010 8:25 pm

So, no one can help with this? I though here I can find some answers from experts on OpenVPN, but only jokes got. :(
Well, then I'll give a hint on resolving this problem.
after OpenVPN server service is started, the WINS on the same server does not respond to queryies on any network connected
This is not an OpenVPN bug. It's just a old old bug from microsoft windows servers which wasn't fixed even in Windows server 2008 r2. The problem of the WINS service consists in the fact that WINS service only bibds it's self and responses only to the first NIC listed in bindings order tab and only to the first IP of the first nic. To find the bind order of the NICs go to Control Panel -> Network Connections. From menu select Advanced -> Advanced settings. On Adapters and Bindings tab you can see the order in wich network services use adapters. When you install OpenVPN service it sets itself as first adapter to bind. So when service is started WINS start to respond only to virtual OpenVPN nic.

To temporarly solve problem, make sure that the Local LAN on which WINS must service request is the first in bindings tab. And to know that only on the first ip (for multiple ips per nic) of first nic in bindings order WINS listens and responses.

Surelly, microsoft would not want to solve this problem of the WINS service.

Post Reply