Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 14th June 2008, 10:01
anoopprasad anoopprasad is offline
Junior Member
 
Join Date: May 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Angry Error in connecting to vpn server

Hi,

Can anyone help in connecting to vpn configured in my vps at remote location.

I have installed and configured openvpn in the server and while connecting from my office system it get connected but doesn't ping.

Please help me

Thank You
Reply With Quote
Sponsored Links
  #2  
Old 15th June 2008, 13:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Any errors in your logs?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 16th June 2008, 08:44
anoopprasad anoopprasad is offline
Junior Member
 
Join Date: May 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Question

server side logs are as follows

Jun 16 00:41:15 vps openvpn[28529]: Data Channel MTU parms [ L:1544 D:1450 EF:44 EB:135 ET:0 EL:0 AF:3/1 ]
Jun 16 00:41:15 vps openvpn[28529]: Local Options hash (VER=V4): 'c0103fa8'
Jun 16 00:41:15 vps openvpn[28529]: Expected Remote Options hash (VER=V4): '69109d17'
Jun 16 00:41:15 vps openvpn[28529]: TCP connection established with 61.16.159.93:1917
Jun 16 00:41:15 vps openvpn[28529]: TCPv4_SERVER link local: [undef]
Jun 16 00:41:15 vps openvpn[28529]: TCPv4_SERVER link remote: 61.16.159.93:1917
Jun 16 00:41:15 vps openvpn[28529]: 61.16.159.93:1917 TLS: Initial packet from 61.16.159.93:1917, sid=f0dd0294 bfccba39
Jun 16 00:41:19 vps openvpn[28529]: queryus.com/123.237.1.227:3452 Connection reset, restarting [-1]
Jun 16 00:41:19 vps openvpn[28529]: queryus.com/123.237.1.227:3452 SIGUSR1[soft,connection-reset] received, client-instance restarting
Jun 16 00:41:19 vps openvpn[28529]: TCP/UDP: Closing socket
Jun 16 00:41:21 vps openvpn[28529]: MULTI: multi_create_instance called
Jun 16 00:41:21 vps openvpn[28529]: Re-using SSL/TLS context
Jun 16 00:41:21 vps openvpn[28529]: LZO compression initialized
Jun 16 00:41:21 vps openvpn[28529]: Control Channel MTU parms [ L:1544 D:140 EF:40 EB:0 ET:0 EL:0 ]
Jun 16 00:41:21 vps openvpn[28529]: Data Channel MTU parms [ L:1544 D:1450 EF:44 EB:135 ET:0 EL:0 AF:3/1 ]



and client side logs are :


