Operating System - Linux
1753479 Members
5232 Online
108794 Solutions
New Discussion юеВ

plz help me create an acl in squid

 
SOLVED
Go to solution
Maaz
Valued Contributor

plz help me create an acl in squid

following is the configuration i am using in squid.conf

acl mynet src 10.0.0.0/24
http_acces allow mynet

there is a client(10.0.0.131) to whom I just want to allow the following
1, http://www.printronix.com
2, http://www.opti-ups.com/
3, http://www.apc.com/
4, http://www.metrologic.com/corporate/

plz help me create the desired acl

Regards
3 REPLIES 3
Ivan Ferreira
Honored Contributor
Solution

Re: plz help me create an acl in squid

Create a file called /etc/squid/allowed_sites.list and add the sites one by line.

Create an acl like this:

acl restricted_ip src 10.0.0.131
acl allowed_sites url_regex "/etc/squid/allowed_sites.list"
http_access allow restricted_ip allowed_sites

You can also use a file to list the restricted ip addresses.


Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Luk Vandenbussche
Honored Contributor

Re: plz help me create an acl in squid

Maaz
Valued Contributor

Re: plz help me create an acl in squid

Thanks for the quick/prompt and nice help ;)

Regards
Maaz