how can Create These ACL in Squid

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

how can Create These ACL in Squid

Postby umairfiza » Tue Nov 22, 2005 4:37 pm

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

Postby LinuxFreaK » Wed Nov 23, 2005 2:02 am

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:

Postby kbukhari » Mon Jan 16, 2006 3:12 am

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:

Postby zAm » Mon Jan 16, 2006 1:14 pm

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 !


Return to “General”

Who is online

Users browsing this forum: No registered users and 1 guest