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

How to block facebook?

Scheduled Pinned Locked Moved pfSense Packages
21 Posts 13 Posters 50.2k 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.
  • I
    iamthed
    last edited by May 6, 2009, 7:12 AM May 6, 2009, 6:42 AM

    i'm having trouble with squid and squid guard..
    let's say i want to block facebook so i already installed squid and squid guard..

    and i already set the configuration like tutorial do..
    but i want to enable transparent proxy so i don't need to setup proxy browser on every client..
    i put the default rule to deny all traffic.. (just for test that squid and squid guard is working)
    but yet i still can browse anything..
    but when i disable the transparent proxy and setup proxy browser it's work..
    do u have any idea how to solve it??
    regards

    i'm dumb.. but i have a desire to learn

    1 Reply Last reply Reply Quote 0
    • T
      tommyboy180
      last edited by May 6, 2009, 8:25 AM

      I would block facebook in Squid on the access control setting page. When you start adding huge lists squid may act a little strange but small lists will do perfect.
      If its just one domain you want to block I would recommend just using squid, uninstall SquidGuard.

      -Tom Schaefer
      SuperMicro 1U 2X Intel pro/1000 Dual Core Intel 2.2 Ghz - 2 Gig RAM

      Please support pfBlocker | File Browser | Strikeback

      1 Reply Last reply Reply Quote 0
      • I
        iamthed
        last edited by May 6, 2009, 8:52 AM

        @tommyboy180:

        I would block facebook in Squid on the access control setting page. When you start adding huge lists squid may act a little strange but small lists will do perfect.
        If its just one domain you want to block I would recommend just using squid, uninstall SquidGuard.

        actually i want to block all the porn sites too.. it's too many of them if i'm not using squidguard..
        and what's the solution about transparent proxy failed??
        if i'm using transparent proxy i don't need to setup browser proxy right?

        i'm dumb.. but i have a desire to learn

        1 Reply Last reply Reply Quote 0
        • J
          jigpe
          last edited by May 13, 2009, 10:46 AM

          I think it will work in Firewall>Rules>Lan.. Im not sure if you cn block there.
          jigp
          Davao City

          1 Reply Last reply Reply Quote 0
          • J
            josey
            last edited by May 13, 2009, 11:20 AM

            well,
            alow all
            and on chat or socialnetwork set deny and thats it …

            1 Reply Last reply Reply Quote 0
            • J
              jigpe
              last edited by May 13, 2009, 11:51 AM

              Ok thanks ill try that too.
              OT: is there a way to change the default proxy squid host and port 3128? I have a private proxy and port but upon reading the /var/squid its not there anymore…
              jigp
              Davao City

              1 Reply Last reply Reply Quote 0
              • J
                josey
                last edited by May 14, 2009, 5:34 AM

                just use transparent proxy it is easy way to set it up

                1 Reply Last reply Reply Quote 0
                • I
                  iamthed
                  last edited by May 14, 2009, 6:27 AM

                  @josey:

                  just use transparent proxy it is easy way to set it up

                  i have some problem with transparent proxy since i used bridge method..
                  dvserg say bridge method can't use transparent proxy..
                  and if i'm not using bridge method.. i can't connect to internet..
                  weird isn't it?
                  or i'm dumb enough..
                  dunno which one

                  i'm dumb.. but i have a desire to learn

                  1 Reply Last reply Reply Quote 0
                  • B
                    Bern
                    last edited by May 14, 2009, 6:39 AM

                    How about using OpenDNS?

                    So far it's worked perfectly for me in about 10 clients' offices.

                    We had to make squid use OpenDNS's DNS servers and kept everything else on the respective ISP's DNS servers because OpenDNS was occasionally blocking access to hotmail's MX records etc, which caused problems with outbound mail.

                    1 Reply Last reply Reply Quote 0
                    • J
                      jigpe
                      last edited by May 14, 2009, 7:34 AM

                      Thanks. I will use opendns again. Though some sites are blocked without setting up the menu there in the opendns site :(
                      Sometimes i disabled opendns just to access the site..

                      thanks,
                      jigp
                      Davao City

                      1 Reply Last reply Reply Quote 0
                      • M
                        MikeKulls
                        last edited by Mar 31, 2011, 8:55 AM

                        My solution was to create an Alias with the following network entries
                        66.220.144.0/20
                        69.63.176.0/20
                        204.15.20.0/22

                        and then block that Alias in firewall rules.

                        1 Reply Last reply Reply Quote 0
                        • J
                          john doe
                          last edited by Apr 3, 2011, 4:13 PM

                          FACEBOOK_ALLOW="192.168.1.12 192.168.1.14 192.168.1.111"
                          iptables -N FACEBOOK

                          iptables -I FORWARD -m tcp -p tcp -m iprange –dst-range 66.220.144.0-66.220.159.255 --dport 443 -j FACEBOOK
                          iptables -I FORWARD -m tcp -p tcp -m iprange --dst-range 69.63.176.0-69.63.191.255 --dport 443 -j FACEBOOK
                          iptables -I FORWARD -m tcp -p tcp -m iprange --dst-range 204.15.20.0-204.15.23.255 --dport 443 -j FACEBOOK
                          iptables -I FORWARD -m tcp -p tcp -m iprange --dst-range 66.220.144.0-66.220.159.255 --dport 80 -j FACEBOOK
                          iptables -I FORWARD -m tcp -p tcp -m iprange --dst-range 69.63.176.0-69.63.191.255 --dport 80 -j FACEBOOK
                          iptables -I FORWARD -m tcp -p tcp -m iprange --dst-range 204.15.20.0-204.15.23.255 --dport 80 -j FACEBOOK

                          FACEBOOK ALLOW

                          for face in $FACEBOOK_ALLOW; do
                              iptables -A FACEBOOK -s $face -j ACCEPT
                          done
                          iptables -A FACEBOOK -j REJECT

                          1 Reply Last reply Reply Quote 0
                          • Cry HavokC
                            Cry Havok
                            last edited by Apr 3, 2011, 4:48 PM

                            Which would be better if pfSense was Linux ;)

                            1 Reply Last reply Reply Quote 0
                            • J
                              john doe
                              last edited by Apr 3, 2011, 4:51 PM

                              no no….. list of IP's facebook use. Thats all. Should have made that clear.

                              1 Reply Last reply Reply Quote 0
                              • J
                                jigpe
                                last edited by Aug 12, 2011, 11:56 PM

                                Hi try my post. It work for me and the rest of my friends. Search "How to block facebook in 4 ways" or click this link http://forum.pfsense.org/index.php/topic,39849.msg205547.html#msg205547

                                jigp

                                1 Reply Last reply Reply Quote 0
                                • O
                                  orthopteroid
                                  last edited by Nov 19, 2011, 9:55 PM

                                  @MikeKulls:

                                  My solution was to create an Alias with the following network entries
                                  66.220.144.0/20
                                  69.63.176.0/20
                                  204.15.20.0/22

                                  and then block that Alias in firewall rules.

                                  This appears to work for me as long as I've disabled ipv6 support (6to4, ISATAP, Port Proxy, and Teredo), and IP-HTTPS. In windows, stop and disable the service "IP Helper".

                                  1 Reply Last reply Reply Quote 0
                                  • marcellocM
                                    marcelloc
                                    last edited by Nov 20, 2011, 3:55 AM

                                    Blocking apps.facebook.com will do the job too.

                                    Treinamentos de Elite: http://sys-squad.com

                                    Help a community developer! ;D

                                    1 Reply Last reply Reply Quote 0
                                    • J
                                      johnnybe
                                      last edited by Nov 20, 2011, 7:12 PM

                                      Check How to block facebook. It's in Portuguese but you can translate it to English with the Translator at top right of the page. This link has more facebook networks other than that were posted earlier.

                                      you would not believe the view up here

                                      1 Reply Last reply Reply Quote 0
                                      • K
                                        Kamel
                                        last edited by Nov 21, 2011, 6:26 PM

                                        I've always found it irritating when people dance around my question instead of answering it directly, so I'll try to avoid doing so myself.

                                        I had similar issues with squid/squidguard myself and it was due to the parameters squidguard uses in squid being deleted somehow. I don't know if there is a better way, but what I did was uninstall both squid and squidguard, delete their entries in /var/ (just for extra measure), then install and configure just squid w/ transparent proxy. verify it was working, then install and configure squidguard. This worked for me shrugs YMMV. Just so you know, I have since reinstalled that pfsense box, so I have no idea if there were any issues over a period of time.

                                        Also, in reference to blocking hosts while it may be good for "extra measure", it's kinda like mac address filtering, it really isn't all that helpful in the end. What you want to if you want to make absolute sure a site is blocked is prevent access via IP address (trying to surf to facebook via IP doesn't work anyway), prevent circumvention of DNS settings, and prevent all use of proxy servers and remote login software of any kind. If you can successfully do these things, they wont be able to get to places you dont want them.

                                        1 Reply Last reply Reply Quote 0
                                        • J
                                          joako
                                          last edited by Nov 23, 2011, 9:37 AM

                                          Kamel,

                                          But the issue being that if you configure transparent proxy in any way the users just browse over to https://www.facebook.com and access it anyways.

                                          So I found the best way is to block the facebook CIDRs.

                                          Regards,

                                          joako

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received