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

    Unbound slows when VPN gateway interface activated (XPOST Routing and Multi WAN)

    Scheduled Pinned Locked Moved DHCP and DNS
    6 Posts 3 Posters 1.9k 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.
    • S
      spieden
      last edited by

      Hello,

      I have both a WAN and VPN gateway on my pfSense host. When I activate the interface for the VPN gateway DNS queries slow to a crawl. I expect this is because unbound starts routing requests over it, which I have tried everything I can think of to prevent:




      Despite all of this if I enable the VPN interface DNS crawls. Anything else I can check?

      Thanks!

      1 Reply Last reply Reply Quote 0
      • RonpfSR
        RonpfS
        last edited by

        Do you need to use the DNS resolver in Forwarding mode?

        Older version of pfSense were using the DNS Forwarder, so you needed to specify DNS Servers in General config. With pfsense 2.2+, the default is the DNS resolver (unbound).

        Leave the DNS Server lines blank, disable DNS Resolver Forwarding mode, then unbound will contact the root DNS servers and provide service to your FW and LAN.

        2.4.5-RELEASE-p1 (amd64)
        Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
        Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

        1 Reply Last reply Reply Quote 0
        • S
          spieden
          last edited by

          Hey thanks for your reply.

          Yes I have the resolver in forwarding mode so I can more easily try to control its traffic. If I had to try and route all the origin servers on the net a specific way it's be impossible, but in forwarding mode I can set the static routes you see above.

          However, I'm not getting the expected behavior as you can see!

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by

            "If I had to try and route all the origin servers on the net a specific way it's be impossible"

            What like out your vpn??  Click done.. Policy route, dest port 53 tcp/udp use vpn gateway..

            But why would you even need to do that, just set the resolve to only use your vpn interface for queries, etc.

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            1 Reply Last reply Reply Quote 0
            • S
              spieden
              last edited by

              Hey thanks for your reply.

              I do have only the WAN interface selected for outbound DNS queries in the DNS Resolver config as you can see. Despite this enabling the VPN interface slows queries down as I mentioned. Were you referring to a different setting?

              1 Reply Last reply Reply Quote 0
              • S
                spieden
                last edited by

                I see your point about the route – I'll try that. =)

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