M
M
Maxim Tarabrin2018-07-25 16:30:56
openvpn
Maxim Tarabrin, 2018-07-25 16:30:56

How to find an error with the inability to connect via OpenVPN?

I needed to set up an OpenVPN connection. I installed the plugin:

sudo apt install network-manager-openvpn network-manager-openvpn-gnome

When creating a vpn connection, there is a line with open vpn in the list. I successfully import the .ovpn config, but when I connect using this connection, I get an error:
Failed to activate network connection.
Ubuntu 18.04
MB somewhere to look at the log or someone knows what could be the problem?
UDP: Now I tried to manually connect via vpn. The connection seems to go through, but I can’t access the resources and the ip address shows the same (2ip)
****************:/etc/openvpn/client$ sudo openvpn --config simbirsoft.ovpn
[sudo] пароль для ****************: 
Wed Jul 25 17:56:51 2018 WARNING: file '****************.key' is group or others accessible
Wed Jul 25 17:56:51 2018 OpenVPN 2.4.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Feb 10 2018
Wed Jul 25 17:56:51 2018 library versions: OpenSSL 1.1.0h  27 Mar 2018, LZO 2.08
Enter Auth Username: ****************
Enter Auth Password: ****************
Wed Jul 25 17:57:00 2018 WARNING: --ns-cert-type is DEPRECATED.  Use --remote-cert-tls instead.
Wed Jul 25 17:57:00 2018 TCP/UDP: Preserving recently used remote address: [AF_INET]109.195.194.200:1194
Wed Jul 25 17:57:00 2018 UDP link local (bound): [AF_INET][undef]:0
Wed Jul 25 17:57:00 2018 UDP link remote: [AF_INET]109.195.194.200:1194
Wed Jul 25 17:57:00 2018 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Wed Jul 25 17:57:00 2018 [Simbirsoft] Peer Connection Initiated with [AF_INET]109.195.194.200:1194
Wed Jul 25 17:57:01 2018 Options error: Unrecognized option or missing or extra parameter(s) in [PUSH-OPTIONS]:18: register-dns (2.4.4)
Wed Jul 25 17:57:01 2018 TUN/TAP device tun0 opened
Wed Jul 25 17:57:01 2018 do_ifconfig, tt->did_ifconfig_ipv6_setup=0
Wed Jul 25 17:57:01 2018 /sbin/ip link set dev tun0 up mtu 1500
Wed Jul 25 17:57:01 2018 /sbin/ip addr add dev tun0 192.168.170.8/24 broadcast 192.168.170.255
RTNETLINK answers: File exists
Wed Jul 25 17:57:01 2018 ERROR: Linux route add command failed: external program exited with error status: 2
Wed Jul 25 17:57:01 2018 Initialization Sequence Completed

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis, 2018-07-25
@notwrite

openvpn writes logs to /var/log/daemon.log

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question