Run OpenVPN client with networkmanager

This forum is for general conversation and user-user networking.

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

Post Reply
massimo.perani
OpenVpn Newbie
Posts: 1
Joined: Tue Aug 07, 2018 11:22 am

Run OpenVPN client with networkmanager

Post by massimo.perani » Tue Aug 07, 2018 11:31 am

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

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: Run OpenVPN client with networkmanager

Post by TinCanTech » Tue Aug 07, 2018 11:44 am

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 ..

Post Reply