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

    PFSense blocking DNS

    Scheduled Pinned Locked Moved Firewalling
    4 Posts 4 Posters 4.4k 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.
    • B Offline
      Bugs78
      last edited by

      Hi all,

      i`m building a pfsense firewall as a project and for some reason it is blocking DNS requests so the other machine on the network can't access the internet.

      I have created a rule to allow it in both the rules section and in the Floating section and turned logging on in both. and when trying to access the internet I get page cannot be found, and no entries in the system log. I have set pfsense to be the gateway on my test machine but, i`m at a loss where to go from here

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

        The default rule is ANY ANY so dns would be allowed, so unless you changed changed the default rule on the lan interface or brought up a new interface that does not get the deault any any rule your firewall rules would not be the issue.

        Normally out of the box dhcp clients will point to pfsense for dns, and dns would be resolving.  Where are you pointing your clients for dns?  Why not just let pfsense resolve and have your clients use it.

        Can pfsense resolve dns names?  Are you running forwarder or resolver?  Go to the diag, dns lookup - what happens when you try and lookup say www.pfsense.org?  Post your results.

        dnslookup.png
        dnslookup.png_thumb

        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 25.07.1 | Lab VMs 2.8, 25.07.1

        1 Reply Last reply Reply Quote 0
        • T Offline
          tangocr
          last edited by

          The easy way is create a rule in Firewall in LAN network , source any , destination any and select port 53 , after  check the order in the rules because if you have a rule block any any up that dns pass dont work the easy way check is position the rule to number 1

          1 Reply Last reply Reply Quote 0
          • M Offline
            mrkhan.83
            last edited by

            Hi

            I am facing the same issue. My scenario is  I want to block facebook during OFFICE hours & Allow all users to access everything during LUNCH TIME.

            I was able to block (as above) the users but it seems when I wanted the to PASS packets with Scheduled = LUNCH TIME . it still blocks.
            Although I have kept the PASS (ALLOW LUNCH TIME ) RULE one step up to the Blocked Rule.

            #Firewall Screenshot refers to the arrangement of my Rule
            #Both Blocked and Enabled Rule in pdf.
            #2.3.1-RELEASE-p1 (amd64)
            built on Wed May 25 14:53:06 CDT 2016
            FreeBSD 10.3-RELEASE-p3

            Firewall_Screenshot1.jpg
            Firewall_Screenshot1.jpg_thumb
            pdf.zip

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