1826399 Members
4344 Online
109692 Solutions
New Discussion

Squid proxy

 
logaraman
Regular Advisor

Squid proxy

We have ur Proxy(squid) configured on redhat Linux 9. we have restricted download access for all users. Now we require to give access only to a particular user download access but only to a particular URL as we dont want the user to download from other URLS.Anyone could help us around
4 REPLIES 4
Ivan Ferreira
Honored Contributor

Re: Squid proxy

Do you have authentication by user or restrictions by IP?

You can allow access to that URL using acls, but the order of the acls matter in the configuration.

I need your squid.conf to indicate where to put the acl.

The ACL could be something like this:

acl allowed_site dstdomain specific.domain.com
http_access allow allowed_site
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Muthukumar_5
Honored Contributor

Re: Squid proxy

You have to setup acl(s) and http_access method to control this.

Use url_regex or urlpath_regex acl to match url's and control with http_access method.

Post the url name and access control lists with http_access method to help you correctly.

--
Muthu
Easy to suggest when don't know about the problem!
dipesh_2
Regular Advisor

Re: Squid proxy

You can restrict sites and you can restrict and allow some users throuh acl

acl allowed_site dstdomain specific.domain.com
http_access allow allowed_site
you need to authonticate user to allow download from web.
Vipulinux
Respected Contributor

Re: Squid proxy

Hi
for a specific user access you will first need to make squid use an auth type...else just use the IP address to restrict and allow the user...but the catch here will be that if some other user logs on the box that has access allowed he will be able to browse.

Cheers