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

    DNS traffic using vpn tunnel in 2.2

    Scheduled Pinned Locked Moved DHCP and DNS
    6 Posts 2 Posters 1.1k 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.
    • G
      gjaltemba
      last edited by

      My network is a typical lan connected windows domain. pfsense is used for internet, openvpn client and public dns. windows dns server has pfsense as forwarder. In 2.1.3, dns traffic used wan connection but 2.2 uses vpn tunnel. The vpn route seems to be less stable and dns server becomes non responsive every couple of days. Restart is not simple. I have tried restarting services, clients and servers. Not sure what gets things running again.

      In 2.2, how do I go back to using wan connection for dns traffic?

      1 Reply Last reply Reply Quote 0
      • C
        cmb
        last edited by

        Where does the DNS server reside? The connectivity to it will be determined by the system routing table, sounds like you have a route out via the VPN to the DNS server IP.

        1 Reply Last reply Reply Quote 0
        • G
          gjaltemba
          last edited by

          My local dns server is running on a windows domain controller. It also run a dhcp server. All computers use pfsense as the gateway. It is the pfsense firewall rule on the lan interface that routes tcp traffic to the vpn client.

          In 2.2, if I use pfsense as forwarder on my local dns server then the vpn is used. If I use a public dns server as forwarder on my local dns server then wan is used. I could go this way to make it work but I would like to keep things the way they were in 2.1.3

          Thank you for your help in trouble shooting my dns problems in 2.2

          1 Reply Last reply Reply Quote 0
          • C
            cmb
            last edited by

            So you're saying you want the DNS requests initiated by the Windows server to use the Internet, not the VPN?

            In that case, you'll need to add a firewall rule on LAN, specifying the server's IP as the source, leaving gateway set to default, so it goes out via WAN. That wouldn't have changed from previous versions.

            1 Reply Last reply Reply Quote 0
            • G
              gjaltemba
              last edited by

              @cmb:

              So you're saying you want the DNS requests initiated by the Windows server to use the Internet, not the VPN?

              In fact, it is the pfsense unbound dns resolver service behaviour that seems to have changed in 2.2

              1 Reply Last reply Reply Quote 0
              • C
                cmb
                last edited by

                If you switched from dnsmasq to Unbound after upgrade, it can have different behavior depending on what you're doing and what you have setup vs. what was in dnsmasq. Are you using forwarder mode in Unbound?

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