December 5, 2025Dec 5 Hello, I need some help configuring my network so I can use my local dns and reverse proxy while I'm connected to my home network with wireguard.When I'm directly connected to my home network everything works fine, but when I try to use my dns while being connected with wireguard it fails.In this case I'm unable to reach any website at all and can only reach my docker containers using ip + port.My current setup:Router: 192.168.2.1Unraid: 192.168.2.100DNS: 192.168.2.102 - Dnsmasq, br0 docker network; listening on port 53 and points to 192.168.100 (reverse proxy)R-Proxy: 192.168.100 - Caddy, bridge docker network; listening on port 80 and 443 (I moved the default unraid GUI ports)Unraid built-in wireguard enabled. Forwarding in router for udp 51820 enabledDomain at cloudflare and api token for dns challenge for certificatesDnsmasq config (Removed real domain)domain-neededbogus-priv# Router as upstream dns serverserver=192.168.2.1address=/app1.example.com/192.168.2.100address=/app2.example.com/192.168.2.100address=/app3.example.com/192.168.2.100Caddy config (Removed real domain){ acme_dns cloudflare {env.CLOUDFLARE_API_TOKEN}}app1.example.com { reverse_proxy 192.168.2.100:8085}app2.example.com { reverse_proxy 192.168.2.100:8086}app3.example.com { reverse_proxy 192.168.2.100:8087}Wireguard configDocker container This works well when I'm directly connected. If I set my dns server on windows to 192.168.2.102 (dnsmasq container) I get forwarded from app1.example.com to 192.168.2.100:8085Using a address that does not match will point me to my router dns (192.168.2.1).Now when connected to my home network through wireguard it does not work anymore. My guess is that the traffic does not find its way back to me.I'm not sure if this is a problem with me using bridge + br0 docker network, if it's the NAT setting in wireguard or anything else.When dnsmasq is configured as dns while I'm connected I can no longer reach any website and I get no response from app1.example.com I can only reach my internal containers by using IP + Port (f.e. 192.168.2.100:8085)Any help is appreciated.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.