how can Create These ACL in Squid

General discussion about PLUC and Linux in Pakistan.
Post Reply
umairfiza
Cadet
Posts: 13
Joined: Mon Nov 21, 2005 4:19 pm
Contact:

how can Create These ACL in Squid

Post by umairfiza »

I have to create ACL regaring squid Kindly guide me .

>> I want to allow browsing only Specific IPs

with no restriction

>> and another ACL that Allow browsing from to some other IPs that
has not access to some sites
please mension these ACL with Examples
umair
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re: how can Create These ACL in Squid

Post by LinuxFreaK »

Dear umairfiza,
Hello,
umairfiza wrote:I have to create ACL regaring squid Kindly guide me .

>> I want to allow browsing only Specific IPs

with no restriction

>> and another ACL that Allow browsing from to some other IPs that
has not access to some sites
please mension these ACL with Examples

Code: Select all

acl client1 src 192.168.0.2
acl client2 src 192.168.0.2
.    .         .     .    
.    .         .     .
.    .         .     .
acl clientN src 192.168.0.N
httpd_access allow client1 client2 ... clientN
Best Regards.
Farrukh Ahmed
kbukhari
Major General
Posts: 1222
Joined: Sat Dec 31, 2005 12:29 am
Location: Lahore
Contact:

Post by kbukhari »

LinuxFreaK said
acl client1 src 192.168.0.2
acl client2 src 192.168.0.2
. . . .
. . . .
. . . .
acl clientN src 192.168.0.N
httpd_access allow client1 client2 ... clientN
i tink its long

Code: Select all

acl clinetlist src "/path/to/clientlist.file" 
http_access allow  clinetlist 
 
and 

in /path/to/clientlist.file
192.168.0.1/32
192.168.0.2
192.168.0.x
isnt that a short way ?
--
Syed Kashif Ali Bukhari
+92-345-8444420
http://sysadminsline.com
http://kashifbukhari.com
zAm
Havaldaar
Posts: 148
Joined: Wed Oct 19, 2005 9:28 am
Location: Pakistan, Karachi
Contact:

Post by zAm »

Hello,
kbukhari .. yes it's easiest way that using notepad files for IP/MAC'S instead of writing long codes ... but LinuxFreak post is damn good to clear any point for a Linux newbie. Thanks
Regards,
zAm (Lyarianz Internet Cable Network)
Proud To Be Lyarianz !
Post Reply