I can connect to openvpn server fine but I can't seem to ping the server and after sometime it disconnects itself. Can you please take a look and see what is wrong.
Here are my config files
port 1194
proto udp
dev tap
server-bridge 192.168.1.185 255.255.255.0 192.168.1.200 192.168.1.250
keepalive 10 120
cipher none
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
client
dev tap
proto udp
resolv-retry infinite
nobind
persist-key
persist-tun
ns-cert-type server
cipher none
comp-lzo
verb 3
route delay 60 60
server log:
Mon Aug 25 22:44:24 2014 OpenVPN 2.3.4 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [IPv6] built on Aug 7 2014
Mon Aug 25 22:44:24 2014 library versions: OpenSSL 1.0.1i 6 Aug 2014, LZO 2.05
Mon Aug 25 22:44:24 2014 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Mon Aug 25 22:44:24 2014 Need hold release from management interface, waiting...
Mon Aug 25 22:44:25 2014 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Mon Aug 25 22:44:25 2014 MANAGEMENT: CMD 'state on'
Mon Aug 25 22:44:25 2014 MANAGEMENT: CMD 'log all on'
Mon Aug 25 22:44:25 2014 MANAGEMENT: CMD 'hold off'
Mon Aug 25 22:44:25 2014 MANAGEMENT: CMD 'hold release'
Mon Aug 25 22:44:25 2014 NOTE: when bridging your LAN adapter with the TAP adapter, note that the new bridge adapter will often take on its own IP address that is different from what the LAN adapter was previously set to
Mon Aug 25 22:44:25 2014 NOTE: your local LAN uses the extremely common subnet address 192.168.0.x or 192.168.1.x. Be aware that this might create routing conflicts if you connect to the VPN server from public locations such as internet cafes that use the same subnet.
Mon Aug 25 22:44:25 2014 Diffie-Hellman initialized with 1024 bit key
Mon Aug 25 22:44:25 2014 ******* WARNING *******: null cipher specified, no encryption will be used
Mon Aug 25 22:44:25 2014 Socket Buffers: R=[65536->65536] S=[65536->65536]
Mon Aug 25 22:44:25 2014 open_tun, tt->ipv6=0
Mon Aug 25 22:44:25 2014 TAP-WIN32 device [tap-bridge] opened: \\.\Global\{C0E40E75-F7C7-49F3-A1A0-2FBDF0155525}.tap
Mon Aug 25 22:44:25 2014 TAP-Windows Driver Version 9.21
Mon Aug 25 22:44:25 2014 Sleeping for 10 seconds...
Mon Aug 25 22:44:35 2014 NOTE: FlushIpNetTable failed on interface [8] {C0E40E75-F7C7-49F3-A1A0-2FBDF0155525} (status=1168) : Element not found.
Mon Aug 25 22:44:35 2014 UDPv4 link local (bound): [undef]
Mon Aug 25 22:44:35 2014 UDPv4 link remote: [undef]
Mon Aug 25 22:44:35 2014 MULTI: multi_init called, r=256 v=256
Mon Aug 25 22:44:35 2014 IFCONFIG POOL: base=192.168.1.200 size=51, ipv6=0
Mon Aug 25 22:44:35 2014 Initialization Sequence Completed
Mon Aug 25 22:44:35 2014 MANAGEMENT: >STATE:1409031875,CONNECTED,SUCCESS,,
Mon Aug 25 22:45:11 2014 [removed] TLS: Initial packet from [AF_INET][removed]
Mon Aug 25 22:45:11 2014 [removed]
Mon Aug 25 22:45:11 2014 [removed]
Mon Aug 25 22:45:11 2014 [removed]Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Mon Aug 25 22:45:11 2014 [removed] Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Mon Aug 25 22:45:11 2014 [removed] Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Mon Aug 25 22:45:11 2014 [removed] Peer Connection Initiated with [removed]
Mon Aug 25 22:45:11 2014 [removed] MULTI_sva: pool returned IPv4=192.168.1.200, IPv6=(Not enabled)
Mon Aug 25 22:45:13 2014 [removed] PUSH: Received control message: 'PUSH_REQUEST'
Mon Aug 25 22:45:13 2014 [removed] send_push_reply(): safe_cap=940
Mon Aug 25 22:45:13 2014 [removed] SENT CONTROL [OLD-HTPC]: 'PUSH_REPLY,route-gateway 192.168.1.185,ping 10,ping-restart 120,ifconfig 192.168.1.200 255.255.255.0' (status=1)
Mon Aug 25 22:45:16 2014 [removed] MULTI: Learn: 00:ff:b3:2e:4a:a7 -> [removed]
client log:
Mon Aug 25 22:44:59 2014 OpenVPN 2.3.4 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [IPv6] built on Aug 7 2014
Mon Aug 25 22:44:59 2014 library versions: OpenSSL 1.0.1i 6 Aug 2014, LZO 2.05
Mon Aug 25 22:44:59 2014 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Mon Aug 25 22:44:59 2014 Need hold release from management interface, waiting...
Mon Aug 25 22:45:00 2014 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Mon Aug 25 22:45:00 2014 MANAGEMENT: CMD 'state on'
Mon Aug 25 22:45:00 2014 MANAGEMENT: CMD 'log all on'
Mon Aug 25 22:45:00 2014 MANAGEMENT: CMD 'hold off'
Mon Aug 25 22:45:00 2014 MANAGEMENT: CMD 'hold release'
Mon Aug 25 22:45:00 2014 ******* WARNING *******: null cipher specified, no encryption will be used
Mon Aug 25 22:45:00 2014 Socket Buffers: R=[65536->65536] S=[65536->65536]
Mon Aug 25 22:45:00 2014 MANAGEMENT: >STATE:1409021100,RESOLVE,,,
Mon Aug 25 22:45:00 2014 UDPv4 link local: [undef]
Mon Aug 25 22:45:00 2014 UDPv4 link remote: [AF_INET][removed]
Mon Aug 25 22:45:00 2014 MANAGEMENT: >STATE:1409021100,WAIT,,,
Mon Aug 25 22:45:00 2014 MANAGEMENT: >STATE:1409021100,AUTH,,,
Mon Aug 25 22:45:00 2014 TLS: Initial packet from [AF_INET][removed]
Mon Aug 25 22:45:00 2014 VERIFY OK: depth=1, [removed]
Mon Aug 25 22:45:00 2014 VERIFY OK: nsCertType=SERVER
Mon Aug 25 22:45:00 2014 VERIFY OK: depth=0, [removed]
Mon Aug 25 22:45:00 2014 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Mon Aug 25 22:45:00 2014 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Mon Aug 25 22:45:00 2014 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Mon Aug 25 22:45:00 2014 [server] Peer Connection Initiated with [AF_INET][removed]
Mon Aug 25 22:45:01 2014 MANAGEMENT: >STATE:1409021101,GET_CONFIG,,,
Mon Aug 25 22:45:02 2014 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Mon Aug 25 22:45:02 2014 PUSH: Received control message: 'PUSH_REPLY,route-gateway 192.168.1.185,ping 10,ping-restart 120,ifconfig 192.168.1.200 255.255.255.0'
Mon Aug 25 22:45:02 2014 OPTIONS IMPORT: timers and/or timeouts modified
Mon Aug 25 22:45:02 2014 OPTIONS IMPORT: --ifconfig/up options modified
Mon Aug 25 22:45:02 2014 OPTIONS IMPORT: route-related options modified
Mon Aug 25 22:45:05 2014 RESOLVE: Cannot resolve host address: delay: No such host is known.
Mon Aug 25 22:45:05 2014 OpenVPN ROUTE: failed to parse/resolve route for host/network: delay
Mon Aug 25 22:45:05 2014 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Mon Aug 25 22:45:05 2014 MANAGEMENT: >STATE:1409021105,ASSIGN_IP,,192.168.1.200,
Mon Aug 25 22:45:05 2014 open_tun, tt->ipv6=0
Mon Aug 25 22:45:05 2014 TAP-WIN32 device [OpenVPN] opened: \\.\Global\{B32E4AA7-D313-401E-AB69-37BA22F28193}.tap
Mon Aug 25 22:45:05 2014 TAP-Windows Driver Version 9.21
Mon Aug 25 22:45:05 2014 Notified TAP-Windows driver to set a DHCP IP/netmask of 192.168.1.200/255.255.255.0 on interface {B32E4AA7-D313-401E-AB69-37BA22F28193} [DHCP-serv: 192.168.1.0, lease-time: 31536000]
Mon Aug 25 22:45:05 2014 Successful ARP Flush on interface [28] {B32E4AA7-D313-401E-AB69-37BA22F28193}
Mon Aug 25 22:45:10 2014 TEST ROUTES: 0/0 succeeded len=0 ret=1 a=0 u/d=up
Mon Aug 25 22:45:10 2014 Initialization Sequence Completed
Mon Aug 25 22:45:10 2014 MANAGEMENT: >STATE:1409021110,CONNECTED,SUCCESS,192.168.1.200,[removed]
Mon Aug 25 22:47:05 2014 [server] Inactivity timeout (--ping-restart), restarting
Mon Aug 25 22:47:05 2014 SIGUSR1[soft,ping-restart] received, process restarting
Mon Aug 25 22:47:05 2014 MANAGEMENT: >STATE:1409021225,RECONNECTING,ping-restart,,
Mon Aug 25 22:47:05 2014 Restart pause, 2 second(s)
Mon Aug 25 22:47:07 2014 Socket Buffers: R=[65536->65536] S=[65536->65536]
Mon Aug 25 22:47:07 2014 MANAGEMENT: >STATE:1409021227,RESOLVE,,,
Mon Aug 25 22:47:07 2014 UDPv4 link local: [undef]
Mon Aug 25 22:47:07 2014 UDPv4 link remote: [AF_INET] [removed]
Mon Aug 25 22:47:07 2014 MANAGEMENT: >STATE:1409021227,WAIT,,,
Mon Aug 25 22:48:07 2014 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Mon Aug 25 22:48:07 2014 TLS Error: TLS handshake failed
Mon Aug 25 22:48:07 2014 SIGUSR1[soft,tls-error] received, process restarting
Mon Aug 25 22:48:07 2014 MANAGEMENT: >STATE:1409021287,RECONNECTING,tls-error,,
As you can see the client connects successfully but then disconnects after a while. In the time it stays connected I can't ping the server either. I feel like it might be this but I am not sure why it is happening: NOTE: FlushIpNetTable failed on interface [8] {C0E40E75-F7C7-49F3-A1A0-2FBDF0155525} (status=1168) : Element not found.
Thanks for your help.