OpenVPN connection breaks after a few seconds

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
ichionid
OpenVpn Newbie
Posts: 2
Joined: Thu Aug 07, 2014 1:24 pm

OpenVPN connection breaks after a few seconds

Post by ichionid » Thu Aug 07, 2014 1:25 pm

For the last hours I have been trying to connect to a VPN network through openVPN.
My connection settings are:

IPv4 tab:

Method: Automatic VPN
Routes: Use this connection only for resources on its network.

Then on the VPN tab:

fw01.vcloud.kirkeweb.dk
Type: Password with Certificates(TLS)
Under ADVANCED:

In General tab:
Use custom gateway port is checked
Use a TCP connection is checked
In TLS Authentication:
Use TLS Authentication is checked.

The log is:

Aug 7 14:41:42 aegir NetworkManager[1188]: <info> Starting VPN service 'openvpn'...
Aug 7 14:41:42 aegir NetworkManager[1188]: <info> VPN service 'openvpn' started (org.freedesktop.NetworkManager.openvpn), PID 27429
Aug 7 14:41:42 aegir NetworkManager[1188]: <info> VPN service 'openvpn' appeared; activating connections
Aug 7 14:41:42 aegir NetworkManager[1188]: <info> VPN plugin state changed: starting (3)
Aug 7 14:41:42 aegir NetworkManager[1188]: <info> VPN connection 'fw01-TCP-8081-gc-config-v2' (Connect) reply received.
Aug 7 14:41:42 aegir nm-openvpn[27435]: OpenVPN 2.2.1 x86_64-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] [MH] [PF_INET6] [IPv6 payload 20110424-2 (2.2RC2)] built on Mar 13 2014
Aug 7 14:41:43 aegir nm-openvpn[27435]: Control Channel Authentication: using '/home/lebowski/Desktop/KWvpn/fw01-TCP-8081-gc/fw01-TCP-8081-gc-tls.key' as a OpenVPN static key file
Aug 7 14:41:50 aegir NetworkManager[1188]: <info> VPN connection 'fw01-TCP-8081-gc-config-v2' (IP Config Get) reply received.
Aug 7 14:41:50 aegir NetworkManager[1188]: <info> VPN Gateway: 46.29.101.168
Aug 7 14:41:51 aegir NetworkManager[1188]: <info> VPN connection 'fw01-TCP-8081-gc-config-v2' (IP Config Get) complete.
Aug 7 14:41:51 aegir NetworkManager[1188]: <info> VPN plugin state changed: started (4)
Aug 7 14:42:10 aegir NetworkManager[1188]: <warn> VPN plugin failed: 2
Aug 7 14:42:10 aegir NetworkManager[1188]: <warn> VPN plugin failed: 1
Aug 7 14:42:10 aegir NetworkManager[1188]: <info> VPN plugin state changed: stopped (6)
Aug 7 14:42:10 aegir NetworkManager[1188]: <info> VPN plugin state change reason: 0
Aug 7 14:42:10 aegir NetworkManager[1188]: <warn> error disconnecting VPN: Could not process the request because no VPN connection was active.
Aug 7 14:42:17 aegir NetworkManager[1188]: <info> VPN service 'openvpn' disappeared

ichionid
OpenVpn Newbie
Posts: 2
Joined: Thu Aug 07, 2014 1:24 pm

Re: OpenVPN connection breaks after a few seconds

Post by ichionid » Fri Aug 15, 2014 11:17 am

I am now using the terminal to connect.
The error I am not getting is:
Fri Aug 15 13:12:11 2014 TUN/TAP device tun1 opened
Fri Aug 15 13:12:11 2014 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Fri Aug 15 13:12:11 2014 /sbin/ifconfig tun1 172.16.16.22 pointopoint 172.16.16.21 mtu 1500
SIOCADDRT: File exists
Fri Aug 15 13:12:11 2014 ERROR: Linux route add command failed: external program exited with error status: 7
SIOCADDRT: File exists
Fri Aug 15 13:12:11 2014 ERROR: Linux route add command failed: external program exited with error status: 7
SIOCADDRT: File exists
Fri Aug 15 13:12:11 2014 ERROR: Linux route add command failed: external program exited with error status: 7
Fri Aug 15 13:12:11 2014 Initialization Sequence Completed

I am checking the docs you've sent but please bear in mind that I am a newbie in this :)

Post Reply