Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Network Troublshooting => Linux Proxy Server Support => Topic started by: ilyasmd on September 29, 2009, 08:22:04 AM

Title: Allow blocked sites to some IP's
Post by: ilyasmd on September 29, 2009, 08:22:04 AM
Hi,
    I am able to block sites using following.

acl PornSites url_regex "/usr/local/squid/etc/pornlist"
http_access deny PornSites

I would like to allow admin users or IP's to access blocked sites also, can anyone help..

Thanks in advance.

M.ilyas
Title: Re: Allow blocked sites to some IP's
Post by: kaushalpatel1982 on September 30, 2009, 07:25:01 AM
1. Create an ACL that give allowed IP Addresses like :

acl my_net src 10.10.10.0/255.255.255.0
acl allow_all src 10.10.10.1/255.255.255.255
acl PornSites url_regex "/usr/local/squid/etc/pornlist"

2. Apply HTTP access policy as give below :
http_access allow allow_all
http_access deny PornSites
http_access allow my_net

3. Restart squid proxy service and check you settings.

Best of Luck