Questions tagged [wireguard]

257 questions
0
votes
1 answer

How do I configure a Wireguard Interface to connect to a remote peer through a specific network interface?

Suppose I have two servers, gateway which is publicly visible to the internet and appserver which is hidden behind a nat/firewall. Also suppose that each of these two servers has two interfaces connected to entirely separate internet uplinks (see…
0
votes
1 answer

WireGuard allow access to single service on network

I'm running a WireGuard server on my Raspberry Pi using the https://github.com/linuxserver/docker-wireguard image. I want to allow peers to do two things: Connect to a single NAS via SMB Ping the same NAS I've written the following iptables rules…
Lukas Knuth
  • 131
  • 3
0
votes
1 answer

Wireguard iface - icmp6 replys from lo interface

I use wireguard between 2 Debian11 and face a problem: traffic goes in to wireguard interface/ip address but goes out with lo as interface with the right ip address 19:23:50.287492 wig0 In IP6 fd99:1234:beef:cafe:fade::7000 >…
TOOTAi
  • 1
  • 1
0
votes
1 answer

port forwarding from wireguard interface to another host with iptables

I have two servers that I can access one of them via wireguard. I have a service that listen on 4559 port on the second server. how can I port forward to second server via iptables. [laptop] [server1] …
0
votes
0 answers

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 the uplink it works without problem. Is there a…
live2
  • 113
  • 5
0
votes
1 answer

Remote mysql server in docker container - access using macvlan and wireguard?

Situation: Several VPS servers around the US connected to my laptop via wireguard mesh network. For wireguard mesh network Im using tool called innernet (https://github.com/tonarino/innernet). So basically its like my laptop and vps servers are on…
Dannyboy
  • 133
  • 4
0
votes
0 answers

Access container's port from on eIP

I have three servers that are in same network via WireGuard. Their IPs are: 10.10.10.1 10.10.10.2 10.10.10.3 I have a docker container on 10.10.10.1 that give me service on port 8080/tcp. I want 10.10.10.2 to be allowed connect to it but not…
0
votes
1 answer

Wireguard Site2Site with mobile office

I've to networks connected with Wireguard. Lan1: 10.240.0.0/24 via 10.100.1.1/32 on public static ip A.B.C.D/32 Lan2: 192.168.0.0/24 via 10.100.1.6/32 on dynamic ip from provider The 10.240.0.0 net is a wireguard net (wg0) over multiple…
TRW
  • 438
  • 3
  • 14
0
votes
0 answers

WireGuard Chain Tunnel

I'm trying to build a chain WireGuard Tunnel. Right now testing, but I'm stuck. I have two WireGuard servers, 1st one is in India 2nd one is in Singapore. Here is what I'm trying. Client < 10.26.26.0/24 > India < 10.26.27.0/24 > Singapore IN Tunnel…
Aman Juman
  • 304
  • 2
  • 6
0
votes
1 answer

ARP Proxy second IP of VPS to route it over Wireguard

I have set up an ARP Proxy on my VPS. With this Setup, I can route incoming traffic on the second IP of my VPS over WireGuard. This should allow my Raspberry Pi at home to use the second Public IP. I got this kind of working. Incoming Pings are…
quylur
  • 1
  • 1
0
votes
1 answer

WireGuard Port-forwarding from Client in the Host

i'm trying to connect a port from a wireguard client to the host network of the server. I tried to do it with IPtables but I always get the reply of "unreachable" It seems that my configuration could be the problem? Thanks! TEST…
0
votes
0 answers

IPtables port forwarding to host machine IP

In an LXC container I have Wireguard installed and the client connects normally and I see the port and the information, but when I try to curl to localhost (127.0.0.1) or to the local ip (192.168.1.180) it doesn't connect. 192.168.1.180 (Host…
0
votes
1 answer

Wireguard + Split Tunnel + Two Peers -- Handshake failure with second peer because of private key

I've setup two wireguard peer servers and can connect sucessfully to each one independetly. But when I try to connect to two peers at same time and split tunnels, It does fails to hand shake with second server. I think thats because two peers…
user3411911
  • 11
  • 1
  • 5
0
votes
1 answer

Firewalld Forwarding Functionality with Wireguard

I have asked before how to forward ports on a VPS running a wireguard service with ufw and iptables as the management. I had to do this: (56000 is a random port I chose) (10.66.66.2 is the internal ip of wireguard) ufw route allow proto tcp to…
Asmodean
  • 59
  • 1
  • 1
  • 6
0
votes
1 answer

Is it possible to route data between 2 wireguard devices on the same machine?

I want to find out how much overhead wireguard creates on my machine in terms of latency. However, my server is remote, so I would like to test it solely on the machine to avoid measuring the whole network latency. So for measuring the latency, I…