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.

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

Selfhost VPN dosn't work Properly

I have a problem with my selfhosted Wireguard-VPN. The Problem beginns at the point were i dont know how to goole it. I would tell you my story and hope to get some net ideas. So i wanted to try ...
user avatar
0 votes
1 answer
70 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. ...
user avatar
0 votes
0 answers
55 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 ...
user avatar
0 votes
0 answers
10 views

how to interact with internal service of server with wiregaurd?

i have server which i installed some services like : sentry and Redis-insight. i wanted to use and see this services in my server only through WireGuard VPN and anyone without WireGuard config don't ...
user avatar
1 vote
0 answers
989 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 ...
user avatar
0 votes
1 answer
99 views

Wireguard on Ubuntu and ios client

I setup Wireguard on a Linode server using Ubuntu. That seems all fine. However, when I use the instructions to create a QR code for my iOS client, and I connect I don't show my server ip in whatsmyip ...
user avatar
  • 115
2 votes
2 answers
1k 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 ...
user avatar
  • 61.7k
1 vote
1 answer
555 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 ...
user avatar
0 votes
1 answer
151 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 ...
user avatar
0 votes
1 answer
78 views

What is safer: Wireguard on Router or on Server behind Router

Iam currently setting up my homeserver and I was wondering if there are any advantages/disadvantes to either approach. Does it even matter at all? Cheers
user avatar
  • 3
0 votes
0 answers
118 views

Forward Wireguard traffic to ETH1

Forward Wireguard traffic to ETH1 I setup a wireguard server with AWS, setup the wireguard client with a raspberry PI. Now I need to redirect the WG traffic (wg0) to eth1 -- my goal is to get a IP ...
user avatar
  • 165
0 votes
1 answer
521 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 = ...
user avatar
0 votes
0 answers
28 views

Wireguard Ubuntu Server Virtualmin FirewallD Connectivity

Does anyone know of any Ubunut Server 20.04 and/or Virtualmin related aspects that can interfere / block a wireguard connection? Problem: All settings verified as correct. Client just can not connect....
user avatar
1 vote
1 answer
573 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 ...
user avatar
  • 165
0 votes
0 answers
372 views

Wireguard handshake

