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

    PFSense Query refused

    Scheduled Pinned Locked Moved DHCP and DNS
    18 Posts 5 Posters 8.6k 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
      grantcurell @Gertjan
      last edited by

      @gertjan Unfortunately as mentioned in the OP neither the hostname or the IP resolve.

      To answer the question of why 140, because in this case it isn't serving as the gateway.

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @grantcurell
        last edited by

        @grantcurell said in PFSense Query refused:

        or the IP resolve

        I edited my post above.
        If 192.168.1.125 is a device on your LAN that is known, for example, because it used DHCP to obtain a IP, and you are using one of these two :

        d061f017-258d-4506-82b8-dc0bdd833a3d-image.png

        then the hostname will be known.
        And returned.

        If the device 192.168.1.125 exists on your network, and you use a static IP setup, then the resolver wouldn't know about it.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

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

          @gertjan said in PFSense Query refused:

          nslookup will ask for the hostname when an IP is givnn

          Huh?? Nslookup will do the PTR for that IP..

          set debug and see for yourself.

          PTR.png

          If your getting refused back, then yes that screams to ACL as problem.

          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

          GertjanG G 2 Replies Last reply Reply Quote 0
          • GertjanG
            Gertjan @johnpoz
            last edited by

            @johnpoz : I just re discovered that, one hour ago.
            I'm more a dig man.

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

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

              Yeah same here - not sure why anyone would use nslookup ;)

              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
              • G
                grantcurell @johnpoz
                last edited by

                @johnpoz

                No ACLs set unless there is one out of the box. I was honest in the OP, I installed from ISO and the only changes made were the ones mentioned.

                johnpozJ GertjanG 2 Replies Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator @grantcurell
                  last edited by

                  @grantcurell

                  Where are you doing the query from? A device on the pfsense lan? Or some downstream network, a vpn connection?

                  Out of the box yes ACLs are set for the networks directly attached to pfsense. If its a downstream network, or a vpn tunnel IP then no you would not be able to query unbound on pfsense.

                  Pfsense IP is what? 192.168.1.140, what is your client IP that your running nslookup from?

                  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

                  G 1 Reply Last reply Reply Quote 0
                  • G
                    grantcurell @johnpoz
                    last edited by

                    @johnpoz client is 192.168.1.6, same network, directly connected, only thing between them is a switch.

                    This is part of why I was so baffled by the problem. I've set this up a million times before, on this network, with that switch, with this pfsense config.

                    Worth mentioning when I used diagnostics to have PFSense query itself it worked fine

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

                      @grantcurell

                      Did you turn off the auto ACLs?

                      advanced.png

                      Under the resolver / advanced settings?

                      Do a query for pfsense name.. does that work?

                      pfsense.png

                      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

                      G 1 Reply Last reply Reply Quote 0
                      • G
                        grantcurell @johnpoz
                        last edited by

                        @johnpoz I'll check that out! Thanks man!

                        1 Reply Last reply Reply Quote 0
                        • GertjanG
                          Gertjan @grantcurell
                          last edited by

                          @grantcurell said in PFSense Query refused:

                          I installed from ISO and the only changes made were the ones mentioned

                          and then you set up a network where :

                          @grantcurell said in PFSense Query refused:

                          in this case it isn't serving as the gateway

                          which means you left default (networking) settings.
                          That's perfectly fine.
                          And opens the door of all kind of situations.

                          Please understand : install pfSense from scratch.
                          Hook up the WAN.
                          Hook up a PC on LAN.
                          It works.
                          So, tell us what changed, and we'll tell you what to do or undo.

                          No "help me" PM's please. Use the forum, the community will thank you.
                          Edit : and where are the logs ??

                          1 Reply Last reply Reply Quote 0
                          • I Irk 0 referenced this topic on
                          • M
                            mbrownnyc @bingo600
                            last edited by

                            @bingo600 said in PFSense Query refused:

                            @grantcurell

                            Are you using unbound ?

                            I had to add my openvpn ranges to the access-lists section as allow , in order to be able to resolve DNS from those.

                            Seems like unbound default allows known nets (assigned to interfaces) , and refuses qureries from all other nets.

                            Add "unknown nets here" (Unbound settings)

                            e25c09a1-2795-48fb-970c-21def0b7224a-image.png

                            /Bingo

                            Worth noting this occured with a VLAN interface srced traffic... It might be because I need to bounce the unbound daemon, or whatever... adding the ACL allowed me to src traffic from a macvlan hosted docker container bound to a subint on a synology NAS. The tagged traffic was arriving, and I was seeing refused responses from pfsense at the LAN interface of the pfsense. Adding the subnet for the VLAN interface resolved the issue. Thank you!

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