November 23, 2024, 09:58:16 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Squid ACL  (Read 5649 times)

Offline hanifbaki

  • New Member
  • Posts: 3
Squid ACL
« 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.

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
denying access to one ip for a specific website in squid
« Reply #1 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..

Offline hanifbaki

  • New Member
  • Posts: 3
denying access to one ip for a specific website in squid
« Reply #2 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...