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

    How to block whatsapp and similar messengers.

    Scheduled Pinned Locked Moved Firewalling
    11 Posts 6 Posters 10.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.
    • S
      saikrishna
      last edited by

      Hi
      We want to block whatsapp and similar messengers using IP or squid please help me from this problem. I tried deny the chat in filter rules but not worked and I tried using lan rules with some net ip those also not given the accurate output. Please help me.

      1 Reply Last reply Reply Quote 0
      • C
        chavarriaa
        last edited by

        You'll have to install squid3 as proxy server + squidguard with WPAD configuration. Read more about this:

        Install squid3 -> https://www.youtube.com/results?search_query=squid+squidguard+pfsense
        Config WPAD -> https://doc.pfsense.org/index.php/WPAD_Autoconfigure_for_Squid

        Search on the forum for more information. Feel free to ask

        1 Reply Last reply Reply Quote 0
        • S
          saikrishna
          last edited by

          Thanks for your reply but when we install squid3 and squidguard it is telling mod_security error for some wordpress sites and others.

          1 Reply Last reply Reply Quote 0
          • KOMK
            KOM
            last edited by

            The only way to block an app is to find and block 1) the traffic on custom ports that the app uses, and/or 2) access to the servers the app uses.  #1 is hard if the app uses a common port like 80 to talk to random addresses.  #2 is hard if the list of IP addresses used by the servers changes dynamically.  Find out which port(s) WhatsApp uses and if it talks to a control server.

            1 Reply Last reply Reply Quote 0
            • S
              saikrishna
              last edited by

              I installed squid3 and squidguard and I blocked some sites like shopping etc with shalla blacklists now how can I block whatsapp for mobile phones.
              As u told to block port no 80 we are running webservers with the same port and we may require that port to be opened.
              Can u please help me out from this.

              1 Reply Last reply Reply Quote 0
              • KOMK
                KOM
                last edited by

                I told you what you need to do.  I'm not going to do it for you.  Use Google to find out the ports/servers of the app you're trying to block.

                1 Reply Last reply Reply Quote 0
                • S
                  saikrishna
                  last edited by

                  Cyberoam Firewalls have application filtering to block applications like whatsapp, but pfsense doesn't deserve it. No positive replies, forum used for make to understand and to give atleast links to find the answers. We know trying in google don't give nonsense advice.

                  1 Reply Last reply Reply Quote 1
                  • M
                    muswellhillbilly
                    last edited by

                    Whatsapp and other such sites use common ports (eg: 80, 443, etc), so blocking the port won't work. You can try to find all the URLs relevant to whatsapp and other sites and block those instead. Contrary to what you suggest, Google has coughed up some relevant info on whatsapp specifically. You can start by using this:

                    https://github.com/ukanth/afwall/wiki/HOWTO-blocking-WhatsApp

                    @saikrishna:

                    Cyberoam Firewalls have application filtering to block applications like whatsapp, but pfsense doesn't deserve it.

                    Firewalls like Cyberoam are paid-for NG firewall systems which have updates regularly uploaded to their application lists/threat lists/etc, so they will certainly have more up-to-date application filtering. If you want to pay for a commercial solution then nothing's stopping you.

                    1 Reply Last reply Reply Quote 0
                    • KOMK
                      KOM
                      last edited by

                      No positive replies, forum used for make to understand and to give atleast links to find the answers. We know trying in google don't give nonsense advice.

                      Sorry but no.  We have told you what you need to know without doing your job for you.  Muswellhillbilly even Googled a link for you to start with so it doesn't look like you tried very hard.

                      1 Reply Last reply Reply Quote 0
                      • E
                        Ezhilmani
                        last edited by

                        Add all whatsapp ips in aliases and create block rule in LAN.

                        1 Reply Last reply Reply Quote 0
                        • W
                          Wolf666
                          last edited by

                          You can try also pfBlockerNG: https://www.reddit.com/r/PFSENSE/comments/40hhjz/blocking_whatspp_challenge/

                          Modem Draytek Vigor 130
                          pfSense 2.4 Supermicro A1SRi-2558 - 8GB ECC RAM - Intel S3500 SSD 80GB - M350 Case
                          Switch Cisco SG350-10
                          AP Netgear R7000 (Stock FW)
                          HTPC Intel NUC5i3RYH
                          NAS Synology DS1515+
                          NAS Synology DS213+

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