RE: [squid-users] setup url_regex for individual users

From: Hirantha Wijayawardena <hirantha@dont-contact.us>
Date: Thu, 21 Apr 2005 14:01:11 +0600

Thank you for the tip

I achieved this by doing like this.

/etc/squid/squid.conf:
Acl user1 src 192.168.100.3/32
Acl user1_sites dstdomain url_regex -i "/etc/squid/sites"

http_access deny user1 !user1_sites
http_access allow user1

/etc/squid/sites:
..redhat.com
..sun.com
..java.com

It working like a charm

Thanks and regards

- Hirantha

-----Original Message-----
From: squidrunner team [mailto:squidrunner_dev@yahoo.com]
Sent: Thursday, April 21, 2005 12:47 PM
To: Hirantha Wijayawardena; squid-users@squid-cache.org
Subject: Re: [squid-users] setup url_regex for individual users

> How do we assign url_regex which will allow only
> specified sites in the
> url_regex; and only to effect particular machine (IP
> address)

For managing sites then you have to use dstdomain or
dstdom_regex type of acl (not Acl).

 
> Acl user1 src 192.168.100.3
> Acl sites url_regex .redhat.com .oracle.com .sun.com
>
> http_access allow user1 sites
>

Try as like as,

acl user1 src 192.168.100.3/32
# generally ip-address is good to have netmask
acl sites dstdomain .redhat.com .oracle.com .sun.com
http_access allow user1 sites
http_access deny all

It will allow user1 only to access redhat, oracle and
sun sites. Others will be restricted to access WEB.

Best Regards,
Squid Runner Team
squidrunner_dev at yahoo dot com

SquidRunner - An Automatic Squid Builder
Web: http://freshmeat.net/projects/squidrunner/
Support: runnersupport at gmail dot com

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Received on Thu Apr 21 2005 - 02:01:21 MDT

This archive was generated by hypermail pre-2.1.9 : Sun May 01 2005 - 12:00:04 MDT