Questions tagged [openvpn]

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

OpenVPN is a free and open source software application that implements virtual private network (VPN) techniques for creating secure point-to-point or site-to-site connections in routed or bridged configurations and remote access facilities. It uses a custom security protocol[2] that utilizes SSL/TLS for key exchange. It is capable of traversing network address translators (NATs) and firewalls.

1177 questions
195
votes
9 answers

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
  • 61,707
170
votes
7 answers

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?
136
votes
6 answers

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
  • 5,539
94
votes
7 answers

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 was using the VPN, the "/etc/resolv.conf/" file…
orestis
  • 1,458
93
votes
26 answers

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 figure out how to stop it without a reboot. I've…
Adam
  • 1,395
66
votes
10 answers

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 terminal, but no internet access. I can ping…
Shantanu Shady
  • 820
  • 1
  • 7
  • 9
63
votes
7 answers

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
  • 18,499
58
votes
7 answers

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 the VPN when the internet is available. Edit…
0x49D1
  • 755
55
votes
12 answers

"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 'file-x.ovpn' could not be read or does not contain…
ahooee
  • 675
54
votes
6 answers

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 my client (Windows 8) ... The problem starts when I…
Just Lucky Really
  • 723
  • 2
  • 10
  • 21
53
votes
3 answers

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
  • 18,499
51
votes
12 answers

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, Add → import saved vpn configuration → choose .ovpn…
Lucosias
  • 633
50
votes
7 answers

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 proficients. So, their interaction with CL is very…
jglerner
  • 653
  • 1
  • 5
  • 8
43
votes
8 answers

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 an option I am missing?
42
votes
3 answers

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:04:35 2017 do_ifconfig, tt->ipv6=0,…
null
  • 1,261
  • 5
  • 17
  • 23
1
2 3
78 79