I’m trying to setup Wireguard to use as a VPN on my server using this guide. I currently run Pihole on the same machine.
LAN | 192.168.1.* |
WG | 10.14.0.* |
WG Server Addr | 10.14.0.1 |
WG Client Addr | 10.14.0.10 |
The handshake succeeds, and I can even ping IP addresses. However, it doesn’t receive DNS responses. I checked in Wireshark and see the following:
WAN Client IP -> | Server IP | [Wireguard] |
WG Client IP -> | Server IP | [DNS Request] |
Server IP -> | Server IP | [DNS Request] |
Server IP -> | Server IP | [DNS Response] |
WG Server Addr -> | WG Client Addr | [DNS Response] |
WG Client Addr -> | WG Server Addr | [ICMP Port unreachable] |
I’m admittedly pretty inexperienced when it comes to routing, but I’ve been at this for days with no success. Any help would be greatly appreciated.
lemming741@lemmy.world 1 year ago
Your DNS might be configured to only answer local (from 192 addresses) requests. Did you enable IP masquerading?
ShitpostCentral@lemmy.world 1 year ago
Yes. And I set Pi-hole to respond to any interface. Plus, I can see the response being sent in Wireshark. It only gets blocked inside the wireguard interface.
lemming741@lemmy.world 1 year ago
Ok so you see your request in the pihole log? Which address does it show?