Page 1 of 1

Run OpenVPN client with networkmanager

Posted: Tue Aug 07, 2018 11:31 am
by massimo.perani
Hi,
I'm trying to run OpenVPN client with networkmanager on ubuntu 16.04 server.

First I configured an OpenVPN server on AWS following this link
http://envyandroid.com/setup-free-priva ... mazon-ec2/


then, on my linux 16.04 client, I installed the openvpn Client

Code: Select all

apt-get install openvpn


and I ran it

Code: Select all

openvpn --config $PathToMyConfigFile

All is working correct, I am able to connect to this client from other vpn client.


Now I want to use networkmanager instead of the openvpn client to open the vpn connection,
so I installed

Code: Select all

apt-get install network-manager-openvpn
apt-get install network-manager-openvpn-gnome

Code: Select all

nmcli connection import type openvpn file $PathToMyConfigFile
Connection 'vpn' (nnnn-nnnn-nnnn-nnnn...) successfully added.

Code: Select all

nmcli c
NAME UUID TYPE DEVICE
MODEM nnnn-nnnn-nnnn-nnnn.. gsm ttyUSB2
WiFi nnnn-nnnn-nnnn-nnnn.. 802-11-wireless --
vpn nnnn-nnnn-nnnn-nnnn.. vpn --

tried to activate connection:

Code: Select all

nmcli conn up vpn
Error: Connection activation failed: the connection attempt timed out.


Have I missied some install/config steps?
Please can you help me?

Thank you
Massimo

Re: Run OpenVPN client with networkmanager

Posted: Tue Aug 07, 2018 11:44 am
by TinCanTech
massimo.perani wrote:
Tue Aug 07, 2018 11:31 am
All is working correct, I am able to connect to this client from other vpn client
Good.
massimo.perani wrote:
Tue Aug 07, 2018 11:31 am

Code: Select all

nmcli conn up vpn
Error: Connection activation failed: the connection attempt timed out.
The problem then is NetworkManager ..

You can check your openvpn log file for further details ..