Mon Jun 16 12:08:51 2008 OpenVPN 2.0.9 Win32-MinGW [SSL] [LZO] built on Oct 1 2006
Mon Jun 16 12:08:51 2008 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.
Mon Jun 16 12:08:51 2008 LZO compression initialized
Mon Jun 16 12:08:51 2008 Control Channel MTU parms [ L:1544 D:140 EF:40 EB:0 ET:0 EL:0 ]
Mon Jun 16 12:08:51 2008 Data Channel MTU parms [ L:1544 D:1450 EF:44 EB:135 ET:0 EL:0 AF:3/1 ]
Mon Jun 16 12:08:51 2008 Local Options hash (VER=V4): '69109d17'
Mon Jun 16 12:08:51 2008 Expected Remote Options hash (VER=V4): 'c0103fa8'
Mon Jun 16 12:08:51 2008 Attempting to establish TCP connection with 75.127.68.182:1194
Mon Jun 16 12:08:51 2008 TCP connection established with 75.127.68.182:1194
Mon Jun 16 12:08:51 2008 TCPv4_CLIENT link local: [undef]
Mon Jun 16 12:08:51 2008 TCPv4_CLIENT link remote: 75.127.68.182:1194
Mon Jun 16 12:08:51 2008 TLS: Initial packet from 75.127.68.182:1194, sid=f648cba9 8206b998
Mon Jun 16 12:08:57 2008 VERIFY OK: depth=1, /C=US/ST=CA/L=SENDIYAGO/O=OpenVPN-RING/OU=IT/CN=vps.queryus.com/emailAddress=enquiry@queryus.com
Mon Jun 16 12:08:57 2008 VERIFY OK: nsCertType=SERVER
Mon Jun 16 12:08:57 2008 VERIFY OK: depth=0, /C=US/ST=CA/O=OpenVPN-RING/OU=IT/CN=vps.queryus.com/emailAddress=enquiry@queryus.com
Mon Jun 16 12:09:06 2008 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Mon Jun 16 12:09:06 2008 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Mon Jun 16 12:09:06 2008 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Mon Jun 16 12:09:06 2008 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Mon Jun 16 12:09:06 2008 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Mon Jun 16 12:09:06 2008 [vps.queryus.com] Peer Connection Initiated with 75.127.68.182:1194
Mon Jun 16 12:09:07 2008 SENT CONTROL [vps.queryus.com]: 'PUSH_REQUEST' (status=1)
Mon Jun 16 12:09:08 2008 PUSH: Received control message: 'PUSH_REPLY,dhcp-option DNS 75.127.68.182,dhcp-option DNS 75.127.68.183,redirect-gateway,route 192.168.99.1,ping 10,ping-restart 120,ifconfig 192.168.99.6 192.168.99.5'
Mon Jun 16 12:09:08 2008 OPTIONS IMPORT: timers and/or timeouts modified
Mon Jun 16 12:09:08 2008 OPTIONS IMPORT: --ifconfig/up options modified
Mon Jun 16 12:09:08 2008 OPTIONS IMPORT: route options modified
Mon Jun 16 12:09:08 2008 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Mon Jun 16 12:09:08 2008 TAP-WIN32 device [NULL] opened: \\.\Global\{9CE61414-4885-4A51-A0C6-0C0C0B3DDEA8}.tap
Mon Jun 16 12:09:08 2008 TAP-Win32 Driver Version 8.4
Mon Jun 16 12:09:08 2008 TAP-Win32 MTU=1500
Mon Jun 16 12:09:08 2008 Notified TAP-Win32 driver to set a DHCP IP/netmask of 192.168.99.6/255.255.255.252 on interface {9CE61414-4885-4A51-A0C6-0C0C0B3DDEA8} [DHCP-serv: 192.168.99.5, lease-time: 31536000]
Mon Jun 16 12:09:08 2008 NOTE: FlushIpNetTable failed on interface [2] {9CE61414-4885-4A51-A0C6-0C0C0B3DDEA8} (status=1413) : Invalid index.
Mon Jun 16 12:09:08 2008 TEST ROUTES: 0/0 succeeded len=1 ret=0 a=0 u/d=down
Mon Jun 16 12:09:08 2008 Route: Waiting for TUN/TAP interface to come up...
Mon Jun 16 12:09:09 2008 TEST ROUTES: 0/0 succeeded len=1 ret=0 a=0 u/d=down
Mon Jun 16 12:09:09 2008 Route: Waiting for TUN/TAP interface to come up...
Mon Jun 16 12:09:11 2008 TEST ROUTES: 0/0 succeeded len=1 ret=0 a=0 u/d=down
Mon Jun 16 12:09:11 2008 Route: Waiting for TUN/TAP interface to come up...
Mon Jun 16 12:09:12 2008 TEST ROUTES: 0/0 succeeded len=1 ret=0 a=0 u/d=down
Mon Jun 16 12:09:12 2008 Route: Waiting for TUN/TAP interface to come up...
Mon Jun 16 12:09:13 2008 TEST ROUTES: 2/2 succeeded len=1 ret=1 a=0 u/d=up
Mon Jun 16 12:09:13 2008 route ADD 75.127.68.182 MASK 255.255.255.255 192.168.0.14
Mon Jun 16 12:09:13 2008 Route addition via IPAPI succeeded
Mon Jun 16 12:09:13 2008 route DELETE 0.0.0.0 MASK 0.0.0.0 192.168.0.14
Mon Jun 16 12:09:13 2008 ROUTE: route deletion failed using DeleteIpForwardEntry: Invalid index.
Mon Jun 16 12:09:13 2008 Route deletion via IPAPI failed
Mon Jun 16 12:09:13 2008 route ADD 0.0.0.0 MASK 0.0.0.0 192.168.99.5
Mon Jun 16 12:09:13 2008 ROUTE: route addition failed using CreateIpForwardEntry: The parameter is incorrect. [if_index=2]
Mon Jun 16 12:09:13 2008 Route addition via IPAPI failed
Mon Jun 16 12:09:13 2008 route ADD 192.168.99.1 MASK 255.255.255.255 192.168.99.5
Mon Jun 16 12:09:13 2008 ROUTE: route addition failed using CreateIpForwardEntry: The parameter is incorrect. [if_index=2]
Mon Jun 16 12:09:13 2008 Route addition via IPAPI failed
Mon Jun 16 12:09:13 2008 Initialization Sequence Completed



