If you are using Squid in Transparent mode you can use many features to restrict your users. I’ll tell you about 2 scenarios with example.
1) You want Block some IP’s to restrict access to some specific sites. Please follow this steps to do that :
Add this Lines to your Squid.conf File.
acl block_ip src “/usr/local/src/block_ip”
acl block_ip_site url_regex “/usr/local/src/block_ip_site”
http_access deny block_ip block_ip_site
Now create /usr/local/src/block_ip file with the IP address you want to restrict. Put one IP in each line. Also create /usr/local/src/block_ip_site file with the Site URL you want to restrict. Put one URL in each line. Now Restart Squid service and see the rules working as you configured.
2) You want Allow some IP’s to allow access to some specific sites. Please follow this steps to do that :
Add this Lines to your Squid.conf File.
acl allow_ip src “/usr/local/src/allow_ip”
acl allow_ip_site url_regex “/usr/local/src/block_ip_allow”
http_access allow allow_ip allow_ip_site
Now create /usr/local/src/allow_ip file with the IP address you want to allow. Put one IP in each line. Also create /usr/local/src/allow_ip_site file with the Site URL you want to allow. Put one URL in each line. Now Restart Squid service and see the rules working as you configured.
I am for that reason blessed by myself found out the following site page. You will essentially mentioned all of us simply just what exactly Document decided to make sure you pay attention to make sure you and additionally then some. Exquisite posting and additionally regards yet again just for achieving this particular basically no toll!
By: Lizbeth Funai on January 17, 2012
at 4:20 pm