How do I get a Windows client to work ?

Need help configuring your VPN? Just post here and you'll get that help.

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
OralDeckard
OpenVpn Newbie
Posts: 1
Joined: Fri Aug 21, 2009 2:49 am

How do I get a Windows client to work ?

Post by OralDeckard » Fri Aug 21, 2009 3:06 am

:?:
I have a Linux server. My Linux clients access it just fine. But my Windows clients give the right indication in the CMD window, and ping the server just fine, but say "Windows cannot access the specified device, path or file. You may not have the appropriate permissions to access the item."

I have it set up as TUN, not TAP.
All the HowTos said Windows would need a TAP adaptor, even though specifying TUN. That never worked, so I commented it out, then everything worked EXCEPT actually seeing the shares.

I'm running in Administrator of all things, just to give it every chance, and I still lack permissions ???

I'm not sending any PUSH commands because I don't need DNS lookup of other servers. The only shares I want are the Samba shares on the server.

I'd sure appreciate any help you can provide.

Thank you!



DO I need a TAP adaptor ?
If so, how do you get them to work ?

My server.conf is working fine as far as I can tell. The Linux clients have no problem with it. Here it is:

Code: Select all

port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key  # This file should be kept secret
dh dh1024.pem
server 10.8.0.0 255.255.0.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
tls-auth ta.key 0 # This file is secret
comp-lzo
max-clients 10
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
verb 6
mute 5
Here is my Windows client.ovpn:

Code: Select all

 client
dev tun
dev-node TAP-Win32 Adaptor v8
proto udp
remote 63.134.135.49 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert Oral.crt
key Oral.key
ns-cert-type server
tls-auth ta.key 1
cipher BF-CBC # Blowfish
comp-lzo
verb 6
mute 5
This is from the server when trying to serve a Windows client:

