Questions tagged as ['vpn']

Questions related to VPN (Virtual Private Network) software
Score: 0
How to get the network interface through which traffic is routed
cn flag

I am trying to figure out through which interface my traffic is routed and to get the local ip address associated with that interface. This will make me differ between cases where vpn access is disabled (all goes through wlan0 -> read ip from that interface) or when vpn is activated (all goes through tun0, get ip of that interface).

I know the route command, but I can't really see how I will p ...

Score: 0
user643722 avatar
VPN via Command Line, but not via Gnome Network Manager
jp flag

I can use Remmina to connect to a Windows 10 office machine from Ubuntu by first connecting to our corporate VPN. Following the helpful advice from here, I can successfully use the following:

To Connect

sudo openvpn --mktun --dev tun1
sudo ifconfig tun1 up
sudo openconnect --authgroup=yyyyyyyy --interface=tun1

To Disconnect

sudo ifconfig tun1 down
sudo openvpn --rmtun --dev tun1
Score: 1
AlwaysLearningNewStuff avatar
Wireguard client can not connect to internet
vn flag

I have installed Wireguard with following commands:

sudo apt update
sudo apt install wireguard

Then I have installed resolvconf:

sudo apt install resolvconf

Created keys:

umask 077
wg genkey | sudo tee /etc/wireguard/private.key
sudo cat /etc/wireguard/private.key | wg pubkey | sudo tee /etc/wireguard/public.key

Finally, created config:

sudo nano /etc/wireguard/wg0.conf
# below is the content of the ...
Score: 0
Alex Klimenko avatar
Cannot create vpn connection from Network Manager GUI but using CLI still works 20.04
ng flag


Why I can create VPN connection only with CLI? I mean, when I run

sudo openvpn myconfigfile.ovpn

this create vpn connection and everything works fine, but through the Network Manager GUI I don't have any button to create connection at all. They were there but now they disappeared
I find out there I cannot create a new VPN connection 14.04 that maybe I should give my user some extra privileges ...

Score: 0
Bruno Colaço avatar
help with dns name conflict vpn and docker
cn flag

