From: "per j" Subject: RE: Blocking downloads (rough solution) Date: Wed, 05 Feb 2003 16:31:37 +0000 Sender: netfilter-admin@lists.netfilter.org Message-ID: Mime-Version: 1.0 Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; format=flowed; charset="us-ascii" Content-Transfer-Encoding: 7bit To: netfilter@lists.netfilter.org The solution can't be done in Netfilter, but would only be an estimate of what you want. Use -m limit to limit the rate of packets. For example, you have to adjust the numbers, to reduce bandwidth of large downloads for all ports: -j ACCEPT -m limit --limit 600/minute -j ACCEPT -m limit --limit 5/sec -j REJECT You're asking more than what Netfilter is supposed to be used for. Try Squid's delay pools. Or try the WRR patch for IProute2's tc tool which has more sophisticated delay pools. Or just split up the bandwidth with the built-in HTB qdisc in IPRoute2. >What I want is that clients cannot, let's say with Internet Explorer or >Mozzila, download files from the internet, but can browse the internet. > > >-----Original Message----- >From: Khanh Tran [mailto:khanh@slc.edu] >Sent: woensdag 5 februari 2003 16:45 >To: 'ASC - Ronald Roeleveld'; 'netfilter@lists.netfilter.org' >Subject: RE: Blocking downloads > > >You can very easily block certain clients based on either MAC address >and/or >IP address. As for the ports, well that depends on the application you >want >to block (ie. FTP, Kazaa, web, NNTP, etc). > >Khanh Tran >Network Operations >Sarah Lawrence College > > > >-----Original Message----- >From: ASC - Ronald Roeleveld [mailto:r.roeleveld@ascinternational.nl] >Sent: Wednesday, February 05, 2003 10:38 AM >To: 'netfilter@lists.netfilter.org' >Subject: Blocking downloads > > >Hey everyone, > >Since I want to spare my download speed, and dont want clients to download >freaking warez, would it be possible to block downloads with iptables for >certain clients??? >And if it's possible which ports need to closed? > >Thanks in advance, >Ronald Roeleveld >System Administrator > >ASCINTERNATIONAL >Vlietweg 17c, 2266 KA, Leidschendam, The Netherlands >Tel. +31 (0)70 3178400, Fax +31 (0)70 3204760 >E-mail: r.roeleveld@ascinternational.nl > , Website: >http://www.ascinternational.nl > > > _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus