Questions tagged [openvpn]

OpenVPN is a free and open source software application that implements virtual private network (VPN)

Filter by
Sorted by
Tagged with
186 votes
9 answers
550k views

How can I use a .ovpn file with Network Manager?

I have a .ovpn file with my VPN config - it works fine when I do sudo openvpn --config ~jrg/Documents/vpn-config.ovpn in the terminal, but I'd like to use Network Manager. How can I do this?
jrg's user avatar
  • 60.6k
163 votes
7 answers
559k views

How to setup OpenVPN Client

I'm trying to setup OpenVPN using NetworkManager. The GUI seems buggy and unresponsive. Are there any other tools for setting up a VPN client?
Nicholas Marshall's user avatar
132 votes
6 answers
734k views

Where are the OpenVPN connection logs and configuration files?

I have problem connecting to OpenVPN server. Where are OpenVPN log files and how do I find the connection details?
Hojat Taheri's user avatar
  • 5,409
89 votes
25 answers
426k views

How to disconnect from OpenVPN?

I'm connecting using VPNBook servers and it works fine with this command: sudo openvpn --config /etc/openvpn/vpnbook-udp-53.ovpn --auth-user-pass /etc/openvpn/password.txt but I just can't seem to ...
Adam's user avatar
  • 1,355
89 votes
7 answers
182k views

Ubuntu 18.04 no DNS resolution when connected to OpenVPN

When I connect to a VPN network through Gnome Network-manager I lose DNS resolution and in practice, I cannot access resources inside the VPN network or outside. When I was using Ubuntu 16.04 and I ...
orestis's user avatar
  • 1,408
64 votes
10 answers
143k views

OpenVPN connecting but no internet access on Ubuntu 16.04 / 18.04 / 20.04

I'm trying to connect to a VPN using OpenVPN. I tried using network-manager with OpenVPN plugin and tried too in terminal with ovpn.conf file. Everything connects (it says connection established) in ...
Shantanu Shady's user avatar
60 votes
7 answers
244k views

How do I run a script after OpenVPN has connected successfully?

How can I associate a script to OpenVPN so that it runs when the VPN is connected successfully?
Oxwivi's user avatar
  • 17.8k
54 votes
7 answers
54k views

Automatically turn on VPN on computer unlock Ubuntu 18.04

When I wake the laptop from the sleep I need to get the VPN state as I left it (turned on). Can't find the setting of autoconnect in VPN settings... Need some easy way to ask the system to autoconnect ...
0x49D1's user avatar
  • 715
54 votes
12 answers
72k views

"error: the plugin does not support import capability" when attempting to import openvpn config file

Gnome network manager can't import any openvpn config file (.ovpn) after upgrading ubuntu to 16.04 version; I get the following error message when I try to import openvpn config file: The file '...
ahooee's user avatar
  • 665
54 votes
6 answers
330k views

Route all traffic through OpenVPN

Yep, this question has been asked a hundred times, and I have searched everywhere, to no avail. The title says it all really. I have an OpenVPN server (On ubuntu), and I can connect to it through ...
Just Lucky Really's user avatar
53 votes
2 answers
116k views

Where are VPN configuration files imported by Network Manager saved?

I've imported an OpenVPN configuration file that behaves differently when trying to connect from Network Manager and command line. I would like to see what the imported configuration file looks like.
Oxwivi's user avatar
  • 17.8k
50 votes
12 answers
96k views

cannot import saved openVPN configuration file in Ubuntu 16.04 LTS

I am trying to import a .ovpn file from the network manager. Here are the steps I follow. Network Manager → VPN Connections → configure VPN This opens the Network Connections dialogue. Then, ...
Lucosias's user avatar
  • 623
49 votes
7 answers
224k views

OpenVPN GUI client for UDP/TCP

Is there any easy solution for OpenVPN being executed from Desktop for non technician people so they only push a button and get connected to a external VPN? Most of my colleagues are non Linux ...
jglerner's user avatar
  • 643
43 votes
8 answers
58k views

VPN Autoconnect