Code: Select all

 Thu Aug 20 00:10:41 2009 us=933903 Oral/71.114.186.51:1965 UDPv4 READ [50] from 71.114.186.51:1965: P_ACK_V1 kid=0 pid=[ #65 ] [ 34 ]
Thu Aug 20 00:10:41 2009 us=945766 Oral/71.114.186.51:1965 NOTE: --mute triggered...
Thu Aug 20 00:12:02 2009 us=64421 16 variation(s) on previous 5 message(s) suppressed by --mute
Thu Aug 20 00:12:02 2009 us=64450 read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
Thu Aug 20 00:12:11 2009 us=414402 Oral/71.114.186.51:1965 UDPv4 WRITE [53] to 71.114.186.51:1965: P_DATA_V1 kid=0 DATA len=52
Thu Aug 20 00:12:11 2009 us=497251 read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
Thu Aug 20 00:12:21 2009 us=701139 Oral/71.114.186.51:1965 UDPv4 WRITE [53] to 71.114.186.51:1965: P_DATA_V1 kid=0 DATA len=52
Thu Aug 20 00:12:21 2009 us=783249 read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
Thu Aug 20 00:12:32 2009 us=13146 Oral/71.114.186.51:1965 UDPv4 WRITE [53] to 71.114.186.51:1965: P_DATA_V1 kid=0 DATA len=52
Thu Aug 20 00:12:32 2009 us=97663 read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
Thu Aug 20 00:12:42 2009 us=133146 Oral/71.114.186.51:1965 UDPv4 WRITE [53] to 71.114.186.51:1965: P_DATA_V1 kid=0 DATA len=52
Thu Aug 20 00:12:52 2009 us=325138 Oral/71.114.186.51:1965 UDPv4 WRITE [53] to 71.114.186.51:1965: P_DATA_V1 kid=0 DATA len=52
Thu Aug 20 00:13:02 2009 us=679147 Oral/71.114.186.51:1965 UDPv4 WRITE [53] to 71.114.186.51:1965: P_DATA_V1 kid=0 DATA len=52
Thu Aug 20 00:13:13 2009 us=61149 Oral/71.114.186.51:1965 UDPv4 WRITE [53] to 71.114.186.51:1965: P_DATA_V1 kid=0 DATA len=52
Thu Aug 20 00:13:23 2009 us=82138 Oral/71.114.186.51:1965 UDPv4 WRITE [53] to 71.114.186.51:1965: P_DATA_V1 kid=0 DATA len=52
Thu Aug 20 00:13:26 2009 us=163198 read UDPv4 [EHOSTUNREACH]: No route to host (code=113)
Thu Aug 20 00:13:33 2009 us=223146 Oral/71.114.186.51:1965 UDPv4 WRITE [53] to 71.114.186.51:1965: P_DATA_V1 kid=0 DATA len=52
Thu Aug 20 00:13:36 2009 us=302596 read UDPv4 [EHOSTUNREACH]: No route to host (code=113)
Thu Aug 20 00:13:43 2009 us=374146 Oral/71.114.186.51:1965 UDPv4 WRITE [53] to 71.114.186.51:1965: P_DATA_V1 kid=0 DATA len=52
Thu Aug 20 00:13:46 2009 us=452965 read UDPv4 [EHOSTUNREACH]: No route to host (code=113)
Thu Aug 20 00:13:53 2009 us=556392 Oral/71.114.186.51:1965 UDPv4 WRITE [53] to 71.114.186.51:1965: P_DATA_V1 kid=0 DATA len=52
Thu Aug 20 00:13:56 2009 us=637425 read UDPv4 [EHOSTUNREACH]: No route to host (code=113)
Thu Aug 20 00:14:03 2009 us=847147 Oral/71.114.186.51:1965 UDPv4 WRITE [53] to 71.114.186.51:1965: P_DATA_V1 kid=0 DATA len=52
Thu Aug 20 00:14:06 2009 us=926886 read UDPv4 [EHOSTUNREACH]: No route to host (code=113)
Thu Aug 20 00:14:13 2009 us=298144 Oral/71.114.186.51:1965 UDPv4 WRITE [53] to 71.114.186.51:1965: P_DATA_V1 kid=0 DATA len=52
Thu Aug 20 00:14:16 2009 us=376810 read UDPv4 [EHOSTUNREACH]: No route to host (code=113)
Thu Aug 20 00:14:23 2009 us=576145 Oral/71.114.186.51:1965 UDPv4 WRITE [53] to 71.114.186.51:1965: P_DATA_V1 kid=0 DATA len=52
Thu Aug 20 00:14:26 2009 us=656975 read UDPv4 [EHOSTUNREACH]: No route to host (code=113)
Thu Aug 20 00:14:33 2009 us=861144 Oral/71.114.186.51:1965 UDPv4 WRITE [53] to 71.114.186.51:1965: P_DATA_V1 kid=0 DATA len=52
Thu Aug 20 00:14:36 2009 us=942410 read UDPv4 [EHOSTUNREACH]: No route to host (code=113)
Thu Aug 20 00:14:43 2009 us=204144 Oral/71.114.186.51:1965 UDPv4 WRITE [53] to 71.114.186.51:1965: P_DATA_V1 kid=0 DATA len=52
Thu Aug 20 00:14:46 2009 us=282334 read UDPv4 [EHOSTUNREACH]: No route to host (code=113)
Thu Aug 20 00:14:53 2009 us=306146 Oral/71.114.186.51:1965 UDPv4 WRITE [53] to 71.114.186.51:1965: P_DATA_V1 kid=0 DATA len=52
Thu Aug 20 00:14:56 2009 us=387320 read UDPv4 [EHOSTUNREACH]: No route to host (code=113)
Thu Aug 20 00:15:03 2009 us=443394 Oral/71.114.186.51:1965 UDPv4 WRITE [53] to 71.114.186.51:1965: P_DATA_V1 kid=0 DATA len=52
Thu Aug 20 00:15:06 2009 us=522529 read UDPv4 [EHOSTUNREACH]: No route to host (code=113)
Thu Aug 20 00:15:13 2009 us=686147 Oral/71.114.186.51:1965 UDPv4 WRITE [53] to 71.114.186.51:1965: P_DATA_V1 kid=0 DATA len=52
Thu Aug 20 00:15:16 2009 us=762385 read UDPv4 [EHOSTUNREACH]: No route to host (code=113)
Thu Aug 20 00:15:23 2009 us=878145 Oral/71.114.186.51:1965 UDPv4 WRITE [53] to 71.114.186.51:1965: P_DATA_V1 kid=0 DATA len=52
Thu Aug 20 00:15:26 2009 us=957566 read UDPv4 [EHOSTUNREACH]: No route to host (code=113)
Thu Aug 20 00:15:33 2009 us=355393 Oral/71.114.186.51:1965 UDPv4 WRITE [53] to 71.114.186.51:1965: P_DATA_V1 kid=0 DATA len=52
Thu Aug 20 00:15:36 2009 us=437240 read UDPv4 [EHOSTUNREACH]: No route to host (code=113)
Thu Aug 20 00:15:42 2009 us=443116 Oral/71.114.186.51:1965 [Oral] Inactivity timeout (--ping-restart), restarting
Thu Aug 20 00:15:42 2009 us=443142 Oral/71.114.186.51:1965 SIGUSR1[soft,ping-restart] received, client-instance restarting 
And this is from the Windows client:

Code: Select all

 Thu Aug 20 22:15:32 2009 us=227702 Current Parameter Settings:
Thu Aug 20 22:15:32 2009 us=227808   config = 'client.ovpn'
Thu Aug 20 22:15:32 2009 us=227839   mode = 0
Thu Aug 20 22:15:32 2009 us=227865   show_ciphers = DISABLED
Thu Aug 20 22:15:32 2009 us=227893   show_digests = DISABLED
Thu Aug 20 22:15:32 2009 us=227917 NOTE: --mute triggered...
Thu Aug 20 22:15:32 2009 us=227955 183 variation(s) on previous 5 message(s) suppressed by --mute
Thu Aug 20 22:15:32 2009 us=227984 OpenVPN 2.0.9 Win32-MinGW [SSL] [LZO] built on Oct  1 2006
Thu Aug 20 22:15:32 2009 us=228194 IMPORTANT: OpenVPN's default port number is now 1194, based on an official port number assignment by IANA.  OpenVPN 2.0-beta16 and earlier used 5000 as the default port.
Thu Aug 20 22:15:43 2009 us=426058 Control Channel Authentication: using 'ta.key' as a OpenVPN static key file
Thu Aug 20 22:15:43 2009 us=426115 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Aug 20 22:15:43 2009 us=426132 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Aug 20 22:15:43 2009 us=426167 LZO compression initialized
Thu Aug 20 22:15:43 2009 us=426272 Control Channel MTU parms [ L:1542 D:166 EF:66 EB:0 ET:0 EL:0 ]
Thu Aug 20 22:15:43 2009 us=428166 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Thu Aug 20 22:15:43 2009 us=428225 Local Options String: 'V4,dev-type tun,link-mtu 1542,tun-mtu 1500,proto UDPv4,comp-lzo,keydir 1,cipher BF-CBC,auth SHA1,keysize 128,tls-auth,key-method 2,tls-client'
Thu Aug 20 22:15:43 2009 us=428240 Expected Remote Options String: 'V4,dev-type tun,link-mtu 1542,tun-mtu 1500,proto UDPv4,comp-lzo,keydir 0,cipher BF-CBC,auth SHA1,keysize 128,tls-auth,key-method 2,tls-server'
Thu Aug 20 22:15:43 2009 us=428268 Local Options hash (VER=V4): '504e774e'
Thu Aug 20 22:15:43 2009 us=428289 Expected Remote Options hash (VER=V4): '14168603'
Thu Aug 20 22:15:43 2009 us=428326 Socket Buffers: R=[8192->8192] S=[8192->8192]
Thu Aug 20 22:15:43 2009 us=428346 UDPv4 link local: [undef]
Thu Aug 20 22:15:43 2009 us=428359 UDPv4 link remote: 63.134.135.49:1194
Thu Aug 20 22:15:43 2009 us=428489 UDPv4 WRITE [42] to 63.134.135.49:1194: P_CONTROL_HARD_RESET_CLIENT_V2 kid=0 pid=[ #1 ] [ ] pid=0 DATA len=0
Thu Aug 20 22:15:43 2009 us=432558 UDPv4 READ [-1] from [undef]: DATA UNDEF len=-1
Thu Aug 20 22:15:43 2009 us=525242 UDPv4 READ [54] from 63.134.135.49:1194: P_CONTROL_HARD_RESET_SERVER_V2 kid=0 pid=[ #1 ] [ 0 ] pid=0 DATA len=0
Thu Aug 20 22:15:43 2009 us=525299 TLS: Initial packet from 63.134.135.49:1194, sid=a55c6e0f b67ea1ed
Thu Aug 20 22:15:43 2009 us=525447 UDPv4 WRITE [50] to 63.134.135.49:1194: P_ACK_V1 kid=0 pid=[ #2 ] [ 0 ]
Thu Aug 20 22:15:43 2009 us=525651 UDPv4 WRITE [130] to 63.134.135.49:1194: P_CONTROL_V1 kid=0 pid=[ #3 ] [ ] pid=1 DATA len=88
Thu Aug 20 22:15:43 2009 us=621080 UDPv4 READ [154] from 63.134.135.49:1194: P_CONTROL_V1 kid=0 pid=[ #2 ] [ 1 ] pid=1 DATA len=100
Thu Aug 20 22:15:43 2009 us=621305 UDPv4 WRITE [50] to 63.134.135.49:1194: P_ACK_V1 kid=0 pid=[ #4 ] [ 1 ]
Thu Aug 20 22:15:43 2009 us=634088 UDPv4 READ [142] from 63.134.135.49:1194: P_CONTROL_V1 kid=0 pid=[ #3 ] [ ] pid=2 DATA len=100
Thu Aug 20 22:15:43 2009 us=634238 NOTE: --mute triggered...
Thu Aug 20 22:15:44 2009 us=72285 42 variation(s) on previous 5 message(s) suppressed by --mute
Thu Aug 20 22:15:44 2009 us=72325 VERIFY OK: depth=1, /C=US/ST=IN/L=TerreHaute/O=MyersEngineering/OU=Work/CN=MyersEngineering_CA/name=Myers/emailAddress=Drafting@MyersEngineering.com
Thu Aug 20 22:15:44 2009 us=72746 VERIFY OK: nsCertType=SERVER
Thu Aug 20 22:15:44 2009 us=72760 VERIFY OK: depth=0, /C=US/ST=IN/L=TerreHaute/O=MyersEngineering/OU=Work/CN=server/name=Myers/emailAddress=Drafting@MyersEngineering.com
Thu Aug 20 22:15:44 2009 us=72859 UDPv4 WRITE [50] to 63.134.135.49:1194: P_ACK_V1 kid=0 pid=[ #26 ] [ 23 ]
Thu Aug 20 22:15:44 2009 us=87158 UDPv4 READ [142] from 63.134.135.49:1194: P_CONTROL_V1 kid=0 pid=[ #25 ] [ ] pid=24 DATA len=100
Thu Aug 20 22:15:44 2009 us=87335 UDPv4 WRITE [50] to 63.134.135.49:1194: P_ACK_V1 kid=0 pid=[ #27 ] [ 24 ]
Thu Aug 20 22:15:44 2009 us=130147 UDPv4 READ [142] from 63.134.135.49:1194: P_CONTROL_V1 kid=0 pid=[ #26 ] [ ] pid=25 DATA len=100
Thu Aug 20 22:15:44 2009 us=130334 UDPv4 WRITE [50] to 63.134.135.49:1194: P_ACK_V1 kid=0 pid=[ #28 ] [ 25 ]
Thu Aug 20 22:15:44 2009 us=143031 NOTE: --mute triggered...
Thu Aug 20 22:15:44 2009 us=988344 69 variation(s) on previous 5 message(s) suppressed by --mute
Thu Aug 20 22:15:44 2009 us=988385 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Aug 20 22:15:44 2009 us=988400 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Aug 20 22:15:44 2009 us=988463 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Aug 20 22:15:44 2009 us=988477 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Aug 20 22:15:44 2009 us=988546 UDPv4 WRITE [50] to 63.134.135.49:1194: P_ACK_V1 kid=0 pid=[ #63 ] [ 33 ]
Thu Aug 20 22:15:44 2009 us=988623 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Thu Aug 20 22:15:44 2009 us=988651 [server] Peer Connection Initiated with 63.134.135.49:1194
Thu Aug 20 22:15:46 2009 us=122054 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Thu Aug 20 22:15:46 2009 us=122186 UDPv4 WRITE [132] to 63.134.135.49:1194: P_CONTROL_V1 kid=0 pid=[ #64 ] [ ] pid=31 DATA len=90
Thu Aug 20 22:15:46 2009 us=242033 UDPv4 READ [50] from 63.134.135.49:1194: P_ACK_V1 kid=0 pid=[ #62 ] [ 31 ]
Thu Aug 20 22:15:46 2009 us=255016 UDPv4 READ [142] from 63.134.135.49:1194: P_CONTROL_V1 kid=0 pid=[ #63 ] [ ] pid=34 DATA len=100
Thu Aug 20 22:15:46 2009 us=255122 UDPv4 WRITE [50] to 63.134.135.49:1194: P_ACK_V1 kid=0 pid=[ #65 ] [ 34 ]
Thu Aug 20 22:15:46 2009 us=268047 UDPv4 READ [142] from 63.134.135.49:1194: P_CONTROL_V1 kid=0 pid=[ #64 ] [ ] pid=35 DATA len=100
Thu Aug 20 22:15:46 2009 us=268120 NOTE: --mute triggered... 
Any suggestions will be very much appreciated.

Thank you!

Post Reply