LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-20-2015, 06:46 PM   #1
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586

Rep: Reputation: 38
Trying to connect to VPN: AUTH: Received AUTH_FAILED


I have a problem connecting to the vpn. I downloaded the config file from www.vpnbook.com
I used the following command:
Code:
root@crunchbang:/etc/openvpn# openvpn --config vpn_book/vpnbook-ca1-udp25000.ovpn
Fri Mar 20 14:07:11 2015 OpenVPN 2.2.1 i486-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] [MH] [PF_INET6] [IPv6 payload 20110424-2 (2.2RC2)] built on     Dec  1 2014
Enter Auth Username:vpnbook
Enter Auth Password:
Fri Mar 20 14:08:22 2015 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Fri Mar 20 14:08:22 2015 LZO compression initialized
Fri Mar 20 14:08:22 2015 Control Channel MTU parms [ L:1558 D:138 EF:38 EB:0 ET:0 EL:0 ]
Fri Mar 20 14:08:22 2015 Socket Buffers: R=[163840->131072] S=[163840->131072]
Fri Mar 20 14:08:22 2015 Data Channel MTU parms [ L:1558 D:1450 EF:58 EB:135 ET:0 EL:0 AF:3/1 ]
Fri Mar 20 14:08:22 2015 Local Options hash (VER=V4): '66096c33'
Fri Mar 20 14:08:22 2015 Expected Remote Options hash (VER=V4): '691e95c7'
Fri Mar 20 14:08:22 2015 NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
Fri Mar 20 14:08:22 2015 UDPv4 link local: [undef]
Fri Mar 20 14:08:22 2015 UDPv4 link remote: [AF_INET]142.4.206.228:25000
Fri Mar 20 14:08:22 2015 TLS: Initial packet from [AF_INET]142.4.206.228:25000, sid=e5970126 7cd42edc
Fri Mar 20 14:08:22 2015 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Fri Mar 20 14:08:22 2015 VERIFY OK: depth=1, /C=CH/ST=Zurich/L=Zurich/O=vpnbook.com/OU=IT/CN=vpnbook.com/name=vpnbook.com/emailAddress=admin@vpnbook.com
Fri Mar 20 14:08:22 2015 VERIFY OK: nsCertType=SERVER
Fri Mar 20 14:08:22 2015 VERIFY OK: depth=0, /C=CH/ST=Zurich/L=Zurich/O=vpnbook.com/OU=IT/CN=vpnbook.com/name=vpnbook.com/emailAddress=admin@vpnbook.com
Fri Mar 20 14:08:25 2015 Data Channel Encrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
Fri Mar 20 14:08:25 2015 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri Mar 20 14:08:25 2015 Data Channel Decrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
Fri Mar 20 14:08:25 2015 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri Mar 20 14:08:25 2015 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Fri Mar 20 14:08:25 2015 [vpnbook.com] Peer Connection Initiated with [AF_INET]142.4.206.228:25000
Fri Mar 20 14:08:27 2015 SENT CONTROL [vpnbook.com]: 'PUSH_REQUEST' (status=1)
Fri Mar 20 14:08:27 2015 AUTH: Received AUTH_FAILED control message
Fri Mar 20 14:08:27 2015 TCP/UDP: Closing socket
Fri Mar 20 14:08:27 2015 SIGTERM[soft,auth-failure] received, process exiting


I then made a tunnel for it
Code:
root@crunchbang:/etc/openvpn# openvpn --mktun --dev tun
Fri Mar 20 15:50:28 2015 TUN/TAP device tun2 opened
Fri Mar 20 15:50:28 2015 Persist state set to: ON
but didn't help
I commented the line in the config file: auth-user-pass
to see if I could get it to work.
After that I tried it with the above command, and openvpn kept restarting:
Quote:
Fri Mar 20 16:15:39 2015 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Fri Mar 20 16:15:39 2015 TLS Error: TLS handshake failed
Fri Mar 20 16:15:39 2015 TCP/UDP: Closing socket
Fri Mar 20 16:15:39 2015 SIGUSR1[soft,tls-error] received, process restarting
I also tried a config from https://www.vpnme.me/freevpn.html and had problems.

Thanks for help

Last edited by JosephS; 03-24-2015 at 10:30 AM.
 
Old 03-21-2015, 01:56 AM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Did you download and install the ssl certificates vpnbook is asking for?

Thanks for the heads up re: vpnbook, I might try that at some point... just to make sure I still remember how to configure a tun, mind you....

Edit: Sorry, I checked your logging message again and it appears, yes, indeed you did.
OK, I'm out of suggestions....

Last edited by dijetlo; 03-21-2015 at 01:57 AM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Windows7 VPN clients behind Debian Gateway can not connect to Draytek VPN neopandid Linux - Server 3 08-31-2012 11:34 PM
PPTP VPN connection - No auth possible - Centos tobylockyer Linux - Networking 1 08-06-2011 01:38 PM
Linux VPN Software - How to Connect to a Windows VPN wfernley Linux - Software 2 02-07-2006 09:40 AM
VPN internet problem not auth Mr.Ampersand() Linux - Networking 0 08-16-2005 08:00 AM
How do i connect Ciscos VPN client to Checkpoint VPN server Klas Linux - Networking 1 11-29-2003 08:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration