VPN Connection Problem using OpenVPN


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers VPN Connection Problem using OpenVPN
# 1  
Old 02-29-2020
VPN Connection Problem using OpenVPN

This is a Fedora 31 kernel 5.5.6-201.fc31.x86_64 vpn connection problem. Up until a few days ago I was successfully using a VPN provider utilizing multiple global servers. My protocol is OpenVPN and NetworkManager-openvpn-gnome. Suddenly I can't connect from my desktop although my smartphone, laptop and other desktops in the house continue to connect successfully. The account is current and the username and password are valid as per the provider. I have uninstalled and reinstalled openvpn, O-N-G and updated all the ovpn files for the provider. I am baffled what is preventing the connection. Any insights would be greatly appreciated since I am at the end of any ideas and the provider's tech support is completely useless. Thanks in advance.
# 2  
Old 02-29-2020
You're not saying whether there are any errors logged by the system. It would be really useful if you can post what the system log says when the VPN connection fails.

Being a Fedora distro it won't have the typical syslog file but I believe that you can translate the digital log live via a terminal using

Code:
sudo journalctl -f

(The -f switch here means 'follow')

After opening a terminal and running this command try to connect to the VPN. Watch the terminal to see if it tells you the reason for the failure.
This User Gave Thanks to hicksd8 For This Post:
# 3  
Old 02-29-2020
Thanks for the quick response. The journalctl tool is certainly powerful and useful. I'll have to spend some time learning its tricks. Here is the output:


Code:
[1583026309.3268] audit: op="connection-activate" uuid="1c9e7052-e2b0-48fd-ac99-68515e8ec322" name="gw1.lax2.slickvpn.com" pid=16353 uid=1000 result="success" 
[1583026309.3331] vpn-connection[0x563d0a97a130,1c9e7052-e2b0-48fd-ac99-68515e8ec322,"gw1.lax2.slickvpn.com",0]: Started the VPN service, PID 23944 
[1583026309.3420] vpn-connection[0x563d0a97a130,1c9e7052-e2b0-48fd-ac99-68515e8ec322,"gw1.lax2.slickvpn.com",0]: Saw the service appear; activating connection 
[1583026309.5335] vpn-connection[0x563d0a97a130,1c9e7052-e2b0-48fd-ac99-68515e8ec322,"gw1.lax2.slickvpn.com",0]: VPN plugin: state changed: starting (3) 
[1583026309.5336] vpn-connection[0x563d0a97a130,1c9e7052-e2b0-48fd-ac99-68515e8ec322,"gw1.lax2.slickvpn.com",0]: VPN connection: (ConnectInteractive) reply received 
nm-openvpn[23955]: OpenVPN 2.4.8 x86_64-redhat-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Nov  1 2019 
nm-openvpn[23955]: library versions: OpenSSL 1.1.1d FIPS  10 Sep 2019, LZO 2.08 
nm-openvpn[23955]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts 
nm-openvpn[23955]: TCP/UDP: Preserving recently used remote address: [AF_INET]104.247.220.10:443 
nm-openvpn[23955]: UDP link local: (not bound) 
nm-openvpn[23955]: UDP link remote: [AF_INET]104.247.220.10:443 
nm-openvpn[23955]: NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay 
fprintd.service: Succeeded. 
SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=fprintd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' 
nm-openvpn[23955]: TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity) 
nm-openvpn[23955]: TLS Error: TLS handshake failed 
nm-openvpn[23955]: SIGUSR1[soft,tls-error] received, process restarting 
NetworkManager[14889]: <warn>  [1583026369.8374] vpn-connection[0x563d0a97a130,1c9e7052-e2b0-48fd-ac99-68515e8ec322,"gw1.lax2.slickvpn.com",0]: VPN connection: connect timeout exceeded. 
nm-openvpn-serv[23944]: Connect timer expired, disconnecting. 
nm-openvpn[23955]: SIGTERM[hard,init_instance] received, process exiting 
NetworkManager[14889]: <warn>  [1583026369.8418] vpn-connection[0x563d0a97a130,1c9e7052-e2b0-48fd-ac99-68515e8ec322,"gw1.lax2.slickvpn.com",0]: VPN plugin: failed: connect-failed (1) 
NetworkManager[14889]: <info>  [1583026369.8420] vpn-connection[0x563d0a97a130,1c9e7052-e2b0-48fd-ac99-68515e8ec322,"gw1.lax2.slickvpn.com",0]: VPN plugin: state changed: stopping (5) 
NetworkManager[14889]: <info>  [1583026369.8421] vpn-connection[0x563d0a97a130,1c9e7052-e2b0-48fd-ac99-68515e8ec322,"gw1.lax2.slickvpn.com",0]: VPN plugin: state changed: stopped (6) 
NetworkManager[14889]: <info>  [1583026369.8466] vpn-connection[0x563d0a97a130,1c9e7052-e2b0-48fd-ac99-68515e8ec322,"gw1.lax2.slickvpn.com",0]: VPN service disappeared


