Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 03-01-2010, 12:31 AM   #1
LQ Newbie
Registered: Jan 2010
Posts: 6

Rep: Reputation: 1
How can I allow specific IP to access a download on squid plz help!!!!

Hi everybody ,i am new user linux ,
i have been studying linux for 3 month ,so i have solved some problems related with server part.
The problem i have is the squid access.Can I allow some IP's to download files on squid.I mean i already give access to download by reply_body tag,and i want to give permission only one specific IP for unlimit access to download.Is there any solution.

Best regards,

Last edited by semkg; 03-01-2010 at 12:35 AM.
Old 03-01-2010, 03:53 PM   #2
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
Old 03-01-2010, 04:12 PM   #3
Registered: Jan 2010
Distribution: Debian, Centos, Ubuntu, Slackware
Posts: 361
Blog Entries: 3

Rep: Reputation: 48
create 2 ACL's:

- 1st, describing the IP(s), to which the download will be permitted.
- 2nd, which will describe some media, which is to be downloaded.

- Then create a rule, which will allow to use that download for that IP(s).
Or, on the contrary, disallow everybody, except that IP(s).

acl VIP src
acl DOWNLOAD_MEDIA url_regex .avi
http_access allow VIP DOWNLOAD_MEDIA


http_access deny all
Play with ACLs. But don't forget to make a backup before changing anything.

Though, some details may depend on your Squid version. Consult the official documentation for more details and exapmles.

Here you may choose an appropriate version.

Last edited by Lexus45; 03-01-2010 at 04:15 PM.
Old 03-01-2010, 11:07 PM   #4
LQ Newbie
Registered: Jan 2010
Posts: 6

Original Poster
Rep: Reputation: 1
thanks a lot .I will try .


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Day Specific Access control for Squid Bobbychat Linux - Networking 2 04-04-2011 11:58 AM
how to restrict specific users to access restricted sites in squid subhojit Linux - Security 2 11-07-2009 11:15 AM
download restriction over internet access using squid (proxy server) pankajkarde Linux - Server 4 03-21-2007 02:04 AM
Restricting Download based on total download using Squid,SARG& Webmin jomy Linux - Networking 0 04-27-2005 07:04 AM
Is there any Squid Expert? Plz Help ahmerali Linux - Software 1 10-22-2003 07:03 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:52 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration