This is an automated archive.
The original was posted on /r/wireguard by /u/Imaginary_Travel_714 on 2024-01-11 22:31:29+00:00.
Hi all,
I want to connect to my home network through WireGuard, but I don't have a public IP. Therefore, I have a Raspberry Pi (which also hosts Home Assistant) connected as a client to a VPS with a public IP. I've also redirected the Home Assistant webpage using NGINX. I've now installed a "server" WireGuard on my Raspberry Pi and redirected all incoming traffic on port 51840/udp (not the usual one to avoid conflicts with the existing server on the VPS) with rinetd to the IP of the Raspberry Pi on the VPS. I've allowed incoming traffic on port 51840/udp on UFW.
When I connect to the Raspberry Pi server using the VPS IP as the endpoint and port 51840, I see outgoing traffic, but I receive 0B. Any idea why?
I've tried to connect locally and on the VPS to the WireGuard server on the Raspberry Pi, and I get traffic in both directions. So, I'm thinking maybe the firewall on the VPS (UFW) is blocking the outgoing port on the Raspberry Pi? In UFW, I have outgoing traffic allowed...