I can see it is timing out but can't see why this is happening all of a sudden.
# 4  
Old 03-01-2020
Can you confirm that this problem is confined just to the VPN connection?

Can you connect from this machine to other nodes on your LAN?

Can you connect to nodes outside your LAN (via gateway)? e.g. Internet connection works?
Also, you can connect to other sites using secure sockets from this machine? e.g. unix.com

So the VPN is the only connection with an issue????
# 5  
Old 03-02-2020
No problems with web access, email, https, networking tools like ping, traceroute, VOIP. In fact, maybe that has something to do with it. I recently established VOIP in the house and had a heck of a time trying to utilize the wireless features of the phone adapter/repeater/router. Ended up giving up and going with the ethernet wired feature just to get phone service back. Any correlation between that problem and this VPN timing problem?
# 6  
Old 03-02-2020
# 7  
Old 03-02-2020
Thanks for the help and the link. I'll take it from here.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. IP Networking

Internet connection single interface through vpn

Hi. Can you please help me with a routing problem? There are 2 networks: 192.168.10.0/24 (eth0) 192.168.11.0/24 (eth0:1) The default gateway is 192.168.10.1 iPv4 routing is already enabled and working. With vpnc I've built up an VPN connection and can access my home network... (0 Replies)
Discussion started by: tschmi
0 Replies

2. Cybersecurity

VPN Initial Connection Problem

Hey everyone. I have a problem, but it may be my lack of understanding that is the cause. Ok so I attend a technical school, and needless to say there's a lot of wannabe hackers, pranksters and what not. So from my laptop I'd like to connect to the wireless AP's around campus, but security is a... (1 Reply)
Discussion started by: Lost in Cyberia
1 Replies

3. IP Networking

Cisco VPN server and client - connection drop

I have a Cisco 1841 router configured as Easy VPN Server. Here is the configuration of the router: Cisco# Cisco#show running-config Building configuration... Current configura - Pastebin.com I have a Centos 5.7 server with installed Cisco VPN client for Linux. The client successfully... (0 Replies)
Discussion started by: rcbandit
0 Replies

4. IP Networking

Cisco VPN pcf and OpenVPN

I was given my pcf file to login to work from home and wanted to use OpenVPN instead of the Cisco VPN client software. Can I use this pcf file with OpenVPN? I attempted to use vpnc: http://wiki.centos.org/HowTos/vpnc but it just times out ?? (2 Replies)
Discussion started by: metallica1973
2 Replies

5. SCO

Printing to Windows 7 using Samba 2.0.3 via VPN connection to SCO 3.2v5.0.6

I would like to know if anyone has a way to PRINT TO a printer attached to a Windows 7 PC, from SCO, while logged in via a VPN connection. I am able to attach to a Samba share on the SCO server for files while attached to the VPN, so I know my Samba is workling - but my print jobs return: ... (2 Replies)
Discussion started by: tbb999
2 Replies

6. Solaris

Solaris 10 ftp connection problem (connection refused, connection timed out)

Hi everyone, I am hoping anyone of you could help me in this weird problem we have in 1 of our Solaris 10 servers. Lately, we have been having some ftp problems in this server. Though it can ping any server within the network, it seems that it can only ftp to a select few. For most servers, the... (4 Replies)
Discussion started by: labdakos
4 Replies

7. IP Networking

VPN Connection

Hello, I have question about VPN connection thats, I have two networks 1-Office Network 2-Home Network both are connected to internet i have in Office network PPTP VPN Server with real or static ip and on the home network all clients working with local ip Now , I need to connect to... (3 Replies)
Discussion started by: LinuxCommandos
3 Replies

8. Linux

vpn problem

Trying to connect to my companies VPN with vpnc but I keep getting an error that the target failed to respond. I run wireshark and see that my host sends out a few ISAKMP packets but gets no response and gives up. Any ideas what can cause this to happen? Is there someway that UDP traffic could... (0 Replies)
Discussion started by: osulinux
0 Replies

9. Shell Programming and Scripting

Testing VPN Connection

Hi All: I need a script that can be timed to run every half hour to an hour to run a traceroute through a VPN to test that a connection is still up from a Win XP system. Which would be the best, C++ or Perl and what are some good resources to look at. (If anyone has a script to do this... (1 Reply)
Discussion started by: maxhewitt
1 Replies
Login or Register to Ask a Question