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

    Redirect Hardcoded DNS devices

    Scheduled Pinned Locked Moved Firewalling
    16 Posts 6 Posters 1.5k 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.
    • R
      rcoleman-netgate Netgate @bohaman
      last edited by

      @bohaman pfBlockerNG can block some of the ad networks if you configure it for it but it won't stop DoH or DNS over TLS. That requires something that would act as a MITM.

      Ryan
      Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
      Requesting firmware for your Netgate device? https://go.netgate.com
      Switching: Mikrotik, Netgear, Extreme
      Wireless: Aruba, Ubiquiti

      the otherT 1 Reply Last reply Reply Quote 0
      • the otherT
        the other @rcoleman-netgate
        last edited by

        @rcoleman-netgate
        hey there, you got me confused: should a reject rule for port 853 not be enough to stop DoT (at least for those devices using standard dot port)?

        the other

        pure amateur home user, no business or professional background
        please excuse poor english skills and typpoz :)

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

          @the-other yeah block rule for 853 would stop dot, but most devices don't use dot they use doh. Doh hides itself in normal looking 443 (https) traffic. So you need a list of known doh servers be it fqdn or IP or both.. I block both.. and log what IPs try to hit the rules..

          I believe pfblocker has a built in list that has well known doh servers.

          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

          the otherT 1 Reply Last reply Reply Quote 1
          • the otherT
            the other @johnpoz
            last edited by

            @johnpoz thanx for clarifying! I knew that DoH is a b... to go around, yeah there is a blocklist for pfblocker, but it is another race one must enter.
            I was just confused, cause it was mentioned above, that mitm was need for DoT as well...
            :)

            the other

            pure amateur home user, no business or professional background
            please excuse poor english skills and typpoz :)

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

              @the-other yeah its going to be a never ending game of wack-a-mole for sure..

              Keep in mind I have heard of doh using other ports as well 5053, 453 as examples.

              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

              the otherT bingo600B 2 Replies Last reply Reply Quote 1
              • the otherT
                the other @johnpoz
                last edited by

                @johnpoz haven't heard of that...thanks again! Another race to enter...*sigh

                the other

                pure amateur home user, no business or professional background
                please excuse poor english skills and typpoz :)

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

                  @johnpoz said in Redirect Hardcoded DNS devices:

                  Keep in mind I have heard of doh using other ports as well 5053, 453 as examples.

                  Wuuutttt 😨 🤕

                  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 @the other
                    last edited by johnpoz

                    @the-other

                    https://github.com/oneoffdallas/dohservers/blob/master/iplist.txt

                    dnscrypt.ca is using Port 453 for DoH (instead of 443)

                    https://www.speedguide.net/port.php?port=5053
                    5053 tcp rlm DNS over HTTPS (used by Cloudflared)

                    I think this is some proxy/relay sort of thing running on pi-hole.. But that they are using other ports other than 443 just points other ways to circumvent blocking it, etc..

                    its a never ending game of wack-a-mole..

                    wack-a-mole

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

                      @johnpoz
                      Sigh ....

                      Now my floating(s) use a Port Alias , and not just 443 ... Sigh

                      Thnx

                      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
                      • S
                        SteveITS Galactic Empire @bohaman
                        last edited by

                        @bohaman re: pfBlockerNG-devel, I usually use Alias Native and create my own aliases, so I use the DOH/Great Wall feed and have rules like this that block any port, to listed IPs:
                        34eda548-e917-4857-a3e8-ae489639cc01-image.png

                        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                        Upvote 👍 helpful posts!

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

                          @steveits you actually allow doh? Really? I would never in a million years allow that on purpose.. I don't care the device, if some device required doh - I wouldn't be using that device.

                          My take on doh is its yet another loss of control that the big players are tricking the end users into thinking they have their best interests -- which is utter and complete BS!!

                          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

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            SteveITS Galactic Empire @johnpoz
                            last edited by SteveITS

                            @johnpoz said in Redirect Hardcoded DNS devices:

                            if some device required doh - I wouldn't be using that device.

                            It is my Dish (satellite) DVR. :) Not the part that downloads guide and software updates, but the "on demand" movie channels (which is basically an app) use only DoH not DNS. If it's blocked, no movies. ¯\(ツ)/¯

                            Edit: the ICMP is so I don't think my Internet is down if I ping 8.8.4.4. 🤦‍

                            Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                            When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                            Upvote 👍 helpful posts!

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

                              @steveits really? That blows.. Have you thought of cutting the sat connection? I have been directv for years and years and years. And i am so ready to get rid of it - but wife is hard to convince - she knows how to use it, and she loves being able to record 8 different things at the same time..

                              And this is the last year for sunday ticket on directv, so next year -- I might be able to just get rid of it? Fingers crossed..

                              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
                              • First post
                                Last post
                              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.