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

    Port 53 (DNS)

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 3 Posters 1.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.
    • TacyonT
      Tacyon
      last edited by Tacyon

      So I'm not yet a "propeller head" when it comes to Firewalls and rules... but I'm getting it sorted out.

      puzzle I've observed .. I have a port alias called Browsing - that has ports 53, 80, 443, 8080 defined. 53 is DNS ... 8.8.8.8 & 1.1.1.1 are DNS servers ...

      So I have a firewall rule setup that Pass protocol TCP/UDP from LAN Subnets to to any port
      Dest any port the alias'd ports 53, 80, 443, 8080. and have disabled the two IPv4&6 default rules ... and browsing works ...

      however ping to 8.8.8.8 or 1.1.1.1 doesn't (I know what you're thinking) but DNS is not working as I can't ping google.com - as it doesn't know it.

      When I disable my "locked down browsing rule and re-enable the IPv4 default rule that is a messy any any any any rule ... it all works again.

      What am I missing?

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

        @Tacyon did you allow just tcp/udp? ping is icmp so no you wouldn't be able to ping 8.8.8.8 or anything because your not allowing icmp.

        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
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          DNS should still work in that situation though. So a client should resolve google.com and try to ping that IP and fail.

          If DNS isn't working your firewall rule is incorrect. Post a screenshot of it.

          1 Reply Last reply Reply Quote 0
          • TacyonT
            Tacyon
            last edited by

            So I surmised that browsing rule that is TCP/UDN and among other ports, 53 (DNS) is present. And while wasn't able to "ping" the IP address of cloudflare or google's DNS server .. the base function should still work (as @stephenw10 stated( and wasn't.

            How does or what is the relationship of the DNS settings in General/DNS Server Settings - shouldn't this allow for DNS to function from the LAN when a rule doesn't pass it either by IP or port (53) ?
            Or does there need to be something else added to be reference by this "local" DNS for the DHCP etc. ?

            I cite this ... "Enter IP addresses to be used by the system for DNS resolution. These are also used for the DHCP service, DNS Forwarder and DNS Resolver when it has DNS Query Forwarding enabled."

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

              @Tacyon said in Port 53 (DNS):

              shouldn't this allow for DNS to function from the LAN when a rule doesn't pass it either by IP or port (53) ?

              Do you have a rule that allows your clients to talk to pfsense IP add on the lan on 53?

              Without actually showing us your rules its really hard to if they are correct or not.. Or what issues they might cause..

              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
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                Yes by default the server set in general settings don't do anything. pfSense resolves directly (Unbound in resolving mode) and clients are passed the local interfaces address to query against that.

                Do you see blocked traffic in the firewall logs? Your rule probably isn't matching as you intended it to.

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