Questions tagged [wireguard]

352 questions
0
votes
0 answers

Nexthop has invalid gateway when doing IP forwarding and address translation

So let's say I'm a user in PC1, I have two ubuntu servers in two countries (VPS1 and VPS2) VPS1 is a WireGuard server and VPS2 is a OpenVPN server. I want to do something like this: PC1 ---> VPS1 ---> VPS2 ----> Internet I'm following this…
mgh
  • 101
0
votes
0 answers

Setup vpn server and client on same device wireguard

I am attempting to configure a vpn on my machine without a router or home network (wireles connection). Is it possible to solely utilize one device and configure two peers (client/server) then route all network traffic through that tunnel? I have…
0
votes
0 answers

Linux: Edit Traffic In Transit with NetSED/IPTables

I'm trying to implement the solution to this question to edit packets coming from my server but I'm having trouble getting the IPTables rules correct. I'm using a VPS with an external facing IP to forward traffic to a local server via a wireguard…
DavidM
  • 1
0
votes
1 answer

Disable the automatic adding of routes by DHCP

I have a Rapsberry Pi with PiOS. My idea is to install WireGuard on it and route all traffic through WireGuard. I have set the Allowed IPs to 0.0.0.0/0. I want the Pi to work on different networks and work as soon as I connect it without worrying…
Jonathan
  • 43
  • 6
0
votes
1 answer

ping, but no throughput to server via wireguard from raspberry pi

I have a wireguard setup with a dedicated root server machine acting as the vpn subnet`s server. As clients, I want to connect a lot of raspberry-pi clients (3&4) - all of them having their own internet connection. While using the same skeleton…
Oliver
  • 19
  • 2
0
votes
1 answer

Configure persistent wireguard network interface

I have configured Wireguard VPN on Alpine Linux 3.16.2. Manual server and client configuration works fine. uname -mrs # Linux 5.15.60-0-virt aarch64 ip link add dev wg0 type wireguard ip address add dev wg0 10.0.0.4/8 wg setconf wg0…
0
votes
0 answers

Wireguard no DNS response after connect

I have the following setup: a local DNS server (unbound) listening on 10.10.20.1 a wireguard server on 10.10.0.1/24 a wireguard client on 10.10.0.2/32 with DNS pointed to 10.10.20.1 I can connect to the server and I can see the peer: peer:…
Romeo Mihalcea
  • 522
  • 1
  • 9
  • 27
0
votes
0 answers

Ubuntu 22.04 - pinging from routers to other site in a site to site vpn (wireguard)

Here is my Setup... I have two windows VM's are set at 192.168.51.100 and 192.168.52.100. These two windows machines are able to ping each other and each router. I am unable to ping from the routers to the remote network, say from 192.168.51.1 to…
grigzy28
  • 1
  • 1
0
votes
1 answer

WireGuard full tunnel blocks Internet access

Thanks for even clicking on my question ! So, I have an R-Pi, and I installed WireGuard on it (I am NOT using PiVPN; I tried, but it wasn't working at all). I also have PiHole installed. I have been following the WireGuard guide of the PiHole docs…
Silloky
  • 1
  • 1
  • 4
0
votes
1 answer

Routing between Wireguard and OpenVPN

I have set up Wireguard peer and OpenVPN server on the same machine. Machine has a public IP so other Wireguard peers and OpenVPN clients can connect to it. For Wireguard I am using subnet: 10.10.6.0/24. And for OpenVPN I am using subnet:…
0
votes
1 answer

Wireguard - single server with multiple interfaces

I have one raspberry, and there I have ethernet connection to internet eth0 and I have another wireless connection wlan0 that is also conneted to internet via other router. Is it possible to create wg0 to be wireguard for eth0 (so that clients that…
Bojan Vukasovic
  • 111
  • 1
  • 4
0
votes
1 answer

Access from one network to another through cloud WireGuard server

Please need your help with WireGuard & network configuring. I am trying to get access from Office network to Field network through Oracle Cloud WireGuard server. Please take a look on the picture. I've already tried different kind of settings for…
Sergey
  • 11
  • 3
0
votes
1 answer

Wireguard setup with 2 gateways

My current setup is a Wireguard on ubuntu vm that does ipv4 forwarding and gives peers access to site lans. Now i want to add another Wireguard in a ubuntu that also shares its site lans. How would i integrate it so that users have access to site A…
Dpetrov
  • 121
  • 2
0
votes
0 answers

Is it possible to read less than 4 bytes from TUN device when IFF_NO_PI is not set?

I was reading the implementation of wireguard-go, and found it handles reading less than 4 bytes from the TUN device file when the no packet information flag is not set. I wonder is it possible that this can happen without any error? And how can?…
0
votes
1 answer

Access control rely on nftables, WireGuard and Reverse Path Forwarding only

I have an idea to host a web app that without built-in authentication on my server. And protect it by nftables, WireGuard and Reverse Path Forwarding only. The web server will listen to the server's WireGuard interface address, 10.0.0.1 in this…
Waiho
  • 23
  • 5