Not It is showing connected But server is unable to ping.


Please help me



Thank You
Reply With Quote
  #4  
Old 16th June 2008, 08:49
anoopprasad anoopprasad is offline
Junior Member
 
Join Date: May 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Question

Complete new server side logs are:



Jun 16 00:48:15 vps openvpn[25796]: 123.237.1.227:3543 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Jun 16 00:48:15 vps openvpn[25796]: 123.237.1.227:3543 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Jun 16 00:48:15 vps openvpn[25796]: 123.237.1.227:3543 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Jun 16 00:48:16 vps openvpn[25796]: 123.237.1.227:3543 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Jun 16 00:48:16 vps openvpn[25796]: 123.237.1.227:3543 [queryus.com] Peer Connection Initiated with 123.237.1.227:3543
Jun 16 00:48:16 vps openvpn[25796]: queryus.com/123.237.1.227:3543 MULTI: Learn: 192.168.99.6 -> queryus.com/123.237.1.227:3543
Jun 16 00:48:16 vps openvpn[25796]: queryus.com/123.237.1.227:3543 MULTI: primary virtual IP for queryus.com/123.237.1.227:3543: 192.168.99.6
Jun 16 00:48:17 vps openvpn[25796]: queryus.com/123.237.1.227:3543 PUSH: Received control message: 'PUSH_REQUEST'
Jun 16 00:48:17 vps openvpn[25796]: queryus.com/123.237.1.227:3543 SENT CONTROL [queryus.com]: 'PUSH_REPLY,dhcp-option DNS 75.127.68.182,dhcp-option DNS 75.127.68.183,redirect-gateway,route 192.168.99.1,ping 10,ping-restart 120,ifconfig 192.168.99.6 192.168.99.5' (status=1)



Anoop Prasad
Reply With Quote
  #5  
Old 16th June 2008, 09:22
anoopprasad anoopprasad is offline
Junior Member
 
Join Date: May 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Question

recent logs:



