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

Using pfblockerNG for blocking facebook and google

Scheduled Pinned Locked Moved pfBlockerNG
16 Posts 4 Posters 17.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.
  • S
    security_paranoid
    last edited by May 18, 2017, 4:12 AM

    @teh:

    You need to add all the variants that Google uses; google.com, www.google.com, subdomain.google.com. etc

    I added

    www.google.com
    www.google.co.in
    www.facebook.com
    m.facebook.com
    

    but still I can open Google and Facebook.

    1 Reply Last reply Reply Quote 0
    • B
      BBcan177 Moderator
      last edited by May 19, 2017, 8:43 PM

      Enable the TLD option and run a Force Reload DNSBL which will block all sub-domains.

      "Experience is something you don't get until just after you need it."

      Website: http://pfBlockerNG.com
      Twitter: @BBcan177  #pfBlockerNG
      Reddit: https://www.reddit.com/r/pfBlockerNG/new/

      1 Reply Last reply Reply Quote 0
      • S
        security_paranoid
        last edited by May 20, 2017, 2:55 AM

        @BBcan177:

        Enable the TLD option and run a Force Reload DNSBL which will block all sub-domains.

        Done. Still not blocking. Please see attachment.

        tld.png
        tld.png_thumb
        dnsbl.png
        dnsbl.png_thumb

        1 Reply Last reply Reply Quote 0
        • B
          BBcan177 Moderator
          last edited by May 23, 2017, 2:10 PM

          Just enter

          google.com
          facebook.com
          

          Then TLD will block all sub-domains… When you enter a sub-domain like "www.facebook.com", it will only block that domain and not any other sub-domain.

          Will need a Force Reload -DNSBL for the changes to take effect (Plus a clear of your browser cache)

          "Experience is something you don't get until just after you need it."

          Website: http://pfBlockerNG.com
          Twitter: @BBcan177  #pfBlockerNG
          Reddit: https://www.reddit.com/r/pfBlockerNG/new/

          1 Reply Last reply Reply Quote 0
          • S
            security_paranoid
            last edited by May 24, 2017, 11:25 AM May 24, 2017, 10:26 AM

            @BBcan177:

            Just enter

            google.com
            facebook.com
            

            Then TLD will block all sub-domains… When you enter a sub-domain like "www.facebook.com", it will only block that domain and not any other sub-domain.

            Will need a Force Reload -DNSBL for the changes to take effect (Plus a clear of your browser cache)

            Done. Its working. Thanks a lot.

            1 Reply Last reply Reply Quote 0
            • M
              motific
              last edited by May 25, 2017, 4:19 PM

              It looks like you got there but it depends on what you want to block…  I did a bit of an experiment to block google, really to test their claim that you could choose not to use their services more than anything and the big problem you will have is that you just don't know what sites (that aren't google) rely on their services.  The short version is that you can't, or to do so would be a huge undertaking, certainly beyond a simple block.

              If you really want to block them you can block their IP range and their dns servers but even I who makes a conscious effort to avoid them, couldn't actually get anything done.  The amount of data that they can mine just from googleapis.com and googlefonts.com for example must be astronomical even if you block the search, ads, and analytics domains.

              1 Reply Last reply Reply Quote 0
              • S
                security_paranoid
                last edited by May 26, 2017, 6:24 AM

                @motific:

                It looks like you got there but it depends on what you want to block…  I did a bit of an experiment to block google, really to test their claim that you could choose not to use their services more than anything and the big problem you will have is that you just don't know what sites (that aren't google) rely on their services.  The short version is that you can't, or to do so would be a huge undertaking, certainly beyond a simple block.

                If you really want to block them you can block their IP range and their dns servers but even I who makes a conscious effort to avoid them, couldn't actually get anything done.  The amount of data that they can mine just from googleapis.com and googlefonts.com for example must be astronomical even if you block the search, ads, and analytics domains.

                Despite blocking facebook I sill find the Linux's firewall (ufw) blocking 31.13.70.7 which is xx-fbcdn-shv-01-lax3.fbcdn.net. http://31.13.70.7.ipaddress.com/.

                1 Reply Last reply Reply Quote 0
                • M
                  motific
                  last edited by May 26, 2017, 7:27 AM

                  I sill find the Linux's firewall (ufw) blocking 31.13.70.7

                  Linux has nothing to do with pfSense (and if it did I would stop using it immediately).  What are you trying to achieve and what is (and is not) working?

                  1 Reply Last reply Reply Quote 0
                  • S
                    security_paranoid
                    last edited by May 26, 2017, 7:48 AM

                    @motific:

                    I sill find the Linux's firewall (ufw) blocking 31.13.70.7

                    Linux has nothing to do with pfSense (and if it did I would stop using it immediately).  What are you trying to achieve and what is (and is not) working?

                    Read  this thread and you will understand. https://forum.pfsense.org/index.php?topic=129740.0

                    1 Reply Last reply Reply Quote 0
                    • M
                      motific
                      last edited by May 26, 2017, 9:10 AM

                      If I read the thread so far correctly, you are in a position that you have added DNS blackholes for facebook.com and google.com, but are unhappy that the domain fbcdn.net and traffic to facebook's IP space are not blocked when you expected them to be.

                      The behaviour you're seeing is correct for the configuration you have so far, if you want other domains blocked (like fbcdn.net) then you need to block them in your list as you have done for the other domains.  Many other domains for both facebook and google will also not be blocked (for example youtube.com even though it is part of google).

                      Even when you block the DNS request pfSense will not stop traffic going to IP addresses directly (for example pinging 31.13.70.7 would still work).  To block traffic entirely you would need to add their domain/AS numbers to IP4 & IP6 lists (Google are AS15169 and facebook are AS32934) and tick the 'domain/AS' box.  I can't remember if you need to include AS prefix as part of the number or not, I'm sure someone will be able to confirm that for you.

                      1 Reply Last reply Reply Quote 0
                      • J jrey referenced this topic on Nov 15, 2023, 1:26 PM
                      16 out of 16
                      • First post
                        16/16
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                        This community forum collects and processes your personal information.
                        consent.not_received