Im using Ubuntu 13.04 with Gnome and I recently set up a (open)VPN. Is there any way to enable it by default? Each time I boot or even lost my connection, I have to enable the VPN manually. Is there ...
Paul Woitaschek's user avatar
42 votes
3 answers
125k views

How can I run OpenVPN as root in the background, in a script?

I'd like to write a script that calls openvpn first, followed by ssh. When typing the command sudo openvpn ~/my_connection.ovpn in the command prompt I get the following output: ... Wed Jan 4 21:...
null's user avatar
  • 1,231
41 votes
6 answers
210k views

Starting OpenVPN client automatically at boot

I'm trying to get OpenVPN to start automatically at boot. Today I have to manually type in sudo openvpn --client --config $HOME/openvpn/anonine.ovpn --ca $HOME/openvpn/anonine.ca.crt followed by ...
user280409's user avatar
40 votes
10 answers
49k views

gray button for saving "editing VPN connection" in network-manager

I have installed 12.04 and setting up the OpenVPN via network manager. the network-manager-openvpn-gnome is installed, and I can open "configure VPN..." and see "Add VPN", however I can not save my ...
Forest's user avatar
  • 401
33 votes
7 answers
76k views

How to disable IPv6 when connecting to an OpenVPN server using Network Manager on a dual-stack system?

I'm using the OpenVPN client through the OpenVPN Network Manager plugin on a dual stack (meaning configured both for IPv4 and IPv6 connectivity) Ubuntu 13.10 to redirect all traffic through the VPN (...
Damn Terminal's user avatar
32 votes
3 answers
32k views

Systemd fails to start openvpn in lxd managed 16.04 container

openvpn starts fine from the command line using the exact ExecStart= call from the systemd unit file: /usr/sbin/openvpn --daemon ovpn-server --status /run/openvpn/server.status 10 --cd /etc/openvpn --...
Christian David's user avatar
32 votes
3 answers
48k views

Ubuntu 16.04 LTS Network Manager cannot add VPN - greyed out

I'm trying to add a VPN to my network, but the option is greyed out. Screenshot of the greyed-out indicator I installed network-manager-openvpn but still no luck. Editing my connection does not show ...
Harmonic's user avatar
  • 1,005
32 votes
5 answers
57k views

Cannot Import VPN connection

Since 12.04 I cannot connect to my VPN. my ovpn file is the following http://email.uoa.gr/help/download/vpn/edunet.ovpn When I try to import the VPN file i get the following error The file '...
ECII's user avatar
  • 3,957
32 votes
9 answers
59k views

Unable to connect to VPN using gnome-network-manager

I'm using Ubuntu 14.04. I originally wanted auto-connect VPN upon login, but after much trial and error and connection issues it looks like my network manager is corrupt. When I try to connect Wifi ...
TheMayne's user avatar
  • 459
31 votes
3 answers
60k views

How do I setup OpenVPN so I can securely use the internet from an unsecured hotspot?

Goal: I want to be able to securely use the internet via my home PC while my notebook is connected to an open hotspot/access point. I do know that I can use a SSH tunnel/SOCKS proxy, but I don't want ...
htorque's user avatar
  • 64.8k
30 votes
5 answers
72k views

Can't connect to VPN after upgrading to Ubuntu 22.04

