Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-26-2006, 01:11 PM   #1
deepak rawat
Registered: Apr 2006
Posts: 37

Rep: Reputation: 15
how to restrict download from internet for specific ip's only

i hav set proxy server in such a way tht download is restricted to all the ip's

i hav done this in my /etc/squid/squid.conf

acl restrictURL url_regex -i download
http_access deny restrictUrl

acl xyz src
http_access allow xyz

now the problem is that i want to restrict the download for specfic ip's nt all the ip's
how can i do this
i mean if i wnt tht the ip can download wht he wat bt nt rest of others ip
Old 04-27-2006, 08:27 AM   #2
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
Put this in you squid.conf,

acl ban_comps src
http_access deny ban_comps

This restricts the machine to stop access to the outer world.



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
To restrict a specific user simi_virgo Linux - Newbie 1 02-26-2005 01:03 AM
stopping specific ip's from accessing apache lawadm1 Linux - Software 7 09-26-2004 03:40 PM
Allow SSH from specific IP's ONLY. m15a4 Linux - Security 3 12-29-2003 05:02 AM
Allow only specific IP's to log to FTP server ganninu Linux - Security 5 12-11-2003 08:26 AM
how can i restrict /etc/motd for a specific user mtest Programming 8 10-30-2003 02:41 AM

All times are GMT -5. The time now is 09:08 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