I need to access an url via VPN, ( but seems it is conflicting with an docker route (

~$ ping PING ( 56(84) bytes of data. 64 bytes from localhost ( icmp_seq=1 ttl=64 time=0.037 ms

if I ping this server ip it connects ok, I have already deleted all docker images, flushed iptables, flushe ...

Score: 1
Conor Cosnett avatar
nordvpn ubuntu error: Whoops ! Something went wrong
cn flag

When I reboot my ubuntu 20.04 focal machine and do a nordvpn connect, I sometimes get this annoying nordvpn error.

Whoops! Something went wrong. Please try again. If the problem persists, contact our customer support.

enter image description here

Whoops! Something went wrong. Please try again. If the problem persists, contact our customer support.


enter image description here

enter image description here

Score: 0
VPN active, but not configured?
bd flag

Ubuntu 20.04.3LTS. Chromium 96.0.4664.45. Sorry if this has been asked before, from my searches it looks like most people who have asked questions have the opposite of my problem.

I'm not trying to use a VPN, but I'm using one. In my network settings, VPN is listed as Not Set Up and Network Proxy is off:

Network Settings

...but WhatsMyProxy seems to indicate that I am indeed running a VPN, and accord ...

Score: 0
Frizelbliz avatar
How do I create a VPN kill switch for PrivateInternetAccess and Wireguard in ufw or iptables?
cn flag

I am using the manual-connections script collection from PrivateInternetAccess on my headless Ubuntu server. I start the setup script in a service unit and need to make sure that I don't access anything outside my local network whenever Wireguard crashes.


Description=PrivateInternetAccess (Wireguard, Switzerland)

Gro ...
Score: 0
viiprogrammer avatar
No internet access without VPN after updating from 18.04 to 20.04
ma flag

After updating to Ubuntu 20.04 LTS internet stopped working without VPN (I use Cloudflare WARP)

righthaze@desktop  ~  ping
PING ( 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
--- ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time ...
Score: 0
Wire Connection doesn't automatically connect. I can click it on and off without a problem
ug flag

I recently set up a VPN connection. I then

sudo nm-connection-editor

And set the wired connection to automatically connect to VPN. Now, when I reboot, the wired connection doesn't automatically connect. It connects only when I click it on and off.

Any help would be greatly appreciated.

Score: 0
user3423953 avatar
OCServ dropping connections (OCServ 0.12.6 on Ubuntu 20.04.03)
in flag

Server: OCServ

ocserv 0.12.6

Compiled with: seccomp, tcp-wrappers, oath, radius, gssapi, PAM, PKCS#11, AnyConnect
GnuTLS version: 3.6.13 (compiled with 3.6.11)

Client: openconnect

OpenConnect version v8.10-2build1~ubuntu20.04.1~ppa1
Using GnuTLS 3.6.13. Features present: TPMv2, PKCS#11, RSA software token, HOTP software token, TOTP software token, Yubikey OATH, System keys, DTLS, ESP
Supported p ...
Score: 0
Iraklis Bekiaris avatar
Install and Configure StrongSwan Client on Ubuntu
hu flag

I am having trouble trying to setup StrongSwan Client on Ubuntu.

Here are the steps I follow:

Export user's certificate:

openssl pkcs12 -in -out username-cert.pem -clcerts -nokeys

Export user's private key:

openssl pkcs12 -in -out username-key.pem -nocerts -nodes

Rename CA certificate:

mv cert_export_CA.crt cacert.pem

Copy  ...

Score: 2
unknown user avatar
Unable to install PIA
in flag

I have downloaded PIA for Ubuntu from the official PIA site. When it downloads it is in a .run file There are no instructions on how to install PIA on my 21.04 system.

Can anyone help?

Score: 0
Can't connect to archive on both of my Ubuntu computers without using a VPN. IP banned?
br flag

I've been having this problem for a while but I figure that I should try to get to the bottom of it now. For the past few months for whatever reason I simply can not connect to the Ubuntu archive from my home in Cambodia. This happens for both computers. Even going to simply does not load.

It sounds like that I possibly got blanket banned and ended up being a casualty? Everything else  ...

Score: 0
gryphusZero avatar
passing the credentials to the bash script from external file
vn flag

So I made simple bash script that connects me to the VPN.

I have to enter username and password manually, but I would like to pass the txt or any other file that has my credentials, so that when terminal asks me for username and password - it should just pick them up from the file.

here is how the code looks like now:

sudo openvpn3 session-start --config /home/path-to-config-file.ovpn

after I run ...

Score: 0
OpenVPN drops the connection to my machine from outside LAN
pf flag

I'm facing this specific issue that I can't reproduce on Windows and Mac, it happens only on Linux.

My network has the following setup. Fiber Router DHCPs 192.168.1.x to WiFi Router 192.168.0.x DHCP's to devices.

I have an OpenVPN server on my WiFi Router through which I'm connecting to my machines from outside LAN. The problem happens when one of my Linux machines establishes a connection to some o ...

Score: 0
Last journal entry before crash
th flag

My Ubuntu 18.04 PC has suddenly started freezing every night. I honestly have no clue what it's struggling with. I'm pretty sure in neither case I'm about to share was running anything intense when it froze.

I use VPN to remote into it Monday thru Friday, and I've been coming back to it with the VPN not working every morning. Someone physically in my lab has been resetting by a power button aroun ...

Score: 0
brad avatar
Openvpn fails to start in systemd, 20.04
in flag

A new client configuration. I can launch openvpn and connect via the executable, but systemd cannot start openvpn

I tried

systemctl start openvpn@server.service

systemctl start openvpn@server

systemctl start openvpn@service

systemctl start openvpn

and all the same using the service command. Same start failure.

I have the config file in



The logs appear to indicate i ...

Score: 0
Sankar avatar
forticlient is not connect in Bsnl network in ubuntu 18.04 LTS
in flag

Actually, I am using the bsnl network with DBC router and I want to connect forticlient VPN but it is ok in windows PC, but not able to get it in Linux. NO firewall enabled. I think some sensitive security-related permission issues.

Score: 0
Felix Yeung avatar
l2tp/IPsec vpn: Cannot diable PFS
in flag

I am using Ubuntu 21.04 and I wanted to connect to a VPN. I have installed the network-manager network-manager-l2tp network-manager-gnome. I have another laptop using Fedora and installed the same packages and I could disable FPS, however I cannot disable FPS in Ubuntu. I have tried connecting to my school's vpn without disabling VPN but it did not work. If anyone have any idea how to do it please co ...

Score: 0
problem in using the selektor for Firefox in Ubuntu
by flag

I have installed the selektor and tried to use the below part of this instruction.

You will then be able to use Tor (via Privoxy) as a regular HTTP proxy. To do this, install Privoxy:

sudo apt-get install privoxy

Then, edit the Privoxy configuration file as root (I’ll use Gedit below):

gksu gedit /etc/privoxy/config

… and add this at the end of the file:

forward-socks5 / localhost:9054 .
Score: 0
milad salimi avatar
PPTP VPNs disabled when i update Ubuntu to 21.10
th flag

I had some PPTP VPNs that they worked well but when i updated Ubuntu version to 21.10 they does not work now.

Score: 0
Mirela avatar
Minimum spec to run OpenVPN, NAS, PLEX and ad blocker on same Ubuntu server/OS?
us flag

Im new to linux and im exited. I want to have computer with Ubuntu that will act as plex server, NAS, VPN and ad blocker. I also want to acces it remotely outside my network in order to download stuff and manage my data.

What is minimum system requirements to run all that with no problem? Thank you

Score: 0
Wizard79 avatar
Use a VPN only for some specific routes
my flag

I want to use a VPN only for some specific routes (so that the default route is not on the VPN).

So in the Add VPN dialog I selected the "Use this connection only for resources on its network" (this doesn't change the default route) and then I added some subnetworks that I want to route to the VPN.

However, I'm not sure which gateway should I set here, as this is the VPN's gateway address, and it's  ...

Score: 1
jakaskerl avatar
Working VPN connection but can't access my samba share
eg flag

I am using Wireguard VPN to connect my work laptop to my home network where I have files stored on Samba share. Both the VPN and the share are installed on my Raspberry PI (with a static ip).

Now the issue is that I cannot access the samba share on the network, but can browse the internet just fine. I also have a peer on my android phone and the samba share seems to work just fine there -> lea ...

Score: 0
Settings static IP for VPN leads to multiple addresses
ve flag

I created a VPN connection to my FritzBox. When the connection is UP I receive as IP address.

I set a static IP address ("manual") in NetworkManager GUI:

enter image description here

Now I have two IP addresses:

9: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1412 qdisc fq_codel state UNKNOWN group default qlen 500
    inet brd scope global noprefixroute tun0 ...
Score: 1
NetworkManager cannot find VPN plugin
ve flag

I'm trying to set up two different machines with the same VPN client configuration. Both machines run Ubuntu 20.04, one is without X (Machine B).

Here my NetworkManager configuration file that works on machine A:


IKE DH Group=dh2
IPSec gateway=myGateway
IPSec secret-flags=1
Local Por ...
Score: 0
Configure ip-sec VPN with nmcli
ve flag

I want to configure a ip-sec VPN connection from nmcli because it runs on Ubuntu 20.04 Server without X Server. I already have a connection file on another machine, so at the end of the process I would be able to check the if the configuration is ok:


IKE DH Group=dh2
IPSec gateway=myGate ...
Score: 1
Clément avatar
Problem with DNS resolution when NOT connected to VPN Ubuntu 20.04
sa flag

When I try to access a website it doesn't work anymore and just tells me "DNS_PROBE_POSSIBLE" unless I am connected to a VPN (Proton VPN) then the internet works fine.

After some digging around I am pretty sure it is a DNS issue but I cannot understand how to fix it.

If I am connected to the VPN and run systemd-resolve --status | grep Current I get:

Current Scopes: DNS      
Current DNS Server: 10.16. ...
Score: 0
Alimo avatar
OpenConnect certificate failed verification, it says its expired, but it is NOT!
mx flag

When I try to connect to my OCServ using OpenConnect client in ubuntu it throws an error:

Connected to x.x.x.x:yyy
SSL negotiation with server.domain.tld
Server certificate verify failed: certificate expired

Certificate from VPN server "server.domain.tld" failed verification.
Reason: certificate expired
To trust this server in future, perhaps add this to your command line:
    --servercert pin-sha ...