Saturday, May 4, 2024
194
rated 0 times [  194] [ 0]  / answers: 1 / hits: 504847  / 3 Years ago, sat, july 31, 2021, 12:53:16

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?


More From » network-manager

 Answers
7

First, install the OpenVPN Network Manager plugin:



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


Open Network Manager, click "Add" and from the opened window select "Import a saved VPN configuration..." under "Choose a Connection Type". Navigate to your .ovpn file (~jrg/Documents/vpn-config.ovpn). If it doesn't automatically find your certificates/keys (the paths of which are found in the .ovpn file), you can select them here, or make any other small changes.



openvpn dialog



One other thing that may save you some headache down the road is to click IPv4 Settings, then change the method to "Automatic (VPN) Addresses Only". When kept at the default, this will cause ALL internet traffic to go over the VPN, regardless of your .ovpn settings. Here you can also set the DNS server and search domains to use while connected.



openvpn dialog


[#35563] Sunday, August 1, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nquirewha

Total Points: 256
Total Questions: 109
Total Answers: 122

Location: Namibia
Member since Mon, Feb 21, 2022
2 Years ago
nquirewha questions
Wed, Jan 26, 22, 03:38, 2 Years ago
Mon, Nov 1, 21, 13:50, 3 Years ago
Thu, Dec 1, 22, 09:23, 1 Year ago
;