[Solved] How to let Wireguard Client access pfSense DNS Resolver?
-
Currently I am testing the function of Wireguard.
I have a NAS behind pfSense which local IP is 192.168.2.20.
It has some Host names share1.pfsense.lan share2.pfsense.lan share3.pfsense.lan in DNS Resolver Host Overrides.
I can access using the host names to connect to different samba shares in Local Network.
However, when I try to use Wireguard to connect to the server, I can only connect to the samba share using IP address. It cannot access the DNS Resolver.
Do anyone have success case on this problem?
-
I find the problem.
In the Wireguard Setting, I need to add the DNS IP in both [Interface]DNS and [Peer]AllowedIPs
Also, I need to add rule to pass the traffic to the Wireguard IP[Interface]
DNS = 10.1.1.1[Peer]
AllowedIPs = 192.168.2.20/32, 10.1.1.1/32