Jun 16 00:43:49 vps last message repeated 11 times
Jun 16 00:47:54 vps openvpn[28529]: TCP/UDP: Closing socket
Jun 16 00:47:54 vps last message repeated 2 times
Jun 16 00:47:54 vps openvpn[28529]: /sbin/ip route del 192.168.99.0/24
Jun 16 00:47:54 vps openvpn[28529]: Closing TUN/TAP interface
Jun 16 00:47:54 vps openvpn: succeeded
Jun 16 00:47:54 vps openvpn[28529]: SIGTERM[hard,] received, process exiting
Jun 16 00:47:59 vps openvpn[25784]: OpenVPN 2.0.9 i386-redhat-linux-gnu [SSL] [LZO] [EPOLL] built on Dec 10 2007
Jun 16 00:47:59 vps openvpn[25784]: Diffie-Hellman initialized with 1024 bit key
Jun 16 00:47:59 vps openvpn[25784]: TLS-Auth MTU parms [ L:1544 D:140 EF:40 EB:0 ET:0 EL:0 ]
Jun 16 00:47:59 vps openvpn[25784]: TUN/TAP device tun0 opened
Jun 16 00:47:59 vps openvpn[25784]: Note: Cannot set tx queue length on tun0: Operation not permitted (errno=1)
Jun 16 00:47:59 vps openvpn[25784]: /sbin/ip link set dev tun0 up mtu 1500
Jun 16 00:47:59 vps openvpn[25784]: /sbin/ip addr add dev tun0 local 192.168.99.1 peer 192.168.99.2
Jun 16 00:47:59 vps openvpn[25784]: /sbin/ip route add 192.168.99.0/24 via 192.168.99.2
Jun 16 00:47:59 vps openvpn[25784]: Data Channel MTU parms [ L:1544 D:1450 EF:44 EB:135 ET:0 EL:0 AF:3/1 ]
Jun 16 00:47:59 vps openvpn[25796]: Listening for incoming TCP connection on [undef]:1194
Jun 16 00:47:59 vps openvpn[25796]: TCPv4_SERVER link local (bound): [undef]:1194
Jun 16 00:47:59 vps openvpn[25796]: TCPv4_SERVER link remote: [undef]
Jun 16 00:47:59 vps openvpn[25796]: MULTI: multi_init called, r=256 v=256
Jun 16 00:47:59 vps openvpn[25796]: IFCONFIG POOL: base=192.168.99.4 size=62
Jun 16 00:47:59 vps openvpn[25796]: IFCONFIG POOL LIST
Jun 16 00:47:59 vps openvpn[25796]: queryus.com,192.168.99.4
Jun 16 00:47:59 vps openvpn[25796]: ringindia.biz,192.168.99.8
Jun 16 00:47:59 vps openvpn[25796]: MULTI: TCP INIT maxclients=1024 maxevents=1028
Jun 16 00:47:59 vps openvpn[25796]: Initialization Sequence Completed
Jun 16 00:47:59 vps openvpn: succeeded
Jun 16 00:48:00 vps openvpn[25796]: MULTI: multi_create_instance called
Jun 16 00:48:00 vps openvpn[25796]: Re-using SSL/TLS context
Jun 16 00:48:00 vps openvpn[25796]: LZO compression initialized
Jun 16 00:48:00 vps openvpn[25796]: Control Channel MTU parms [ L:1544 D:140 EF:40 EB:0 ET:0 EL:0 ]
Jun 16 00:48:00 vps openvpn[25796]: Data Channel MTU parms [ L:1544 D:1450 EF:44 EB:135 ET:0 EL:0 AF:3/1 ]
Jun 16 00:48:00 vps openvpn[25796]: Local Options hash (VER=V4): 'c0103fa8'
Jun 16 00:48:00 vps openvpn[25796]: Expected Remote Options hash (VER=V4): '69109d17'
Jun 16 00:48:00 vps openvpn[25796]: TCP connection established with 123.237.1.227:3543
Jun 16 00:48:00 vps openvpn[25796]: TCPv4_SERVER link local: [undef]
Jun 16 00:48:00 vps openvpn[25796]: TCPv4_SERVER link remote: 123.237.1.227:3543
Jun 16 00:48:00 vps openvpn[25796]: 123.237.1.227:3543 TLS: Initial packet from 123.237.1.227:3543, sid=76e9eef6 877e8267
Jun 16 00:48:00 vps openvpn[25796]: MULTI: multi_create_instance called
Jun 16 00:48:00 vps openvpn[25796]: Re-using SSL/TLS context
Jun 16 00:48:00 vps openvpn[25796]: LZO compression initialized
Jun 16 00:48:00 vps openvpn[25796]: Control Channel MTU parms [ L:1544 D:140 EF:40 EB:0 ET:0 EL:0 ]
Jun 16 00:48:00 vps openvpn[25796]: Data Channel MTU parms [ L:1544 D:1450 EF:44 EB:135 ET:0 EL:0 AF:3/1 ]
Jun 16 00:48:00 vps openvpn[25796]: Local Options hash (VER=V4): 'c0103fa8'
Jun 16 00:48:00 vps openvpn[25796]: Expected Remote Options hash (VER=V4): '69109d17'
Jun 16 00:48:00 vps openvpn[25796]: TCP connection established with 61.16.159.93:2139
Jun 16 00:48:00 vps openvpn[25796]: TCPv4_SERVER link local: [undef]
Jun 16 00:48:00 vps openvpn[25796]: TCPv4_SERVER link remote: 61.16.159.93:2139
Jun 16 00:48:00 vps openvpn[25796]: 61.16.159.93:2139 TLS: Initial packet from 61.16.159.93:2139, sid=95268e0b 520034b1
Jun 16 00:48:10 vps openvpn[25796]: 61.16.159.93:2139 VERIFY OK: depth=1, /C=US/ST=CA/L=SENDIYAGO/O=OpenVPN-RING/OU=IT/CN=vps.queryus.com/emailAddress=enquiry@queryus.com
Jun 16 00:48:10 vps openvpn[25796]: 61.16.159.93:2139 VERIFY OK: depth=0, /C=US/ST=CA/O=OpenVPN-RING/OU=IT/CN=ringindia.biz/emailAddress=rakesh@ringindai.biz
Jun 16 00:48:12 vps openvpn[25796]: 61.16.159.93:2139 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Jun 16 00:48:12 vps openvpn[25796]: 61.16.159.93:2139 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Jun 16 00:48:12 vps openvpn[25796]: 61.16.159.93:2139 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Jun 16 00:48:12 vps openvpn[25796]: 61.16.159.93:2139 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Jun 16 00:48:13 vps openvpn[25796]: 61.16.159.93:2139 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Jun 16 00:48:13 vps openvpn[25796]: 61.16.159.93:2139 [ringindia.biz] Peer Connection Initiated with 61.16.159.93:2139
Jun 16 00:48:13 vps openvpn[25796]: ringindia.biz/61.16.159.93:2139 MULTI: Learn: 192.168.99.10 -> ringindia.biz/61.16.159.93:2139
Jun 16 00:48:13 vps openvpn[25796]: ringindia.biz/61.16.159.93:2139 MULTI: primary virtual IP for ringindia.biz/61.16.159.93:2139: 192.168.99.10
Jun 16 00:48:13 vps openvpn[25796]: 123.237.1.227:3543 VERIFY OK: depth=1, /C=US/ST=CA/L=SENDIYAGO/O=OpenVPN-RING/OU=IT/CN=vps.queryus.com/emailAddress=enquiry@queryus.com
Jun 16 00:48:13 vps openvpn[25796]: 123.237.1.227:3543 VERIFY OK: depth=0, /C=US/ST=CA/O=OpenVPN-RING/OU=IT/CN=queryus.com/emailAddress=anoop@queryus.com
Jun 16 00:48:14 vps openvpn[25796]: ringindia.biz/61.16.159.93:2139 PUSH: Received control message: 'PUSH_REQUEST'
Jun 16 00:48:14 vps openvpn[25796]: ringindia.biz/61.16.159.93:2139 SENT CONTROL [ringindia.biz]: 'PUSH_REPLY,dhcp-option DNS 75.127.68.182,dhcp-option DNS 75.127.68.183,redirect-gateway,route 192.168.99.1,ping 10,ping-restart 120,ifconfig 192.168.99.10 192.168.99.9' (status=1)
Jun 16 00:48:15 vps openvpn[25796]: 123.237.1.227:3543 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Jun 16 00:48:15 vps openvpn[25796]: 123.237.1.227:3543 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Jun 16 00:48:15 vps openvpn[25796]: 123.237.1.227:3543 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Jun 16 00:48:15 vps openvpn[25796]: 123.237.1.227:3543 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Jun 16 00:48:16 vps openvpn[25796]: 123.237.1.227:3543 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Jun 16 00:48:16 vps openvpn[25796]: 123.237.1.227:3543 [queryus.com] Peer Connection Initiated with 123.237.1.227:3543
Jun 16 00:48:16 vps openvpn[25796]: queryus.com/123.237.1.227:3543 MULTI: Learn: 192.168.99.6 -> queryus.com/123.237.1.227:3543
Jun 16 00:48:16 vps openvpn[25796]: queryus.com/123.237.1.227:3543 MULTI: primary virtual IP for queryus.com/123.237.1.227:3543: 192.168.99.6
Jun 16 00:48:17 vps openvpn[25796]: queryus.com/123.237.1.227:3543 PUSH: Received control message: 'PUSH_REQUEST'
Jun 16 00:48:17 vps openvpn[25796]: queryus.com/123.237.1.227:3543 SENT CONTROL [queryus.com]: 'PUSH_REPLY,dhcp-option DNS 75.127.68.182,dhcp-option DNS 75.127.68.183,redirect-gateway,route 192.168.99.1,ping 10,ping-restart 120,ifconfig 192.168.99.6 192.168.99.5' (status=1)
Jun 16 00:49:08 vps sshd(pam_unix)[28028]: session opened for user dfindia by (uid=0)



Anoop Prasad
Reply With Quote
  #6  
Old 16th June 2008, 18:18
chipsafts chipsafts is offline
Senior Member
 
Join Date: Nov 2007
Posts: 184
Thanks: 2
Thanked 6 Times in 6 Posts
Default

What does it not ping ?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What can be wrong martin_rudowicz Installation/Configuration 9 11th May 2008 19:42
subdomain and mail relay configuration aranthorn Installation/Configuration 24 3rd September 2007 22:53
Ubuntu-Server 6.10 As A Firewall/Gateway Vpn Server Problem steveomach3ww HOWTO-Related Questions 6 26th March 2007 13:35
550-The recipient cannot be verified email problem safoo Installation/Configuration 7 29th November 2006 19:55
server blocked/stopped by host Ovidiu Technical 11 14th February 2006 10:50


All times are GMT +2. The time now is 14:46.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.