2022-05-10 17:07:15 VERIFY ERROR: depth=0, error=CA signature digest algorithm too weak: 2022-05-10 17:07:15 OpenSSL: error:0A000086:SSL routines::certificate verify failed I use openvpn (with 3 ...
GhitaB's user avatar
  • 465
25 votes
2 answers
67k views

How to disable OpenVPN from autostarting at boot-up or reboot?

I am using Ubuntu 12.04.2 LTS, 64-bit, OpenVPN client 2.3.1 How do I prevent OpenVPN from autostarting at boot-up or reboot?
n00b's user avatar
  • 1,897
25 votes
1 answer
79k views

How to start the OpenVPN client service on Ubuntu 15.04

I can launch OpenVPN and point it at the config file and everything works fine, such as: sudo openvpn /etc/openvpn/myvpn.conf but when I try start the service with sudo /etc/init.d/openvpn start ...
user296916's user avatar
23 votes
1 answer
235k views

Adding route on client using OpenVPN

So this is my setup. Laptop Running Ubuntu OpenVPN version 2.3.2 I connect to a OpenVPN server that connects to an off-site network. I get the OpenVPN client running and I can ping the VPN server. ...
Jocke's user avatar
  • 331
23 votes
2 answers
59k views

How to setup VPN using an .ovpn file? [duplicate]

I've been using Ubuntu 18.04 for about 3 days now and so far it runs smoothly. I now need to install a VPN for my work, and I got the following files from the sysadmin: ca.crt VPNConfig.ovpn I first ...
kramer65's user avatar
  • 2,133
22 votes
2 answers
26k views

No internet access when VPN connected

I have an OpenVPN config that I use on my Windows XP box and on my Ubuntu machine. When I use it with my Windows machine, I can connect to the VPN and access sites on the VPN, and the internet as ...
user10669's user avatar
  • 431
22 votes
2 answers
55k views

UFW for OpenVPN

I want to configure ufw (uncomplicated firewall) for OpenVPN. Connections are only allowed through OpenVPN. Everything else should be blocked. So if OpenVPN is disconnected -> no internet! I found ...
Alex M.'s user avatar
  • 221
21 votes
2 answers
26k views

Unable to open "Cisco Anyconnect Secure mobility client" on my Ubuntu 18.04 LTS after the complete installation

I am having problems on a Cisco VPN. ISSUE: Unable to open "Cisco Anyconnect Secure mobility client" on my Ubuntu 18.04 LTS after the complete installation. I am able to see the icon on the ...
Hari's user avatar
  • 213
21 votes
5 answers
45k views

Transmission daemon over OpenVPN

I have recently acquired a BeagleBone Black, onto which I've installed Ubuntu using this method. It has all worked so far. I want to use my BeagleBone as a torrent box, but I don't want to do it ...
seanlano's user avatar
  • 2,986
20 votes
6 answers
111k views

How to auto start openvpn (client) on Ubuntu CLI?

I'm using Ubuntu 12.04 64bit. I have an *.ovpn file that works if I type: sudo openvpn client.ovpn Now I would like to start up openvpn when I boot the computer. How can I do this?
waspinator's user avatar
  • 4,722
20 votes
6 answers
57k views

openvpn can't import configurations on new 14.04 installation

Edit: Fixed it back then when the patch rolled out with add VPN config. No longer use Linux/Ubuntu now. I installed the OpenVPN Network-Manager by doing: sudo apt-get install network-manager-openvpn, ...
vaioonbuntu's user avatar
19 votes
1 answer
20k views

OpenVPN configure: error: lzo enabled but missing

openvpn-2.4.8 https://swupdate.openvpn.org/community/releases/openvpn-2.4.8.tar.gz Ubuntu 18.04.4 LTS I want to Build and Install OpenVPN. tar -zxf openvpn-<version>.tar.gz cd openvpn-<...
Osvald Laurits's user avatar
19 votes
4 answers
151k views

Check if OpenVPN is running

How can I check if OpenVPN is running on my server? I have tried with "sudo systemctl status openvpn", but I'm not sure if everything is ok, because I get: "Active: active (exited) since ..." ● ...
JanezKranjski's user avatar
19 votes
6 answers
37k views

Imported OpenVPN (.ovpn) Profile not working anymore after update to Ubuntu 22.04

2 days ago I updated my Ubuntu Distro from 20.04 LTS to 22.04 LTS. After the update, I've noticed that my private OpenVPN tunnel is not working anymore in the new update, in Ubuntu 20.04 was working ...
Gianlu28's user avatar
  • 191
18 votes
2 answers
11k views

What is the purpose of OpenVPN's /etc/openvpn/{client,server} directories?

Ubuntu/Debian OpenVPN package contains 2 mysterious directories: dpkg -L openvpn ... /etc/openvpn/client /etc/openvpn/server ... I'm wondering what is the purpose of those directories? All tutorials ...
ezaquarii's user avatar
  • 303
18 votes
2 answers
110k views

OpenVPN HMAC Authentication Failure No Matter What I do?

I am having an issue with my openvpn server, running Debian Wheezy x64, and my client, running Ubuntu 14.10 x64. It seems no matter what configurations I try, I get this error, over and over, a couple ...
Chev_603's user avatar
  • 1,666
17 votes
4 answers
47k views

OpenVPN Logs "IP Packet with unknown IP version=15"

On my OpenVPN server, I'm getting messages from OpenVPN like: ovpn-server[2455]: host/192.168.129.155:33454 IP packet with unknown IP version=15 seen I have three OpenVPN clients and each of them ...
nwalke's user avatar
  • 366
17 votes
1 answer
44k views

UFW or IPTables on Ubuntu for OpenVPN?

I'm kind of a newbie in networking and Linux, and I always get confused over whether I should use UFW or IP Tables when restricting my internet connection to only use VPN. Looking around, I find there ...
ryoishikawa74's user avatar
16 votes
2 answers
77k views

Ubuntu 16.04 OpenVPN

When I choose the Connection Type in VPN Connections, I have only PPTP and I can't find OpenVPN, but I already installed it via terminal with the command sudo apt-get install openvpn easy-rsa Why I ...
23840034's user avatar
  • 245
15 votes
1 answer
37k views

Difference between OpenVPN Access Server and just OpenVPN

I'm trying to setup a VPN using OpenVPN and I'm completely confused here. I followed some more less clear tutorials that include something like sudo apt-get install openvpn I configured here and ...
alvaroc's user avatar
  • 641
14 votes
2 answers
70k views

OpenVPN - Password Authentication Only

When using the OpenVPN Client for Windows, I can log into the OpenVPN server with only a username and password. I can't figure out how to make the same thing happen in Ubuntu. It seems that some kind ...
kbuilds's user avatar
  • 1,565
14 votes
4 answers
21k views

OpenVPN: The VPN connection to ... because of invalid VPN secrets

I am 3 days into using Linux. I set up an OpenVPN connection following the instructions set out by: https://www.goldenfrog.com/support/vyprvpn/vpn-setup/linux/openvpn OpenVPN installation went ...
Obi Smith's user avatar
  • 141
13 votes
7 answers
156k views

How to restart openvpn service (or any service) running under "nobody" user?

On my Ubuntu 16.04 server, I have the OpenVPN service running as the user nobody. How can I restart the service or reload the config file for the service using, for instance, systemctl? An openvpn ...
sumade's user avatar
  • 193
13 votes
5 answers
67k views

Starting openvpn error: "Please enter password with the systemd-tty-ask-password-agent"

I've just upgraded to 15.10 (and yes I plan to go to 16.04 next time I have a little free time). I've been using openvpn to connect to a work VPN for years and years via a .ovpn config file that's ...
Pointy's user avatar
  • 1,563
13 votes
1 answer
42k views

Getting OpenVPN to work with XFCE on Xubuntu? [closed]

I'm trying to get OpenVPN to work properly on my install of Xubuntu 11.10. So far, no luck. I've successfully set this up very easily using Ubuntu 11.10 so not sure why I'm seeing issues. The base ...
Mat Nadrofsky's user avatar
13 votes
3 answers
22k views

Shut Down Quickly - A stop job is running

In systemd based systems, such as debian 8 and ubuntu 16.04, I have this issue whereby the machine will refuse to shut down if I forgot to stop my openvpn connection before sending the command to shut ...
Programster's user avatar
  • 5,871
13 votes
2 answers
13k views

How to configure an OpenVPN Client Router

I am attempting to set up an OpenVPN Router so that I may connect my tablet (wireless) and Blu-Ray (wired) to a paid VPN service in another country on Ubuntu 12.10. I have successfully done this using ...
jbrookover's user avatar

1
2 3 4 5
24