Openvpn 2.0 TAP installation on WindowsXP
Hello Group,
I recently downloaded the OpenVPN 2.0 from the openvpn site and I wanted to setup a TAP device in multi-client fashion on a Windows XP box with SP2. As mentioned in the openvpn site, I selected the tap interface ( tap0 ) and the ethernet adaptor and bridged it. Also, I assigned the IP address and subnet of the ethernet adaptor to the bidge interface.
Now, if I connect more than one client to the server I get connection reset problem in few seconds just after the connection is extablished. I took the sample conf files from the sample-config-files folder.
server TAP conf file:
port 1194
proto tcp
dev tap
ca sample-keys/tmp-ca.crt
cert sample-keys/server.crt
key sample-keys/server.key
dh sample-keys/dh1024.pem
server-bridge 192.168.1.241 255.255.255.0 192.168.1.50 192.168.1.100 duplicate-cn
client conf file:
client
dev tap
proto tcp
remote 192.168.1.241 1194
ca sample-keys/tmp-ca.crt
cert sample-keys/client.crt
key sample-keys/client.key
In the above case 192.168.1.241 is the XP machine on which the TAP server is installed.
Also, I tried to create more TAP adapters and created a bridge assuming that openvpn might require a pool of ceated TAP adapters. Even in this case I got "connection reset problem" just few minutes after the client gets connected the server.
Am I missing any important setting in the conf file ?
Thanks in advance
-Prem
Quoted 9 lines · Prem Kumar J
Hello Group,
I recently downloaded the OpenVPN 2.0 from the openvpn site and I wanted to setup a TAP device in multi-client fashion on a Windows XP box with SP2. As mentioned in the openvpn site, I selected the tap interface ( tap0 ) and the ethernet adaptor and bridged it. Also, I assigned the IP address and subnet of the ethernet adaptor to the bidge interface.
Quoted 4 lines
Now, if I connect more than one client to the server I get connection reset problem in few seconds just after the connection is extablished. I took the sample conf files from the sample-config-files folder.
You need to allow duplicate certificates.
--duplicate-cn
Allow multiple clients with the same common name to concurrently
connect. In the absence of this option, OpenVPN will disconnect a client instance upon connection of a new client having the same common name.
Signature · 2 lines
Leonard Isham, CISSP Ostendo non ostento.
Quoted 1 line · Leonard Isham
You need to allow duplicate certificates.
...or to create unique client certificates. There's a lot to be said for knowing who the connected clients are (in the logs, status files, etc) and being able to individually revoke them; IMHO, such is a more appropriate practice to encourage than duplicate-cn use except in unusual cases.
In any event, this is a discussion more fit for openvpn-users than openvpn-devel.
Quoted 11 lines · Charles Duffy
Quoted 1 line · Leonard Isham
You need to allow duplicate certificates.
...or to create unique client certificates. There's a lot to be said for knowing who the connected clients are (in the logs, status files, etc) and being able to individually revoke them; IMHO, such is a more appropriate practice to encourage than duplicate-cn use except in unusual cases.
In any event, this is a discussion more fit for openvpn-users than openvpn-devel.
I assumed that he was taking "it step by step before adding in his own certs.
Yes wrong list.
Signature · 2 lines
Leonard Isham, CISSP Ostendo non ostento.
Quoted 3 lines
You need to allow duplicate certificates.
--duplicate-cn
Thanks for the response.
Yes I gave duplicate-cn option too in my conf file.
I have attached both server and client conf file in my mail. I get the reset problem only when i use TAP whereas TUN I dont have any problem with.
Thanks
-Prem
Quoted 28 lines · Leonard Isham
Quoted 9 lines · Prem Kumar J
Hello Group,
I recently downloaded the OpenVPN 2.0 from the openvpn site and I wanted to setup a TAP device in multi-client fashion on a Windows XP box with SP2. As mentioned in the openvpn site, I selected the tap interface ( tap0 ) and the ethernet adaptor and bridged it. Also, I assigned the IP address and subnet of the ethernet adaptor to the bidge interface.
Quoted 4 lines
Now, if I connect more than one client to the server I get connection reset problem in few seconds just after the connection is extablished. I took the sample conf files from the sample-config-files folder.
You need to allow duplicate certificates.
--duplicate-cn
Allow multiple clients with the same common name to concurrently
connect. In the absence of this option, OpenVPN will disconnect a client instance upon connection of a new client having the same common name.--
Leonard Isham, CISSP
Ostendo non ostento.
Quoted 3 lines · Prem Kumar J
Yes I gave duplicate-cn option too in my conf file. I have attached both server and client conf file in my mail. I get the reset problem only when i use TAP whereas TUN I dont have any problem with.
Please repost to openvpn-users; openvpn-devel is for development-centric questions.