venkat123 Posted October 23, 2008 Share Posted October 23, 2008 Iam blocking some web sites using squid in RHEL 5.(Tikanga) Kernel 2.6.18-8.el5. It blocks the same website for all the users. I want to give access of blocked website to few users. Can anyone tell me how to do it? Link to comment https://forums.phpfreaks.com/topic/129724-help-with-squid-cofiguration/ Share on other sites More sharing options...
JPC-Daniel Posted October 23, 2008 Share Posted October 23, 2008 To allow http_access for some IP or access you need to define ACL (access control list) to work with squid proxy server. Squid configuration file located at /etc/squid/squid.conf. Open file using a text editor: # vi /etc/squid/squid.conf Please try this one for some single IP address: ------------------------------------------------ acl all src 0.0.0.0/0.0.0.0 acl allow_list src 10.0.0.0/255.255.0.0 http_access allow allow_list http_access deny all If you want to give access to some specfic range of IP: ------------------------------------------------------- acl our_networks src 192.168.1.0/24 192.168.2.0/24 http_access allow our_networks http_access deny all And finally Save and close the file. Start squid proxy server by using command given below: ------------------------------------------------------------------------------------------- chkconfig squid on /etc/init.d/squid start JPC-Daniel ____________ JaguarPC.com Link to comment https://forums.phpfreaks.com/topic/129724-help-with-squid-cofiguration/#findComment-672677 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.