Questions tagged as ['vpn']

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 ...
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 vpn.xxx.xxx.xxx --authgroup=yyyyyyyy --interface=tun1
To Disconnect
sudo ifconfig tun1 down
sudo openvpn --rmtun --dev tun1
...
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 ...
everyone!
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 ...
I need to access an url via VPN, (estrelaoriente.com) but seems it is conflicting with an docker route (docker.amazee.io):
~$ ping estrelaoriente.com PING estrelaoriente.com.docker.amazee.io (127.0.0.1) 56(84) bytes of data. 64 bytes from localhost (127.0.0.1): 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 ...
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.
Whoops! Something went wrong. Please try again. If the problem persists, contact our customer support.
Details

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:
...but WhatsMyProxy seems to indicate that I am indeed running a VPN, and accord ...
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.
/etc/systemd/system/pia.service
[Unit]
Description=PrivateInternetAccess (Wireguard, Switzerland)
After=network-online.target
[Service]
User=ubuntu
Gro ...
After updating to Ubuntu 20.04 LTS internet stopped working without VPN (I use Cloudflare WARP)
righthaze@desktop ~ ping google.com
PING google.com (216.58.215.110) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
^C
--- google.com ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time ...

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.
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 ...
I am having trouble trying to setup StrongSwan Client on Ubuntu.
Here are the steps I follow:
Export user's certificate:
openssl pkcs12 -in cert_export_username@domain.com.p12 -out username-cert.pem -clcerts -nokeys
Export user's private key:
openssl pkcs12 -in cert_export_username@domain.com.p12 -out username-key.pem -nocerts -nodes
Rename CA certificate:
mv cert_export_CA.crt cacert.pem
Copy ...
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?

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 ubuntu.com simply does not load.
It sounds like that I possibly got blanket banned and ended up being a casualty? Everything else ...
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 ...

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

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 ...
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
/etc/openvpn/
/etc/openvpn/client
The logs appear to indicate i ...
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.
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 ...

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 .
I had some PPTP VPNs that they worked well but when i updated Ubuntu version to 21.10 they does not work now.
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
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 ...
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 ...

I created a VPN connection to my FritzBox. When the connection is UP I receive 192.168.1.200 as IP address.
I set a static IP address ("manual") in NetworkManager GUI:
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
link/none
inet 192.168.1.200/24 brd 192.168.1.255 scope global noprefixroute tun0 ...

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:
[connection]
id=myVPN
uuid=blabla-blabla-blabla
type=vpn
autoconnect=false
permissions=user:mark:;
[vpn]
IKE DH Group=dh2
IPSec ID=myID
IPSec gateway=myGateway
IPSec secret-flags=1
Local Por ...

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:
[connection]
id=myVPN
uuid=blabla-blabla-blabla
type=vpn
autoconnect=false
permissions=user:mark:;
[vpn]
IKE DH Group=dh2
IPSec ID=myID
IPSec gateway=myGate ...
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. ...
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 ...