Configuring a WireGuard VPN on a Raspberry Pi
Configuring a WireGuard VPN on a Raspberry Pi
Hi, I've been struggling to configure WireGuard VPN on my Raspberry Pi for a while now. My goal is to connect to my Samba server, which is also running on the same device, but I'm still unable to establish a connection through the VPN. I understand the Samba service is working perfectly. I followed the WireGuard setup instructions and kept all default options except changing the DNS provider to 'Google'—I wasn't sure what that meant. After selecting DNS because my IP isn't static, I entered my hostname from NO-IP.com, which should point to my public address. I went through the remaining settings and chose the default values. Once I set up my account and scanned the QR code on my phone, it worked fine. However, when trying to browse in a browser, nothing loads. I've already forwarded the port on my router and logged into my NO-IP.com account from there. My Raspberry Pi now has a fixed IP assigned by my router, but this process has been really confusing. If you have any screenshots or more details, please share.
Here’s the reference you asked for: the guide you were using is available online.
The command should display the configuration details without revealing any private keys.
PrivateKey remains unchanged. Address stays set to 10.215.132.1. MTU is 1420. ListenPort is 51820. PostUp and PostDown commands are configured as specified. PresharedKey and AllowedIPs values are left untouched unless you wish to modify them.
Verify the IP is correct and ensure the WireGuard service is operational using systemctl status [email protected]. If it’s active and running, a firewall might be preventing access.
Check if the iptables service is active to ensure it isn't interfering.