how can Create These ACL in Squid

General discussion about PLUC and Linux in Pakistan.

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
umairfiza
Cadet
 
Posts: 13
Joined: Mon Nov 21, 2005 4:19 pm
WLM: umairfiza@hotmail.com
Yahoo Messenger: umair_fiza@yahoo.com

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
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

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
kbukhari
Major General
 
Posts: 1222
Joined: Sat Dec 31, 2005 12:29 am
Website: http://kashifbukhari.com
Location: Lahore

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 !
zAm
Havaldaar
 
Posts: 148
Joined: Wed Oct 19, 2005 9:28 am
Website: http://www.zubair.moghal.ukonline.co.uk
WLM: z_moghal@hotmail.com
Yahoo Messenger: z_moghal@yahoo.com
Location: Pakistan, Karachi


Return to “%s” General

Who is online

Users browsing this forum: No registered users and 2 guests

cron