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

    Need help with my VLAN firewall rules to make sure they do what I think they do

    Scheduled Pinned Locked Moved Firewalling
    69 Posts 5 Posters 4.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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator @bingo600
      last edited by johnpoz

      @bingo600 said in Need help with my VLAN firewall rules to make sure they do what I think they do:

      as they now relies on SRV records from a specific DNS server

      huh/what?? That is not how it works..

      Your saying pihole has to talk to a specific NS or it can't update??

      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

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

        @imthenachoman

        Not saying you can not stop something from talking to DNS you don't want it to - my point is redirection of traffic hiding from the client that it not talking to who it thinks it is talking to is not good practice.

        You sure and the F would not like it if your isp did it to you.. While its your network and you can do what you want. It amounts to the pot calling the kettle.

        If you don't want something talking to outside dns, then block it sure.. But redirection is not good idea if you ask me..

        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 1
        • bingo600B
          bingo600 @johnpoz
          last edited by bingo600

          @johnpoz said in Need help with my VLAN firewall rules to make sure they do what I think they do:

          @bingo600 said in Need help with my VLAN firewall rules to make sure they do what I think they do:

          as they now relies on SRV records from a specific DNS server

          huh/what?? That is not how it works..

          Your saying pihole has to talk to a specific NS or it can't update??

          Yup
          https://github.com/pi-hole/pi-hole/issues/3694

          Somehow it won't (in default config) accept my DEB10 as a valid OS , unless i permit access to : ns1.pi-hole.net / 185.136.96.96 (for Update)

          A workaround would be this : PIHOLE_SKIP_OS_CHECK=true

          So DNS is being (mis)Used for lot's of tricks.

          And it is how it works (for pihole update)

          Edit:
          pihole-check Git commmit
          https://github.com/pi-hole/pi-hole/commit/0ff32c3629220f386a45c14d8982aaaf128aa47f

          I didn't dig deeper , as i just did a temporary permit during the update.

          Edit2: Seems to be a TXT not SRV (my bad)

          /Bingo

          If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

          pfSense+ 23.05.1 (ZFS)

          QOTOM-Q355G4 Quad Lan.
          CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
          LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

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

            Yeah I agree with the comments on that - that is a HORRIBLE solution to an issue of some local dns sucking..

            Looks like they are changing it to output info, for those that block dns..

            Since when does MS dns fail to return txt records? I don't see any SRV mentioned in that?

            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

            bingo600B 1 Reply Last reply Reply Quote 1
            • bingo600B
              bingo600 @johnpoz
              last edited by

              @johnpoz
              My bad assumed they used a SRV not a TXT

              If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

              pfSense+ 23.05.1 (ZFS)

              QOTOM-Q355G4 Quad Lan.
              CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
              LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

              1 Reply Last reply Reply Quote 0
              • bingo600B
                bingo600
                last edited by bingo600

                My main dns'es are two local bind9 servers.
                Everything else , including pihole & unbound uses those

                Primary reason i had them running before pfSense was installed.
                Use them for DNS & DHCP , and get the full ISC features.

                And i can do dynamic DHCP updates wo. the dreaded unbound dead time

                If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

                pfSense+ 23.05.1 (ZFS)

                QOTOM-Q355G4 Quad Lan.
                CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

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

                  My pihole is currently up to date..

                  root@pi-hole:/home/pi# pihole -up
                    [i] Checking for updates...
                    [i] Pi-hole Core:     up to date
                    [i] Web Interface:    up to date
                    [i] FTL:              up to date
                  
                    [āœ“] Everything is up to date!
                  root@pi-hole:/home/pi# 
                  

                  But I will for sure try and test this next time an update is out.. I have just added a block any other dns on the piholes vlan.. I was blocking dot and doh.. It didn't attempt to check any other dns when I asked it to see if update - but maybe it only does that if there is an update?

                  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

                  bingo600B 2 Replies Last reply Reply Quote 0
                  • I
                    imthenachoman @bingo600
                    last edited by imthenachoman

                    @bingo600 said in Need help with my VLAN firewall rules to make sure they do what I think they do:

                    Re: Lan net vs Lan address (pulldown selections)
                    Lan address is the specific interface adresss : ie. 192.168.1.1

                    Oh! I see my mistake now.

                    Lan net is the defined network : ie. 192.168.1.0/24
                    For allowing any (on the Lan) to send DNS req. to the interface i would do.
                    IF : LAN
                    AF: IPv4
                    Proto: TCP/UDP
                    SRC: Lan net
                    Dest: Lan address (Only matches The interface ip)
                    Port: DNS

                    Awesome. Thank you!

                    @bingo600 said in Need help with my VLAN firewall rules to make sure they do what I think they do:

                    If DNS to "any" was allowed (while the DNS forward rule was in place) , the request to 8.8.8.8 would be rewritten to 127.0.0.1 once the package was entering the pfSense , and the APP would still get a DNS answer (from pfSense).

                    Wouldn't a port forward rule take care of this? Any request from a client on :53 gets redirected to 127.0.0.1 (pfSense)?

                    @johnpoz said in Need help with my VLAN firewall rules to make sure they do what I think they do:

                    Not saying you can not stop something from talking to DNS you don't want it to - my point is redirection of traffic hiding from the client that it not talking to who it thinks it is talking to is not good practice.

                    Totally fair. But as I am just starting out in my journey, I will set it like this for a while and see how ti works. I'll redo everything in a few months anyway -- once I understand things better -- and then I'll see how I set up my DNS.

                    --

                    I really do appreciate all of the time y'all have been putting in to help me. I am a big fan/supporter of paying those who help when I can. Teachers in schools get paid, so should teachers elsewhere. LMK if I can return the fair monetarily.

                    Also, Happy Holidays everyone!

                    bingo600B 1 Reply Last reply Reply Quote 0
                    • bingo600B
                      bingo600 @johnpoz
                      last edited by

                      @johnpoz

                      I have localhost as resolver on the pihole DEB10
                      dns-nameservers 127.0.0.1

                      And pihole is using my bind9's as upstream resolvers (on the same L2) - That failed during the updates.

                      Then i made a specific allow pihole/32 to any - dns
                      And it updated.

                      After update i disabled that one again

                      If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

                      pfSense+ 23.05.1 (ZFS)

                      QOTOM-Q355G4 Quad Lan.
                      CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                      LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

                      1 Reply Last reply Reply Quote 0
                      • bingo600B
                        bingo600 @imthenachoman
                        last edited by bingo600

                        @imthenachoman said in Need help with my VLAN firewall rules to make sure they do what I think they do:

                        LMK if I can return the fair monetarily.

                        My (adequate) payment is to know i helped someone else that has an issue. - We have all been there.
                        And i hope they will help someone else in the same way.

                        Also, Happy Holidays everyone!

                        You too

                        Edit: There is an implicit "thank you" method here on the forum.
                        Click the "Thumbs up icon" in the bottom of the post you like.
                        That gives the poster a +1 on helpfull posts.

                        /Bingo

                        If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

                        pfSense+ 23.05.1 (ZFS)

                        QOTOM-Q355G4 Quad Lan.
                        CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                        LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

                        1 Reply Last reply Reply Quote 1
                        • bingo600B
                          bingo600 @johnpoz
                          last edited by

                          @johnpoz

                          I have been a naughty boy 😧
                          And hadn't updated mine.

                          Here's a "sniff" of my pihole ip , w. port 53 tcp/udp during a "NS1 allowed" update.

                          cda18ecb-9b07-4ff0-b47c-c93cefde1d59-image.png

                          Wo. allowing "NS1" it barfs.

                          c39cabc3-6030-497c-a02f-6ab1f4236467-image.png
                          /Bingo

                          If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

                          pfSense+ 23.05.1 (ZFS)

                          QOTOM-Q355G4 Quad Lan.
                          CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                          LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

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

                            Why are they doing a directed query? What reason is given - that AD or MS dns does not allow for TXT queries? That is utter BS plain and simple..

                            I am not buying the reason for doing this at all..

                            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

                            bingo600B 1 Reply Last reply Reply Quote 0
                            • bingo600B
                              bingo600 @johnpoz
                              last edited by bingo600

                              @johnpoz
                              I don't have anything w M$ DNS
                              If you do you could try the dig they use here.

                              https://github.com/pi-hole/pi-hole/commit/0ff32c3629220f386a45c14d8982aaaf128aa47f

                              99db0ae3-b843-4589-ad64-981b65007d38-image.png

                              If working it should give the same answer as in my sniff above i suppose.

                              Or the pcap here

                              5b57cf7d-6146-4020-b9d0-c3e2499cb3c8-image.png

                              If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

                              pfSense+ 23.05.1 (ZFS)

                              QOTOM-Q355G4 Quad Lan.
                              CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                              LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

                              johnpozJ 1 Reply Last reply Reply Quote 0
                              • I
                                imthenachoman @bingo600
                                last edited by

                                @bingo600 @johnpoz

                                So if I wanted to allow SSH from one VLAN to another VLAN, for the destination, would I put * net or * address? I assume * net since I want it to have access to all the devices on that destination VLAN?

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

                                  My dig works fine.. My question - is why are they doing a directed query vs just doing a normal query for the TXT record.. from the one statement it seems that AD dns has some issue? Which is BS..

                                  Do a query using whatever dns the OS is currently set to use - if that fails, then tell the user.. Hard coding some directed query to some specific NS is just utter BS.

                                  That is exactly what applications are doing - to bypass pihole ;) That they would do the same thing is nuts.

                                  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

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

                                    @imthenachoman

                                    Yes if you want want network X to talk to ssh to anything on network Y, then the dest would net Y..

                                    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

                                    I 1 Reply Last reply Reply Quote 1
                                    • I
                                      imthenachoman @johnpoz
                                      last edited by

                                      @johnpoz Rock on. Thanks!

                                      1 Reply Last reply Reply Quote 0
                                      • bingo600B
                                        bingo600 @johnpoz
                                        last edited by bingo600

                                        @johnpoz said in Need help with my VLAN firewall rules to make sure they do what I think they do:

                                        Do a query using whatever dns the OS is currently set to use - if that fails, then tell the user.. Hard coding some directed query to some specific NS is just utter BS.

                                        Seems like you're right for my OS (here linux mint)
                                        Having pfSense unbound as DNS (that forwards to my bind9's)

                                        $ dig +short -t txt versions.pi-hole.net 
                                        "Raspbian=9,10 Ubuntu=16,18,20 Debian=9,10 Fedora=31,32 CentOS=7,8"
                                        

                                        That they would do the same thing is nuts.

                                        Yes ... Seems a bit contradictive to their own purpose

                                        /Bingo

                                        If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

                                        pfSense+ 23.05.1 (ZFS)

                                        QOTOM-Q355G4 Quad Lan.
                                        CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                                        LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

                                        1 Reply Last reply Reply Quote 0
                                        • bingo600B
                                          bingo600
                                          last edited by

                                          Wonder if the pfSense DNS forward would have caught that one , and made the problem go away ....

                                          If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

                                          pfSense+ 23.05.1 (ZFS)

                                          QOTOM-Q355G4 Quad Lan.
                                          CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                                          LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

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

                                            Yeah a redirect would of worked here.. But what sucks is why and the F should you have to do that.. What is wrong with these people?

                                            If you want to check some dns txt entry for something that is fine. But there is ZERO reason to direct that specifically to some ns..

                                            Do your query - using whatever DNS the OS is pointed to... If it doesn't resolve - then post up an error.. Could not resolve xyz..

                                            Hard coding trying to talk to some specific NS is not the way to go about it.. I just don't get how the makers of a software that allows users to control their own local dns thinks its a smart idea to bypass the local dns? WTF???

                                            If you want to say point to some public dns, when NO local dns is provided - ok, I mean you are setting up dns software and all.. And you never know what some user might have borked up.. But if the box has local dns - bypassing that to check something is just plain wrong.

                                            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

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