Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    [Solved] How to let Wireguard Client access pfSense DNS Resolver?

    WireGuard
    1
    2
    723
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      testcb00
      last edited by testcb00

      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?

      1 Reply Last reply Reply Quote 0
      • T
        testcb00
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.