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

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

Scheduled Pinned Locked Moved WireGuard
2 Posts 1 Posters 732 Views
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 Nov 18, 2022, 9:13 AM Nov 18, 2022, 8:56 AM

    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 Nov 18, 2022, 9:13 AM

      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
      1 out of 2
      • First post
        1/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received