I have 3 Ubuntu servers.All of them are running 21.10. (Linux Nas1 5.13.0-1016-raspi #18-Ubuntu SMP PREEMPT Thu Jan 20 08:53:01 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux) One is the wireguard server ...
user avatar
0 votes
0 answers
13 views

How do I upgrade the version of wireguard that comes with Ubuntu? [duplicate]

I have Ubuntu 21.10 server running and am not sure how to upgrade wireguard to the latest version. apt list -installed shows 1.0.20210424-1ubuntu1 According to the wireguard site, the latest is: ...
user avatar
  • 101
0 votes
0 answers
48 views

iptables on Ubuntu-server with Wireguard client

I have an older "HP Optiplex 3020" with 8GB memory that I use as an "Internet router". I have installed Ubuntu Server 20.04.3 and with Webmin DHCP-server DNS-server Postfix ...
user avatar
0 votes
1 answer
20 views

command subsitution doesn't work when issued from ssh

I have an Ubuntu vps to which I connect from my laptop that also runs Ubuntu. When I ssh root@server to my server I can successfully run the following command: root@server:~# wg set wg0 peer $(cat /...
user avatar
  • 15
0 votes
0 answers
78 views

Wireguard with Ubuntu 20.04.3 LTS

so I have a storage server that's running Ubuntu 20.04 and I'm using cockpit as a web interface. I need access to that server from another location so I have installed Wireguard VPN. Problem is that I ...
user avatar
  • 1
1 vote
1 answer
710 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 ...
user avatar
  • 13
0 votes
0 answers
95 views

Wireguard on Ubuntu/Digital Ocean - ping server wg0 address

I have set up wireguard on ubuntu 20.04.3 on a Digital Ocean droplet. I have added a client on an android phone. As regards traffic through and out to the internet, all looks well, it was a clean ...
user avatar
  • 13
1 vote
1 answer
2k 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 ...
user avatar
0 votes
0 answers
51 views

Can't access multiple endpoints with apt update or wireguard, but can use netcat to communicate with them [duplicate]

I'm having an issue where my Ubuntu device is unable to connect with multiple endpoints when I try to sudo apt update it. The device is a Jetson Nano Here's my output when running sudo apt update: Ign:...
user avatar
  • 101
0 votes
0 answers
369 views

How do I create a VPN kill switch for PrivateInternetAccess and Wireguard in ufw or iptables?

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 ...
user avatar
0 votes
0 answers
643 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 [#] ...
user avatar
0 votes
1 answer
39 views

Connect laptop to home network using wifi-hotspot on iPhone

Looking for some guidance/thoughts here. I'm going on vacation and will be bringing my laptop which runs 21.04. I use wireguard on my iPhone to connect to my home network whenever I need to access ...
user avatar
0 votes
0 answers
34 views

wireguard implementation with 3 servers for ping time

i wanna get fastest ping time via wireguard for gaming in iran cause of filtering. i see some implmenetation that they have 3 wireguard servers, two of them are outside of your iran and 1 (as ...
user avatar
0 votes
0 answers
210 views

UFW Port Forwarding w/ Wireguard

I forgot where and how I came up with these rules, and I'm trying to clean them up. I'm trying to forward ports 24454, 24455, 4000 and 25567 in on MYSERVER to 10.5.0.3. I'm also trying to forward port ...
user avatar
  • 325
0 votes
0 answers
563 views

Wireguard, handshake working but no internet access

So I have deployed a wireguard container and everything seems to be working even the handshake between the server and my windows 10 client. But, I have no internet connection when using the VPN. I am ...
user avatar
  • 1
0 votes
0 answers
357 views

Wireguard does not install on ubuntu 18.04.5

I have seen there are many issues with installing wireguard on Ubuntu Server 18.04.5 LTS (and other versions), and I have tried several offered solutions, but the issue stays the same. I did update ...
user avatar
  • 1
0 votes
0 answers
88 views

Wireguard not reconnect after network cable reconnected

I am currently testing with my wireguard ubuntu setup. But I have a problem with the vpn connection it is not reestablished after unplugging and plugging the network cable. If i unplug the switch from ...
user avatar
  • 105
0 votes
0 answers
286 views

Wireguard no internet access after connection to server

I have set up a WG server on an AWS EC2 Instances that has been working well so far. About 10 devices are connected to this server as peers and are able to communicate with one another and to the ...
user avatar
3 votes
1 answer
6k 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 ...
user avatar
0 votes
0 answers
55 views

Wireguard not forwarding wg0 traffic when host connected on wireless and wired interface

I'm currently running Wireguard on Ubuntu 20.04 (host) and have my wg0 interface forwarding traffic to my wireless interface wlp0s20f3 just fine. However I noticed that when the Ethernet cable is ...
user avatar
  • 1
0 votes
0 answers
40 views

Failed to start sshd after vpn service

I setup sshd to listen on vpn address and on next restart, ssh failed to start due to the required ip address not available on boot. So i add wg-quick@wg1.service, network.target, network-online....
user avatar
1 vote
0 answers
958 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 ...
user avatar
0 votes
1 answer
98 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 ...
user avatar
0 votes
0 answers
39 views

Why is WireGuard not in main?

WireGuard is very, very popular and for good reason. Still, Ubuntu keeps it in universe and doesn't seem to have any interest in placing it front and center. Why? It's so strange, it's probably the ...
user avatar
0 votes
0 answers
1k 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/...
user avatar
0 votes
1 answer
253 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 ...
user avatar
  • 101
0 votes
0 answers
891 views

Wireguard : ping from server to client doesn't work without adding endpoint in the peer section. What could be going wrong?

I have a wireguard configuration; client is a server on digital ocean and server is somewhere else. Not in digital ocean. I have the below wireguard config for server and client: Server side: [...
user avatar
  • 1
1 vote
0 answers
179 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 ...
user avatar
  • 11
1 vote
1 answer
512 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 ...
user avatar
  • 111
0 votes
1 answer
1k 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 "$...
user avatar
  • 177
2 votes
0 answers
181 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 ...
user avatar
0 votes
1 answer
440 views

What are the steps needed to set up wireguard on Ubuntu 18.04

I have installed wireguard on a fresh install of Ubuntu 18.04 but I am unsure of what needs to be done after the install
user avatar
1 vote
0 answers
724 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. ...
user avatar
  • 383
5 votes
1 answer
671 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 ...
user avatar
  • 482
1 vote
2 answers
1k 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, ...
user avatar
  • 21
1 vote
0 answers
4k 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 ...
user avatar