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

Stopping Ads - Best Way

Firewalling
4
22
1.4k
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.
  • J
    JonathanLee @oznet
    last edited by Sep 20, 2023, 4:11 AM

    @oznet I can't help you with that question because I use Squidguard to block only specific AD companies that do not follow CCPA laws with privacy laws.

    Make sure to upvote

    1 Reply Last reply Reply Quote 0
    • M
      mcury @oznet
      last edited by Sep 20, 2023, 11:56 AM

      @oznet I'm using the method specified here:

      NAT Outbound:
      login-to-view

      https://docs.netgate.com/pfsense/en/latest/recipes/dns-redirect.html

      To block DOH, I'm using: doh-domains_overall.txt DNSBL and doh-ipv4.txt for IP:
      https://github.com/dibdot/DoH-IP-blocklists

      And to block ADs + porn, I'm using this:
      https://github.com/StevenBlack/hosts

      login-to-view
      login-to-view

      dead on arrival, nowhere to be found.

      J 1 Reply Last reply Sep 20, 2023, 2:00 PM Reply Quote 0
      • K
        keyser Rebel Alliance @oznet
        last edited by Sep 20, 2023, 12:33 PM

        @oznet Generally pfBlockerNG is a very good solution, but if you are happy with the adguard DNS servers, then you could use those for all DNS resolution. The value you have edited until now is only for the pfSense Firewall itself.
        By default this firewall also runs a full DNS recursive lookup DNS server for all clients on the internal networks (The DNS service is provided by default to clients via the builtin DHCP service).

        To prevent that DNS server from doing recursive root lookup and instead use the adguard servers as the lookup source, you should goto the SERVICES Tab and under DNS RESOLVER make sure you enable DNS Forwarding. It will then start using the DNS servers you have provided the pfSense Firewall with as the source of truth :-)

        Love the no fuss of using the official appliances :-)

        O 1 Reply Last reply Sep 20, 2023, 2:38 PM Reply Quote 0
        • J
          JonathanLee @mcury
          last edited by Sep 20, 2023, 2:00 PM

          @mcury why is your nat only using the loop back? Why not use both the firewall and the loopback? Do a negated rule anything but the alias that has the loopback and firewall redirect to the firewall.

          Make sure to upvote

          M 1 Reply Last reply Sep 20, 2023, 2:07 PM Reply Quote 0
          • M
            mcury @JonathanLee
            last edited by Sep 20, 2023, 2:07 PM

            @JonathanLee That will redirect any connections that is not for WIFI address port 53, to 127.0.0.1:53, forcing the use of pfsense's DNS server (unbound).

            pfsense itself is using 127.0.0.1 too.

            login-to-view

            dead on arrival, nowhere to be found.

            J O 2 Replies Last reply Sep 20, 2023, 2:17 PM Reply Quote 1
            • J
              JonathanLee @mcury
              last edited by Sep 20, 2023, 2:17 PM

              @mcury This is how I am doing mine as it would never work for me with only the loopback

              login-to-view
              (Netgated rule)

              login-to-view
              (alias)

              This was the only way it would work for me I also attempted the loopback only version

              Make sure to upvote

              M 1 Reply Last reply Sep 20, 2023, 2:23 PM Reply Quote 0
              • M
                mcury @JonathanLee
                last edited by Sep 20, 2023, 2:23 PM

                @JonathanLee said in Stopping Ads - Best Way:

                This was the only way it would work for me I also attempted the loopback only version

                hmm, I wonder if your Unbound is listening in the loopback ?
                For this to work, Unbound needs to be listening in the loopback too.

                dead on arrival, nowhere to be found.

                J 1 Reply Last reply Sep 20, 2023, 2:27 PM Reply Quote 0
                • J
                  JonathanLee @mcury
                  last edited by Sep 20, 2023, 2:27 PM

                  @mcury

                  login-to-view

                  Loopback used DNS over TLS SSL

                  login-to-view
                  Custom options because of ipv4 only isp restrictions

                  WPAD in use for proxy with DHCP options 252 and 42 enabled

                  login-to-view

                  Interesting I could only get this to work with use of both loopback and firewalls address

                  Make sure to upvote

                  M 1 Reply Last reply Sep 20, 2023, 2:34 PM Reply Quote 0
                  • O
                    oznet @mcury
                    last edited by Sep 20, 2023, 2:33 PM

                    @mcury If I use this setting wont it ignore the adguard dns servers as I would think these would be considered remote dns?

                    J 1 Reply Last reply Sep 20, 2023, 2:36 PM Reply Quote 0
                    • M
                      mcury @JonathanLee
                      last edited by Sep 20, 2023, 2:34 PM

                      @JonathanLee said in Stopping Ads - Best Way:

                      Interesting I could only get this to work with use of both loopback and firewalls address

                      hm, indeed, I can't see at this moment a reason why it wouldn't work..

                      The idea behind that NAT is simple, force everything that refuses to use pfsense's DNS server to use it.
                      Unbound forward mode is disabled, which means, use pfsense's DNS server for everything and if not in cache or in domain/host override, query root servers directly.
                      Also, ignore ISP's DNS servers provided by DHCP on WAN.

                      Resuming, everything will be filtered by pfblockerNG DNSBL.

                      I can see that its working..

                      login-to-view

                      In the picture above, left side, all hosts that shows up with a destination port 53, I know that were trying to use another DNS server, QUIC will show up using UDP 80/443 and DOT (TCP-853).

                      The right side, I'm just filtering for connections to 10.10.10.1

                      dead on arrival, nowhere to be found.

                      J 1 Reply Last reply Sep 20, 2023, 2:37 PM Reply Quote 1
                      • J
                        JonathanLee @oznet
                        last edited by Sep 20, 2023, 2:36 PM

                        @oznet my firewall's address is the 192.168.1.1 so if you set it to allow the firewall itself it should still work as when the address hits the firewall it would still convert to the loopback for the resolve anyway.

                        login-to-view

                        I use the 853 tls dns sites, sometimes I get hit with scans that use decoy addresses of my dns servers that causes issues once and a while snort blocks it.

                        Make sure to upvote

                        1 Reply Last reply Reply Quote 0
                        • J
                          JonathanLee @mcury
                          last edited by Sep 20, 2023, 2:37 PM

                          @mcury I notice you allow QUIC. Palo Alto just created software to decode it recently. I am wondering how you are using that?

                          Make sure to upvote

                          M 1 Reply Last reply Sep 20, 2023, 2:40 PM Reply Quote 0
                          • O
                            oznet @keyser
                            last edited by Sep 20, 2023, 2:38 PM

                            @keyser What is this setting called, I dont see that?

                            J K 2 Replies Last reply Sep 20, 2023, 2:39 PM Reply Quote 0
                            • J
                              JonathanLee @oznet
                              last edited by Sep 20, 2023, 2:39 PM

                              @oznet I see it in your graph, it's HTTPS 3 or HTTPS over UDP

                              Make sure to upvote

                              1 Reply Last reply Reply Quote 0
                              • M
                                mcury @JonathanLee
                                last edited by Sep 20, 2023, 2:40 PM

                                @JonathanLee said in Stopping Ads - Best Way:

                                @mcury I notice you allow QUIC. Palo Alto just created software to decode it recently. I am wondering how you are using that?

                                I'm blocking QUIC entirely with a reject rule, this means that the browser will receive a 'no-go' as soon as it tries to use QUIC, thus reverting the connection to normal TCP.

                                If you use drop, it will slow down everything.

                                You want the browser to know that QUIC won't work as soon as possible so it can use the TCP protocol without any delays.

                                dead on arrival, nowhere to be found.

                                J 1 Reply Last reply Sep 20, 2023, 2:43 PM Reply Quote 1
                                • J
                                  JonathanLee @mcury
                                  last edited by Sep 20, 2023, 2:43 PM

                                  @mcury They have some youtube videos out there with how to decode QUIC it is amazing stuff.

                                  Make sure to upvote

                                  M 1 Reply Last reply Sep 20, 2023, 2:53 PM Reply Quote 0
                                  • M
                                    mcury @JonathanLee
                                    last edited by Sep 20, 2023, 2:53 PM

                                    @JonathanLee said in Stopping Ads - Best Way:

                                    @mcury They have some youtube videos out there with how to decode QUIC it is amazing stuff.

                                    I'll take a look at it, definitely will..
                                    I have been treating QUIC as an insect, a bug that needs to be smashed..
                                    Just like DOH or DOT.

                                    These techniques (DOH and DOT), in my opinion, were developed not for privacy, but to avoid ADs blocking. To increase their revenue, but this is just my opinion.

                                    QUIC is another thing, it is faster.. But how can you control it?

                                    dead on arrival, nowhere to be found.

                                    J 1 Reply Last reply Sep 20, 2023, 2:58 PM Reply Quote 0
                                    • J
                                      JonathanLee @mcury
                                      last edited by Sep 20, 2023, 2:58 PM

                                      @mcury I agree one can say they were created to avoid CCPA and GDPR laws. They do not follow official protocol compliance.

                                      Make sure to upvote

                                      1 Reply Last reply Reply Quote 1
                                      • K
                                        keyser Rebel Alliance @oznet
                                        last edited by Sep 20, 2023, 5:19 PM

                                        @oznet DNS Query Forwarding: Enable Forwarding mode

                                        Love the no fuss of using the official appliances :-)

                                        1 Reply Last reply Reply Quote 1
                                        13 out of 22
                                        • First post
                                          13/22
                                          Last post
                                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.