LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Squid Syntax (https://www.linuxquestions.org/questions/linux-software-2/squid-syntax-468108/)

SBN 07-27-2006 01:29 AM

Squid Syntax
 
hello friends can anyone pls show how to block all websites and ports using squid and allow only those i will specify. i really neede badly for my work.

gilead 07-27-2006 07:44 PM

There's a useful document at http://wiki.squid-cache.org/SquidFaq/SquidAcl that describes different configurations for Squid. Have you had a look at it yet or do you have any specific problems with creating your access lists?

SBN 07-28-2006 03:14 AM

-yes i do have a problem in creating acl. i dont know the exact order of placing acl tags.

-also i tried using this tag to whitelist all websites except google but even google is not accessible

acl allowedwebsite dstdomain .google.com
http_access deny !allowedwebsite

gilead 07-28-2006 02:21 PM

Reading through the squid.conf on my system, it looks as though the default is to deny all. Can you try something like the following and see if it works?
Code:

acl allowedwebsite dstdomain .google.com
http_access allow allowedwebsite
http_access deny all



All times are GMT -5. The time now is 08:19 AM.