Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Network Troublshooting => General Networking Support in Linux => Topic started by: hanifbaki on August 16, 2004, 06:17:01 AM

Title: Squid ACL
Post by: hanifbaki on August 16, 2004, 06:17:01 AM
To set below setting in squid.conf:-

One IP Address can access only single/specific website and denied access to other website.

Example:-

IP 192.168.0.250 Allow to www.payroll.com
Http other denied.


Hope you all can help me.

Thanks.
Title: denying access to one ip for a specific website in squid
Post by: Ricky on August 16, 2004, 09:00:44 AM
I don't understand...

r u asking that how to allow access to one url to a specific client and other people cannot access that URL ? is that so ?

if yes then do use following rules..
Code: [Select]
acl clienttobeallowed src 192.168.1.112
acl websiteurltobereject url_regex ^http://www.exampleweb.com
http_access allow clienttobeallowed websiteurltobereject
http_access deny websiteurltobereject
here clienttobeallowed is the ip address acl of the client and websiteurltobereject is the acl used for the web to be rejected..
Title: denying access to one ip for a specific website in squid
Post by: hanifbaki on August 18, 2004, 03:37:47 AM
I'm sorry for the confusing, my meaning is,

how to allow specific Ip that can go to specific url only.

for example PC1 can access this URL only , www.pay.com. other than this url cannot.

Please help me...