LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   how to restrict download from internet for specific ip's only (https://www.linuxquestions.org/questions/linux-networking-3/how-to-restrict-download-from-internet-for-specific-ips-only-439042/)

deepak rawat 04-26-2006 12:11 PM

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

prasanta 04-27-2006 07:27 AM

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


All times are GMT -5. The time now is 02:20 PM.