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

    Squid proxy block all websites except white listed domains

    Scheduled Pinned Locked Moved Cache/Proxy
    14 Posts 4 Posters 13.7k Views 4 Watching
    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.
    • D Offline
      dhiyogroup
      last edited by

      Thanks Kom for the response.

      What is required is: I want to allow custom domains which are there in notepad (around 5k websites) and rest of the domains should be blocked.

      I understand its a strange requirement. I have installed Squid and Squid Gaurd, However how do I create my own category of 5k domains and mention in Target categories and allow only that and rest of them are blocked?

      Is there anyway I can create a list in console as WebGUI may not handle the list as its huge.

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

        Squidguard has no easy way to import 5000 URLs manually. pfBlocker may have a method but I don't know since I don't use it.

        It might be easier for you to fake a squidguard blacklist by packaging up your domain list the same way the blacklists are packaged. Then you could easily import it.

        For example, the Shallalist is a commonly-used blacklist which can be found here:

        http://www.shallalist.de/Downloads/shallalist.tar.gz

        It's a tar.gz file. Inside is a tar file. Inside the tar file is a folder structure with 'urls' and 'domains' files nested inside catagory folders under BL (for blacklist). You could create your own tar.gz file and then use the Blacklist page to import it.

        1 Reply Last reply Reply Quote 1
        • D Offline
          dhiyogroup
          last edited by

          Wow!! Awesome genius Idea... its working like a charm.

          Thank you so much!! KOM :-)

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

            Glad it worked for you.

            1 Reply Last reply Reply Quote 1
            • M Offline
              marksantos @KOM
              last edited by

              @kom can you make a step by step how to block all website except white listed domains

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

                @lesther123 I don't really have time for that, and there are lots of tutorials online. The short version is:

                Install Squid & configure
                Install Squidguard & configure
                Configure WPAD
                Force users to use proxy by blocking tcp80,443
                In Squidguard, set default ACL to Deny
                In Squidguard, create Whitelist ACL group and then add your allowed domains to it.

                That's basically it.

                M 2 Replies Last reply Reply Quote 0
                • M Offline
                  marksantos @KOM
                  last edited by

                  @kom it is possible to block all https??

                  1 Reply Last reply Reply Quote 0
                  • RicoR Offline
                    Rico LAYER 8 Rebel Alliance
                    last edited by

                    Port 443/TCP is HTTPS.

                    -Rico

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      marksantos @KOM
                      last edited by

                      @kom Force users to use proxy by blocking tcp80,443, blocking in firewall rule??

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

                        Yes. How do you expect to enforce your web-browing rules if anyone can just go around the proxy by not using it?? If you block all tcp80,443 traffic on LAN, then NOBODY will be able to use the web except via proxy.

                        1 Reply Last reply Reply Quote 0
                        • M Offline
                          marksantos @KOM
                          last edited by

                          @KOM Hi sir kom, it is possible to allow gmail only?? in pfblocker

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

                            I don't know. I don't use pfB.

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