LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Squid Access Control (https://www.linuxquestions.org/questions/linux-software-2/squid-access-control-214877/)

acompw 08-07-2004 11:26 PM

Squid Access Control
 
I would like to restrict my squid server to only take requests from 1 ip. I want it to block all other addresses from using the server. Is this possible, and if so, how can I do this?

thanks,
Ben

Archite 08-08-2004 01:19 AM

okay, in the section that has the acls add:

acl allowed_computer src 192.168.0.32/255.255.255.0 # use own ip here

Then find the area that says:

http_access deny all

make sure it is uncommented and change it to:

http_access deny all !allowed_computer.

That should work.

acompw 09-02-2004 07:42 PM

thanks -- I eventually figured it out though


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