Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-22-2003, 05:42 AM   #1
LQ Newbie
Registered: Dec 2003
Posts: 28

Rep: Reputation: 15
squid acl how to block all site except some

Hi, alll

i need to block all the connection to the web
My users have to go only on a restricted number of site thet i want to manage with a file. something like a whitelist.

thank you very much and
Merry Christmas

Old 12-22-2003, 08:20 AM   #2
LQ Newbie
Registered: Dec 2003
Location: Kitzbühel, Austria
Distribution: Gentoo
Posts: 23

Rep: Reputation: 15
You can do that in your squid.conf using an acl like

acl whitelist dstdomain "/etc/squid/whitelist"
http_access deny !whitelist

and a whitelist that looks like

Another option would be to use an acl with "dst (ip-address/netmask)" instead of "dstdomain (". Modify to your needs, there are tons of other options described in the squid.conf comments.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid acl help cgelectek Linux - Networking 3 11-10-2005 11:04 PM
do i need to ACL in squid.conf... razan Linux - Security 2 04-20-2005 06:42 AM
SQUID: ACL question razametal Linux - Software 1 09-18-2003 07:18 AM
Squid ACL dfctve_end_user Linux - Networking 2 01-13-2003 09:30 AM
Help me in Configuring Squid ACL tina_gora Linux - Networking 0 05-22-2001 02:31 AM

All times are GMT -5. The time now is 06:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration