Heyho,
we have a problem ๐. We have a Windows Server 2012r2 which is the OpenVPN Server and we have a Windows 7 OpenVPN-Client. One setup works perfect at a customers firm. Then we decided to setup the same in our own firm, but the connection works perfect but we can not ping and access any shares.
May you can help us. Iยดm gonna tell you want we done so far.
I installed everything with help of 2 Tutorials I found with google ๐. Both tutorials are in german , sorry for that.
http://www.tecchannel.de/netzwerk/lan/2027706/workshop_openvpn_auf_einem_windows_server_einrichten/index2.html and
http://www.pcwelt.de/ratgeber/OpenVPN-mit-Windows-4984324.html
I give you some Log and Config Files.
Client Log and Config File:
I shortend the config File, cause I used the example file.
local 192.168.14.80
port 1194
proto udp
dev tun
ca ca.crt
cert OPenVPNServer.crt
key OPenVPNServer.key # This file should be kept secret
dh dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 192.168.14.0 255.255.255.0"
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
Thu Jul 17 12:29:31 2014 OpenVPN 2.3.4 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [IPv6] built on Jun 5 2014
Thu Jul 17 12:29:31 2014 library versions: OpenSSL 1.0.1h 5 Jun 2014, LZO 2.05
Thu Jul 17 12:29:32 2014 Diffie-Hellman initialized with 1024 bit key
Thu Jul 17 12:29:32 2014 Socket Buffers: R=[65536->65536] S=[65536->65536]
Thu Jul 17 12:29:32 2014 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Thu Jul 17 12:29:32 2014 open_tun, tt->ipv6=0
Thu Jul 17 12:29:32 2014 TAP-WIN32 device [LAN-Verbindung] opened: \\.\Global\{C274E757-ACC5-473B-801A-81123DDD0CDE}.tap
Thu Jul 17 12:29:32 2014 TAP-Windows Driver Version 9.9
Thu Jul 17 12:29:32 2014 Notified TAP-Windows driver to set a DHCP IP/netmask of 10.8.0.1/255.255.255.252 on interface {C274E757-ACC5-473B-801A-81123DDD0CDE} [DHCP-serv: 10.8.0.2, lease-time: 31536000]
Thu Jul 17 12:29:32 2014 Sleeping for 10 seconds...
Thu Jul 17 12:29:42 2014 Successful ARP Flush on interface [23] {C274E757-ACC5-473B-801A-81123DDD0CDE}
Thu Jul 17 12:29:42 2014 C:\Windows\system32\route.exe ADD 10.8.0.0 MASK 255.255.255.0 10.8.0.2
Thu Jul 17 12:29:42 2014 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
Thu Jul 17 12:29:42 2014 Route addition via IPAPI succeeded [adaptive]
Thu Jul 17 12:29:42 2014 UDPv4 link local (bound): [AF_INET]192.168.14.80:1194
Thu Jul 17 12:29:42 2014 UDPv4 link remote: [undef]
Thu Jul 17 12:29:42 2014 MULTI: multi_init called, r=256 v=256
Thu Jul 17 12:29:42 2014 IFCONFIG POOL: base=10.8.0.4 size=62, ipv6=0
Thu Jul 17 12:29:42 2014 ifconfig_pool_read(), in='CDS-Chris,10.8.0.4', TODO: IPv6
Thu Jul 17 12:29:42 2014 succeeded -> ifconfig_pool_set()
Thu Jul 17 12:29:42 2014 IFCONFIG POOL LIST
Thu Jul 17 12:29:42 2014 CDS-Chris,10.8.0.4
Thu Jul 17 12:29:42 2014 Initialization Sequence Completed
Logfile and Client Config
client
dev tun
proto udp
remote "static IP Fritzbox" 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert CDS-Chris.crt
key CDS-Chris.key
ns-cert-type server
comp-lzo
verb 3
Thu Jul 17 12:42:04 2014 OpenVPN 2.3.4 i686-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [IPv6] built on Jun 5 2014
Thu Jul 17 12:42:04 2014 library versions: OpenSSL 1.0.1h 5 Jun 2014, LZO 2.05
Enter Management Password:
Thu Jul 17 12:42:04 2014 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Thu Jul 17 12:42:04 2014 Need hold release from management interface, waiting...
Thu Jul 17 12:42:05 2014 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Thu Jul 17 12:42:05 2014 MANAGEMENT: CMD 'state on'
Thu Jul 17 12:42:05 2014 MANAGEMENT: CMD 'log all on'
Thu Jul 17 12:42:05 2014 MANAGEMENT: CMD 'hold off'
Thu Jul 17 12:42:05 2014 MANAGEMENT: CMD 'hold release'
Thu Jul 17 12:42:05 2014 Socket Buffers: R=[65536->65536] S=[65536->65536]
Thu Jul 17 12:42:05 2014 UDPv4 link local: [undef]
Thu Jul 17 12:42:05 2014 UDPv4 link remote: [AF_INET]130.180.25.58:1194
Thu Jul 17 12:42:05 2014 MANAGEMENT: >STATE:1405593725,WAIT,,,
Thu Jul 17 12:42:07 2014 MANAGEMENT: >STATE:1405593727,AUTH,,,
Thu Jul 17 12:42:07 2014 TLS: Initial packet from [AF_INET]130.180.25.58:1194, sid=745a7403 de020849
Thu Jul 17 12:42:08 2014 VERIFY OK: depth=1, C=DE, ST=NRW, L=Essen, O=CDS-Systems, OU=IT, CN=CDS-OpenVPN, name=OPenVPNServer, emailAddress=hotline@cds-systems.de
Thu Jul 17 12:42:08 2014 VERIFY OK: nsCertType=SERVER
Thu Jul 17 12:42:08 2014 VERIFY OK: depth=0, C=DE, ST=NRW, L=Essen, O=CDS-Systems, OU=IT, CN=CDS-OpenVPN, name=OPenVPNServer, emailAddress=hotline@cds-systems.de
Thu Jul 17 12:42:09 2014 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Jul 17 12:42:09 2014 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Jul 17 12:42:09 2014 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Jul 17 12:42:09 2014 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Jul 17 12:42:09 2014 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Thu Jul 17 12:42:09 2014 [CDS-OpenVPN] Peer Connection Initiated with [AF_INET]130.180.25.58:1194
Thu Jul 17 12:42:10 2014 MANAGEMENT: >STATE:1405593730,GET_CONFIG,,,
Thu Jul 17 12:42:11 2014 SENT CONTROL [CDS-OpenVPN]: 'PUSH_REQUEST' (status=1)
Thu Jul 17 12:42:12 2014 PUSH: Received control message: 'PUSH_REPLY,route 192.168.14.0 255.255.255.0,route 10.8.0.1,topology net30,ping 10,ping-restart 120,ifconfig 10.8.0.6 10.8.0.5'
Thu Jul 17 12:42:12 2014 OPTIONS IMPORT: timers and/or timeouts modified
Thu Jul 17 12:42:12 2014 OPTIONS IMPORT: --ifconfig/up options modified
Thu Jul 17 12:42:12 2014 OPTIONS IMPORT: route options modified
Thu Jul 17 12:42:12 2014 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Thu Jul 17 12:42:12 2014 MANAGEMENT: >STATE:1405593732,ASSIGN_IP,,10.8.0.6,
Thu Jul 17 12:42:12 2014 open_tun, tt->ipv6=0
Thu Jul 17 12:42:12 2014 TAP-WIN32 device [LAN-Verbindung] opened: \\.\Global\{D4C0E323-2F69-4B17-AB00-DF383A905B08}.tap
Thu Jul 17 12:42:12 2014 TAP-Windows Driver Version 9.9
Thu Jul 17 12:42:12 2014 Notified TAP-Windows driver to set a DHCP IP/netmask of 10.8.0.6/255.255.255.252 on interface {D4C0E323-2F69-4B17-AB00-DF383A905B08} [DHCP-serv: 10.8.0.5, lease-time: 31536000]
Thu Jul 17 12:42:12 2014 Successful ARP Flush on interface [23] {D4C0E323-2F69-4B17-AB00-DF383A905B08}
Thu Jul 17 12:42:17 2014 TEST ROUTES: 2/2 succeeded len=2 ret=1 a=0 u/d=up
Thu Jul 17 12:42:17 2014 MANAGEMENT: >STATE:1405593737,ADD_ROUTES,,,
Thu Jul 17 12:42:17 2014 C:\Windows\system32\route.exe ADD 192.168.14.0 MASK 255.255.255.0 10.8.0.5
Thu Jul 17 12:42:17 2014 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
Thu Jul 17 12:42:17 2014 Route addition via IPAPI succeeded [adaptive]
Thu Jul 17 12:42:17 2014 C:\Windows\system32\route.exe ADD 10.8.0.1 MASK 255.255.255.255 10.8.0.5
Thu Jul 17 12:42:17 2014 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
Thu Jul 17 12:42:17 2014 Route addition via IPAPI succeeded [adaptive]
Thu Jul 17 12:42:17 2014 Initialization Sequence Completed
Thu Jul 17 12:42:17 2014 MANAGEMENT: >STATE:1405593737,CONNECTED,SUCCESS,10.8.0.6,130.180.25.58
I think I make a mistake with my "push "route 192.168.14.0 255.255.255.0"" but I dont have so much knowledge about that.
If you need anything else let me know. I hope I can provide the necessary informations.
I did made an expception for Port 1194 in the firewall. But this is obvious cause i can connect ๐.
Greetings Marc