Skip to contentSkip to conversation

Blocking downloads (rough solution)

DISCUSSION per j 1 participant 1 message Feb 5, 2003

lore
Share & tools
lore

per j

author
#0 lore raw

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.

Quoted 39 lines

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:[email protected]]
Sent: woensdag 5 februari 2003 16:45
To: 'ASC - Ronald Roeleveld'; '[email protected]'
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:[email protected]]
Sent: Wednesday, February 05, 2003 10:38 AM
To: '[email protected]'
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

Quoted 9 lines

ASCINTERNATIONAL
Vlietweg 17c, 2266 KA, Leidschendam, The Netherlands Tel. +31 (0)70 3178400, Fax +31 (0)70 3204760
E-mail: [email protected] <mailto:[email protected]> , Website:
http://www.ascinternational.nl <http://www.ascinternational.nl/>

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus