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

    How do I block Facebook with Squid?

    Scheduled Pinned Locked Moved Firewalling
    2 Posts 2 Posters 395 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.
    • Y
      Yankee19
      last edited by

      Hi!
      I have a problem, I've made Facebook blocking instructions but it does not work.. How can I block a Facebook page using Squid or another program?

      1 Reply Last reply Reply Quote 0
      • NogBadTheBadN
        NogBadTheBad
        last edited by

        Snort and openappid rules may do it.

        if you want to just block facebook create 3 custom rules that read :-

        alert tcp $HOME_NET any -> $EXTERNAL_NET any (msg:"facebook_apps";flow:from_client;appid:facebook_apps; sid:70101 ; classtype:misc-activity; rev:1;)

        alert tcp $HOME_NET any -> $EXTERNAL_NET any (msg:"facebook";flow:from_client;appid:facebook; sid:70439 ; classtype:misc-activity; rev:1;)

        alert tcp $HOME_NET any -> $EXTERNAL_NET any (msg:"facebook_like";flow:from_client;appid:facebook_like; sid:72794 ; classtype:misc-activity; rev:1;)

        Just tried it with those 3 rules, its blocking from a web browser but not the mobile app, maybe a few more rules needed.

        Untitled.png
        Untitled.png_thumb

        Andy

        1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

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