LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-26-2006, 12:11 PM   #1
deepak rawat
Member
 
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 202.0.0.0/255.255.255.0


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


acl restrictURL url_regex -i download
http_access deny restrictUrl


acl xyz src 202.0.0.0/255.255.255.0
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 202.0.0.1 can download wht he wat bt nt rest of others ip
 
Old 04-27-2006, 07:27 AM   #2
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

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

acl ban_comps src 202.0.0.1
http_access deny ban_comps

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

--
Prasanta
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:36 AM.

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