Questions tagged [wireguard]
WireGuard is a free and open-source software application and communication protocol that implements virtual private network (VPN) techniques to create secure point-to-point connections in routed or bridged configurations.
105
questions
17
votes
1
answer
56k
views
Wireguard VPN Client GUI
I have already running 12 WireGuard VPN Servers.
Now I want to use an application to manage the connection on the clients.
On my Arch-Linux Client I have the network-manager-wireguard plugin running ...
10
votes
1
answer
30k
views
Can't load wireguard module
I have a VPS server running Ubuntu 18.04 LTS where I wanted to install a WireGuard VPN service. I have started with adding the repository and then installing the module which is running fine and ...
9
votes
3
answers
43k
views
wireguard vpn is failing with error: Cannot find device "wg0"
Hello I am very new to ubuntu, I installed wireguard almost 6 months ago, and it was working fine, untill yesterday when my ubuntu was updated, the wirguard does not want to come up, and gives the ...
8
votes
6
answers
21k
views
'RNETLINK answers: Operation not supported'. (fresh Ubuntu, fresh Wireguard)
I installed Ubuntu just today to run WireGuard
I then followed their installation instructions for Ubuntu.
sudo add-apt-repository ppa:wireguard/wireguard
sudo apt-get update
sudo apt-get install ...
7
votes
2
answers
3k
views
per-link DNS over TLS setting (NetworkManager + systemd-resolved)
Ubuntu 20.10. Attempts to fix DNS for a split connection (Wireguard VPN for work and a public link for everything else), have stranded in a NetworkManager+systemd-resolved setup.
A problem is that I ...
7
votes
2
answers
10k
views
WireGuard Management in Network-Manager on Jammy
On Ubuntu 20.04 (Focal), I was able to use the instructions outlined in this question to manage my WireGuard VPN connections through the regular Gnome VPN management. However, this is no longer ...
6
votes
2
answers
81k
views
Wireguard handshake works but no internet access
First off: this is not a duplicate. I've tried everything except OpenVPN or IPSec. I'm receiving a handshake between the client and server, and SSH and Ping work between clients, but I cannot access ...
6
votes
3
answers
5k
views
WireGuard ppa with 18.04 and kernel 5.3.0-53-generic?
I ran updates and upgrades today and couldn't get WireGuard up:
$ sudo wg-quick up wg0
[#] ip link add wg0 type wireguard
Error: Unknown device type.
Unable to access interface: Protocol not supported
...
5
votes
1
answer
15k
views
Can't add WireGuard VPN connection to Ubuntu Network Manager
I'm having trouble adding a WireGuard VPN connection to the Network Manager on Ubuntu. I've followed several online tutorials and tried different methods, but nothing seems to work.
I've installed ...
4
votes
2
answers
14k
views
VPN Wireguard - handshake ok but no internet and LAN access
I have a problem with wireguard setup. After setup up I can connect to my device. Handshake is ok but I cannot accesss internet and lan.
Device: raspberry pi 4b 8gb ram
OS: Ubuntu server ARM x64 20.04 ...
4
votes
3
answers
13k
views
wireguard error message: resolvconf: command not found
Ubuntu newbie here, with Ubuntu 22.04.2 LTS.
My employer uses Wireguard and they sent me the .conf file. The file name is sp.conf, and they clearly told me not to modify it at all. This means I can ...
4
votes
4
answers
7k
views
Add Wireguard vpn to Ubuntu Network Settings
I'm running Wireguard on pivpn on my raspberry pi 4. I mananged to add the client config file to my pc and I can access the vpn. Now I want to add the vpn to the Network settings in Ubuntu (see ...
4
votes
2
answers
14k
views
Wireguard VPN, no Internet access
I'm trying out Wireguard VPN, and although I believe that I've finally got it to connect, I have no Internet access, and can't ping various sites on the Internet.
I took a Wireguard .conf file ...
4
votes
2
answers
11k
views
Wireguard fails to build module even tho kernel headers are installed?
Installed wireguard in Xubuntu (Ubuntu 18.04.4 LTS) via PPA. The kernel module failed.
# modprobe wireguard
modprobe: FATAL: Module wireguard not found in directory /lib/modules/5.3.0-51-generic
I'...
4
votes
0
answers
1k
views
systemd-resolve reset after wake from suspend
I'm using wireguard client with the following PostUp script:
PostUp = systemd-resolve -i %i --set-dns=x.x.x.x --set-domain=~.
systemd-resolve did set the DNS setting correctly and 127.0.0.53 was ...
3
votes
2
answers
6k
views
Failed to resolve interface "tun": No such device
I'm trying to use wireguard, but when I try to use it with wg-quick up I get the error.
wg-quick up test
Warning: `/etc/wireguard/test.conf' is world accessible
[#] ip link add test type wireguard
[#] ...
3
votes
3
answers
24k
views
Cannot get wireguard client working on Ubuntu 20.04
I have set up a WireGuard server, which is running fine: I can connect an Android phone to it successfully, also a client on a laptop running Windows. But, I can't get the Ubuntu 20.04 installed on ...
3
votes
2
answers
49k
views
How to boot system with systemd as init system (PID 1)
I am using a Ubuntu terminal environment installed with Windows Subsystem for Linux (WSL). The version is Ubuntu 20.04.1 LTS (GNU/Linux 4.4.0-18362-Microsoft x86_64). Following instructions from ...
3
votes
2
answers
18k
views
Cannot setup WireGuard VPN
My goal is to create a VPN so
Clients have static IP addresses.
Clients are able to communicate with each other and the server,
Clients can reach global Internet through the VPN.
Also, I'd like to ...
3
votes
2
answers
739
views
How is Wireguard managed?
I use Wireguard as my primary VPN (running a server and having several clients connecting to it) - it works fine but I realized today that I do not understand how it is actually managed. It is the ...
3
votes
1
answer
23k
views
How can I fix resolving domain names with wireguard?
I've installed Wireguard and I successfully connect to my VPN network but I can't resolve domain names using DNS of the VPN network. I can ping internal nodes and I can get IP address that is bound to ...
3
votes
1
answer
10k
views
How to setup WireGuard client so only traffice for specific IPs is routed over VPN
I am using the Wireguard VPN client on Ubuntu 20.04 through the network-manager plug-in. The plug-in reads the configuration file I got from the sys admin, which is below (network-manager also handles ...
2
votes
3
answers
3k
views
Is there an alternative to installing all kernel headers to make wireguard run
I'm facing the same problem as described in Can't load wireguard module, i.e.:
sudo modprobe wireguard
modprobe: FATAL: Module wireguard not found in directory /lib/modules/4.15.0
Probably, ...
2
votes
2
answers
1k
views
How to install and configure Wireguard
I use Ubuntu 20.04 and Fluxbox windowmanager.
In my company they have installed Wireguard.
I need your kind assistance to install and configure on my computer, as a Wireguard client.
Thank you very ...
2
votes
1
answer
293
views
How to tunnel all the traffic for one interface through another interface
I have two working interfaces on my ubuntu machine:
tun0 - OpenVPN server with the internal address of: 10.8.0.0/24
wg0 - WireGuard peer interface with the internal address of: 10.7.0.0/24 which is ...
2
votes
1
answer
6k
views
Wireguard client can not connect to internet
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 ...
2
votes
0
answers
358
views
Connect to Postgres via WireGuard
I forwarded the Postgres port for the WireGuard client:
iptables -t nat -A PREROUTING -p tcp -d 186.29.26.175 --dport 5432 -j DNAT --to-destination 10.50.0.4:5432
Please tell me is this the correct ...
2
votes
0
answers
435
views
How to enter secure boot password on remote machine?
I am trying to disable/bypass Secure Boot on Ubuntu Server 18.04 to use Wireguard. Unfortunately, my machine is remote and headless, meaning I cannot access it until the boot-up process is finished. ...
1
vote
2
answers
26k
views
how to remove wireguard
my os is ubuntu 20
i try remove wireguard
sudo apt remove wireguard
sudo apt autoclean && sudo apt autoremove
Package 'wireguard' is not installed, so not removed
0 upgraded, 0 newly ...
1
vote
1
answer
2k
views
Wireguard client and redirect VPN traffic to ETH
I have for project to create a site to site VPN with wireguard and two Raspberry Pi 4
Site A- UniFi UDM PRO - Raspberry Pi WG server ------ Site B UDM PRO Raspberry Pi WG client.
the Pi have only one ...
1
vote
1
answer
327
views
Wireguard service seems to start before network is really online
I am going a little crazy trying to make Wireguard work on Ubuntu Server 23.10 running on a Raspberry-Pi5.
Overall, Wireguard configuration works. I can bring wg0 up and down. But if I reboot the pi, ...
1
vote
1
answer
3k
views
Ubuntu 20.04 Network Manager Wireguard DNS Leak
I added my Peer-Config from Wireguard to Network Manager manually:
[Interface]
Address = 10.13.13.5
PrivateKey = key
ListenPort = 51820
DNS = 10.13.13.1, lan
[Peer]
PublicKey = key
Endpoint = ...
1
vote
1
answer
949
views
Wireguard PPA for 18.04 LTS
Is the Wireguard PPA on launchpad for 18.04 defunct now (October 7th, 2020)? If so, has it been moved or just deprecated.
1
vote
1
answer
2k
views
Wireguard suddenly stopped working
About a week ago I managed to run my own Wireguard based vpn server. Everything was fine until a few days ago when I noticed that clients stopped receiving data. Googling the issue didn't get problem ...
1
vote
1
answer
9k
views
Reset network settings to default (particularly DNS)
I have a remote user who switched from Windows to Ubuntu 22.04 and after installing WireGuard and adding the config we provided him, he's having major DNS issues. It's worth noting we have many Linux ...
1
vote
1
answer
9k
views
How do I port forward from my host to docker container?
I am running netmaker which is a wireguard mesh VPN service on a Docker container, and I need port 9981 to be reachable from the Docker container, so that I can access port 9981 via my Wireguard WAN.
...
1
vote
1
answer
979
views
WireGuard does not work on Ubuntu 20.04
I have generated configuration for wireguard where I manualy added to [Interface] PostUp and PostDown routes, for my interfaces.
Here is my censored configuration which I am running via wg-quick up ...
1
vote
3
answers
16k
views
Purge and Reinstall Kernel and Wireguard
I posted about this at https://ubuntuforums.org/showthread.php?t=2445347 but haven't gotten views.
I was running kernel 5.3.0-1026.28~18.04.1. I had a problem with wireguard and uninstalled it. On ...
1
vote
1
answer
4k
views
Ubuntu WireGuard no handshake
I am trying to set up WireGuard VPN. I have set up the interface and the client. but when I run sudo wg, despite seeing the interface and peer information, data is only sent and not received, so I ...
1
vote
1
answer
179
views
Ubuntu Server, connected to third-party VPN, cannot be accessed by an external client connected via another VPN
Setup
Ubiquiti UDM Pro w/Network 7.4.162
10.2.2.0/24
Server: Ubuntu 20.04 connected to AirPVN
eno2 10.2.2.99/32
eno1 10.2.2.101/32 (enabled temporarily to test if adding a 2nd network connection ...
1
vote
0
answers
910
views
How to allow SSH only from WireGuard and one IP
This is production server and I need to add rules very carefully, I don't sure what is correct rule.
Currently my UFW rules allow SSH connection from any IP and from WireGuard, also my own IP (YYY.YYY....
1
vote
0
answers
421
views
Wireguard VPN Client GUI issue
I am not getting the Wireguard option at Settings > Network > VPN > addnetwork(+). Only PPTP and OpenVPN is visible. How can I add the wireguard option there? Screenshot attached enter image ...
1
vote
1
answer
261
views
Can’t run apt update after installing and setting up wireguard
As mentioned in the title, after installing and setting up wireguard I can’t update or install anything on my VPS, I’m running Ubuntu Server 20.04 LTS
root@149:~# apt update
Hit:1 http://us.archive....
1
vote
3
answers
3k
views
How can I set up network manager to auto-connect at boot-time to a Wi-Fi and a WireGuard VPN?
How can I set up network manager to auto-connect at boot-time to a Wi-Fi and a WireGuard VPN?
I configured Network Manager with 2 connections: a Wi-Fi and a WireGuard VPN. They both work when I start ...
1
vote
0
answers
883
views
How to use WireGuard LAN only?
I have installed WireGuard (using wg-easy Docker image) on Virtual Machine in cloud. And all works fine, I can create clients and connect.
WireGuard have subnet 10.8.0.0/24, and all connected clients ...
1
vote
2
answers
2k
views
What is safer: Wireguard on Router or on Server behind Router
I am currently setting up my home server and I was wondering if there are any advantages/disadvantages to either of these approaches:
Wireguard on Router
Server behind Router
Does it even matter at ...
1
vote
1
answer
3k
views
VPN/WIreguard forward traffic internally as well as externally
This may be more of a Linux firewall question, but the context is the Wireguard VPN setup on Ubuntu. Note, I'm barely getting acquainted with a lot of this stuff.
I have Wireguard up and running on ...
1
vote
0
answers
3k
views
Cannot modprobe wireguard on Ubuntu 20.04
Update: This seems to be a problem with my hoster (1blu). Loading the module works perfectly fine on my local computer and on my other server (a different hoster).
I cannot make wireguard work on my ...
1
vote
0
answers
505
views
Wireguard fails to build kernel module
Installed Wireguard on Ubuntu 18.04.5
Kernel is:
uname -r
4.15.0
When I checked
# dkms status
wireguard, 1.0.20201112: added
Trying to build Wireguard:
dkms build wireguard/1.0.20200506
Gave the ...
1
vote
0
answers
2k
views
How can I debug what could be wrong on a Wireguard connection?
I use Wireguard to make a LAN VPN connection to my server... I managed to configure the server and my client properly and the VPN works fine on most internet networks that I access with my computer. ...