Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
109 views

How can I make Ubuntu route all traffic through my Wireguard VPN?

I have set up a working Wireguard VPN server remotely. I have confirmed that this VPN server works, as my phone can connect flawlessly with it. In Ubuntu 23.10, I have imported my *.conf file as ...
Exeleration-G's user avatar
0 votes
0 answers
38 views

How is this possible that one of the peers can't access the internet while the other one can

With the help of an extensive number of guides, I managed to create a working VPN server and even added one client, however, when adding a second client, a problem arose, the configurations seemed to ...
Leteers's user avatar
0 votes
1 answer
172 views

Remotely access local services through wireguard tunnel from mobile

Use-case: I want to reach services hosted at home through vpn on-the-go from mobile (and I don't want to tunnel them 1-by-1). I have the below topology: I have setup wireguard based on this gist: ...
spinpwr's user avatar
  • 121
0 votes
0 answers
461 views

How to keep WireGuard active and connected through suspends?

On a Windows 10 machine I have an always-on WireGuard (0.5.3) VPN connection. Whenever it suspends, the connection is active right after the computer comes back up. How do I achieve the same effect on ...
Damn Terminal's user avatar
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 ...
James's user avatar
  • 11
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....
John14's user avatar
  • 13
0 votes
1 answer
520 views

How to bypass wireguard vpn except some ports

I have some ubuntu hosts that are connected to a wireguard vpn. Each of them has a openssh server on port 22 and another service that serve in tcp on port 19999. Is there a way that all the traffic ...
Ripper346's user avatar
  • 101
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 ...
Deepak Maretha's user avatar
0 votes
0 answers
117 views

Wireguard failure and unattended-upgrades: plausible explanation?

A Linode hosted Ubuntu 18.04 LTS server acts as a Wireguard VPN. $ uname -r 6.0.10-x86_64-ABCNNN Installation using https://github.com/angristan/wireguard-install is painless and works perfectly with ...
J Evans's user avatar
  • 151
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 ...
UbuntuAskz's user avatar
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 ...
vbee's user avatar
  • 11
0 votes
0 answers
819 views

No internet access with Wireguard

I'm trying to configure VPN with wireguard. My server config: [Interface] PrivateKey = <key> Address = 10.0.0.1/24 ListenPort = 51830 PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -t ...
Константин Комиссаров's user avatar
0 votes
3 answers
2k views

Problem with WireGuard/tun module after updating Kubuntu to 22.10

After updating my kubuntu (after that I rebooted my device) to 22.10 from 22.04 I am unable to run the wire guard: sudo wg-quick up wg0 [#] ip link add wg0 type wireguard [#] wg setconf wg0 /dev/fd/63 ...
kwit's user avatar
  • 1
0 votes
0 answers
4k views

Configure Wireguard to access LAN but don't route internet traffic through VPN

Currently I have access to LAN through wireguard and internet. How to configure wg0 to have access to LAN but don't route internet traffic through VPN ? My current config (wg0): Address = 10.0.0.1/32 ...
Jason The Dynamite's user avatar
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 ...
kowacicet's user avatar
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. ...
Paul Barnett's user avatar
0 votes
0 answers
1k views

Help with correct routing for Tailscale/Wireguard - really frustrated!

Running two VPS instances. One in Auckland, and an Oracle Cloud instance in Sydney. Auckland acts as a wireguard server - using PiVPN's build there, and I connect to the Sydney instance via the ...
Paul Barnett's user avatar
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 ...
heynnema's user avatar
  • 71.3k
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 ...
Joseph Huber's user avatar
0 votes
1 answer
3k views

Connected to WireGuard but don't have access to internet

I try to install WireGuard on my Ubuntu 20.04 LTS server with this config: [Interface] Address = 10.66.66.1/24,fd42:42:42::1/64 ListenPort = 64129 PrivateKey = xxxxx PostUp = iptables -A FORWARD -i ...
reza makhdomi's user avatar
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 ...
FMP's user avatar
  • 13
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 = ...
steelmann's user avatar
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 ...
Kevin's user avatar
  • 165
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 ...
AlwaysLearningNewStuff's user avatar
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 ...
Jason The Dynamite's user avatar
0 votes
1 answer
150 views

Wiregurd connected but no internet access

I was using a virtual machine for work and Wireguard was working fine on it but when I tried to connect with the same config to my laptop it's connecting with no errors but no internet access note: I ...
HaSan Alkholy's user avatar
0 votes
0 answers
2k views

Wireguard no internet on ubuntu but works fine for the very same config on my android phone and on windows 10

I'm using ubuntu 20.04 for both the server and the client and have used an EC2 AWS instance for the server. I've also used this installer for installing wireguard on AWS: https://github.com/pprometey/...
Ahmed Hassan-albanna's user avatar
0 votes
1 answer
476 views

No traffic flows through Wireguard on Ubuntu 20.04.2

I've been using Wireguard as a VPN on my RPi 4B for a while now, and this week I noticed it ain't working anymore. By not working I mean it connects but no traffic flows through. I reinstalled pivpn a ...
lucassp's user avatar
  • 101
0 votes
1 answer
2k views

Wireguard only works if I use `wg-quick`

I am using ubuntu 18.04 and I am trying to use wireguard with the NetworkManager, but does not recognize wireguard I have tried the following command nmcli connection import type wireguard file "$...
user60108's user avatar
  • 297
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 ...
user13824551's user avatar
1 vote
0 answers
6k views

Wireguard client connected to internet but unable to ping client from server

I have a Wireguard server with two clients (mobile and a laptop) connected to the server. I want to be able to route my traffic on specific ports on my wireguard server to the laptop. Configuration ...
thecodeboxed's user avatar
1 vote
0 answers
362 views

Wireguard NAT to eth1

I'm trying to do something that I think should be pretty simple. The goal is to have all traffic from my home network go over a Wireguard VPN. I have 3 devices: ISPs modem/router combo. This should ...
LoveToCode's user avatar
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 ...
kektagen's user avatar
0 votes
0 answers
884 views

Can not open sites using wireguard VPN

I'm trying to setup wireguard VPN in Ubuntu 20.04. I do the following: sudo cp wgIoffeVPN2smirnovdm.conf /etc/wireguard/wg0.conf sudo wg-quick up wg0 [#] ip link add wg0 type wireguard [#] wg setconf ...
Dmitry's user avatar
  • 11
0 votes
1 answer
1k views

Can not resolve domains in wireguard network on xubuntu 20.04

On my Xubuntu 20.04 desktop computer when connected to a wireguard network resolving domain names fails. It works just fine for other clients (Android phone and a Debian10 SBC). The VPN server ...
felix's user avatar
  • 1
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 ...
codeling's user avatar
  • 649
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.
Andor Kiss's user avatar
0 votes
0 answers
847 views

How to set up WireGuard on Ubuntu 20.04 in Docker?

I would like to try WireGuard on my recently upgraded Ubuntu 20.04.1 LTS, preferably in Docker, so there are less things on the main filesystem. DigitalOcean droplet if it matters. Of course there are ...
romeozor's user avatar
  • 101
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 ...
John Baker's user avatar
0 votes
1 answer
205 views

VPN routing does not work

I have a problem setting up wireguard. My problem is packets from anywhere but the wireguard hos is not sent out on the wg0 interface. I run wg0 with 192.168.96.1/24 ip forwarding is enabled. I can ...
povlhp's user avatar
  • 1
1 vote
1 answer
221 views

How to use a VPN-Peer as DNS?

What I am trying to accomplish: I have a WireGuard reverse VPN Setup that does not route my traffic, but lets me connect to my raspberry pi from within the Internet using a public server as "...
randmin's user avatar
  • 211
0 votes
0 answers
395 views

Configuring wireguard as a clinet using pre-existing conf file

I'm a Linux/ubuntu newbie. searching web and doing the instructions did not solve my problem. i used wireguard in MS windows using pre-existing conf file (which I downloaded from somewhere) and they ...
Arsalan MGR's user avatar
1 vote
0 answers
3k views

Wireguard connects successfully but not internet

I am given two WireGuard config files by the company I work for. I have setup one on my Android phone and it works perfectly and another one on my Ubuntu. It used to work for a day or two; but ...
sepisoad's user avatar
  • 280
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 ...
Martijn Koomen's user avatar
0 votes
1 answer
8k views

Wireguard resets its DNS settings on 20.04

Wireguard resets its DNS settings on restart. I have WG tunnel with following settings: [Interface] Address = 10.8.0.2/32 Address = <public IPv6 ip> DNS = 2001:4860:4860::8888 DNS = 2001:4860:...
Alexander Mudrov's user avatar
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 ...
M. Gamie's user avatar
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'...
feffer's user avatar
  • 41
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 ...
KingCartman's user avatar
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 ...
AivanF.'s user avatar
  • 151
0 votes
0 answers
112 views

How to set iptables rules that won't get pushed down the list

I am trying to setup iptables rules that will allow OpenVPN and Wireguard traffic on two servers. One of the servers also runs Yunohost and the other one, Cloudron. The problem is that my defined ...
uygar's user avatar
  • 1