You are not logged in.
Here is the guide I am following. https://wiki.archlinux.org/index.php/Pr … Access_VPN
Here is the error I recieve.
[rob@archpc ~]$ sudo openvpn --config /etc/openvpn/'US New York City.ovpn'
Tue Nov 22 02:07:44 2016 OpenVPN 2.3.13 x86_64-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Nov 3 2016
Tue Nov 22 02:07:44 2016 library versions: OpenSSL 1.0.2j 26 Sep 2016, LZO 2.09
Enter Auth Username: ********
Enter Auth Password: **********
Tue Nov 22 02:08:05 2016 UDPv4 link local: [undef]
Tue Nov 22 02:08:05 2016 UDPv4 link remote: [AF_INET]209.95.50.22:1198
Tue Nov 22 02:09:05 2016 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Tue Nov 22 02:09:05 2016 TLS Error: TLS handshake failed
Tue Nov 22 02:09:05 2016 SIGUSR1[soft,tls-error] received, process restarting
Here is a link to a gist of this output https://gist.github.com/robbyjj/f284403 … cbdfe258d5
I looked up the specific error which led me to this OpenVPN page https://openvpn.net/index.php/open-sour … ivity.html
I understand the causes of the problem I am getting. Does anyone have some suggestions on how I could start figuring out what the cause in my particular case is? I don't know if everything in that OpenVPN page applies to me.
Offline
Make sure 1194 is NAT'ed on your router (assuming you aren't running a firewall on your local machine): https://portforward.com/help/portforwarding.htm
# edit: that shouldn't be necessary. Have you tried another endpoint? Do you get the same error?
Offline
Make sure 1194 is NAT'ed on your router (assuming you aren't running a firewall on your local machine): https://portforward.com/help/portforwarding.htm
# edit: that shouldn't be necessary. Have you tried another endpoint? Do you get the same error?
Hi, thanks for the quick response. I am at a college so I don't have any way to port foward. Is there a way to check what ports are open and closed? Also, yes all servers I connect to give the same error.
Last edited by robby (2016-11-22 14:38:40)
Offline
Your college may be blocking that port.
Offline
Your college may be blocking that port.
I might add that it is possible that all udp ports might be blocked/filtered to curb torrent usage. The only way to be sure would be to have access to a machine outside or the openvpn server logs.
Or you could ask your school's IT department why your vpn isn't working.
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline
jasonwryan wrote:Your college may be blocking that port.
I might add that it is possible that all udp ports might be blocked/filtered to curb torrent usage. The only way to be sure would be to have access to a machine outside or the openvpn server logs.
Or you could ask your school's IT department why your vpn isn't working.
My school doesn't offer help with Linux, or VPN's. How can I check if My college is blocking a specific port? Also, I just tried to set up PIA on my windows desktop on the same network and it worked fine.
Offline
Also, I just tried to set up PIA on my windows desktop on the same network and it worked fine.
If it is exactly the same network, then this points to a configuration problem, either with openvpn or any firewall you may have configured in your linux box.
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline
robby wrote:Also, I just tried to set up PIA on my windows desktop on the same network and it worked fine.
If it is exactly the same network, then this points to a configuration problem, either with openvpn or any firewall you may have configured in your linux box.
Alright well that sounds like good news to me. But I haven't set up any firewall to my knowledge unless some settings come default with network manager or arch linux in general. How can I check my current firewall configuration?
Offline
With Arch Linux if you didn't set it up then you have none, but you should know this, how did you install Arch?
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline
With Arch Linux if you didn't set it up then you have none, but you should know this, how did you install Arch?
Well that's what I assumed. I didn't install one, so I don't have one. That being said, until I think of some other way to test what ports are open. My answer must be in between these pages.
https://wiki.archlinux.org/index.php/OpenVPN
https://wiki.archlinux.org/index.php/Pr … Access_VPN
Also, this is what I used to install Arch Linux. https://wiki.archlinux.org/index.php/Installation_guide
Offline
Still unable to find why my VPN is unable to connect on Linux. I was thinking of changing the OpenVPN port and trying again. Does anyone have some suggestions for a port I could use?
Offline
Had no success changing the port. IS there anywhere I could go for more help on the subject?
Offline
Still no success. Bumping for help, or any information where I could go for help.
Offline
Paste your config.
Offline
Paste your config.
client
dev tun
proto udp
remote us-east.privateinternetaccess.com 1198
resolv-retry infinite
nobind
persist-key
persist-tun
cipher aes-128-cbc
auth sha1
tls-client
remote-cert-tls server
auth-user-pass /etc/private-internet-access/login.conf
comp-lzo
verb 1
reneg-sec 0
crl-verify /etc/openvpn/crl.rsa.2048.pem
ca /etc/openvpn/ca.rsa.2048.crt
disable-occ
auth-nocache
script-security 2
up /etc/openvpn/update-resolv-conf.sh
down /etc/openvpn/update-resolv-conf.sh
Offline
Remove the authentication options that don't ship with PIA's config to test.
Offline
Remove the authentication options that don't ship with PIA's config to test.
That config did ship with PIA
I have ran extensive tests hopefully this will help.
Config: https://www.privateinternetaccess.com/o … ip-tcp.zip
client
dev tun
proto tcp
remote 108.61.122.158 443
resolv-retry infinite
nobind
persist-key
persist-tun
cipher bf-cbc
auth sha1
tls-client
remote-cert-tls server
auth-user-pass
comp-lzo
verb 1
reneg-sec 0
crl-verify crl.pem
ca ca.crt
disable-occ
Output:
sudo openvpn France.ovpn
Mon Dec 12 11:50:59 2016 OpenVPN 2.3.14 x86_64-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Dec 7 2016
Mon Dec 12 11:50:59 2016 library versions: OpenSSL 1.0.2j 26 Sep 2016, LZO 2.09
Enter Auth Username: ********
Enter Auth Password: **********
Mon Dec 12 11:51:15 2016 Attempting to establish TCP connection with [AF_INET]108.61.122.158:443 [nonblock]
Mon Dec 12 11:51:16 2016 TCP connection established with [AF_INET]108.61.122.158:443
Mon Dec 12 11:51:16 2016 TCPv4_CLIENT link local: [undef]
Mon Dec 12 11:51:16 2016 TCPv4_CLIENT link remote: [AF_INET]108.61.122.158:443
Mon Dec 12 11:51:16 2016 Connection reset, restarting [-1]
Mon Dec 12 11:51:16 2016 SIGUSR1[soft,connection-reset] received, process restarting
Mon Dec 12 11:51:21 2016 Attempting to establish TCP connection with [AF_INET]108.61.122.158:443 [nonblock]
Mon Dec 12 11:51:22 2016 TCP connection established with [AF_INET]108.61.122.158:443
Mon Dec 12 11:51:22 2016 TCPv4_CLIENT link local: [undef]
Mon Dec 12 11:51:22 2016 TCPv4_CLIENT link remote: [AF_INET]108.61.122.158:443
Mon Dec 12 11:51:22 2016 Connection reset, restarting [-1]
Mon Dec 12 11:51:22 2016 SIGUSR1[soft,connection-reset] received, process restarting
Mon Dec 12 11:51:27 2016 Attempting to establish TCP connection with [AF_INET]108.61.122.158:443 [nonblock]
Mon Dec 12 11:51:28 2016 TCP connection established with [AF_INET]108.61.122.158:443
Mon Dec 12 11:51:28 2016 TCPv4_CLIENT link local: [undef]
It seems like when I use settings for TCP, I get a different output. (compared the output I posted in post #1.) Not sure what any of this means or what I can learn from this.
Offline
bump
Offline
Use their secure config which supports aes-256-cbc.
Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce
Offline