From: "George Peverill" Subject: I have to become a bandwidth Nazi , Netfilter useable. Date: Sat, 1 Mar 2003 09:57:43 -0400 Sender: netfilter-admin@lists.netfilter.org Message-ID: <000201c2dffa$8ad18480$0c05a8c0@Sherby> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0003_01C2DFD9.03BFE480" Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: To: netfilter@lists.netfilter.org This is a multi-part message in MIME format. ------=_NextPart_000_0003_01C2DFD9.03BFE480 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I am running a small network (about 10-12 machines) with a linux gateway machine providing http/ssh/vpn(pptp)/firewalling/NAT Recently we've had someone that loves to hog bandwidth a tad (ie: downloading movies at 150-200k/s) while we slave away with the remaining 50k/s or so of bandwidth. I was wondering and I think its possible) if I could remedy this without resorting to compilicated QoS / CBQ crap. Basically is it possible to write a rule that'd say drop 25% or maybe 50% of all packets going to his machine from the gateway? (nasty yes agreed) -internal interface is eth0 (192.168.0.x) -external interface is eth1 Is it possible to do it based on his IP (which is known lets say 192.168.0.55 for example sake) or his MAC address which is known. Any help would be greatly appreciated. I dunno how this can be done but im sure someone might be able to figure it out , would have to be done in the PREROUTING where SNAT is done wouldnt it ? ------=_NextPart_000_0003_01C2DFD9.03BFE480 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message
 
I am = running a small=20 network (about 10-12 machines) with a linux gateway machine providing=20 http/ssh/vpn(pptp)/firewalling/NAT
Recently we've had=20 someone that loves to hog bandwidth a tad (ie: downloading movies at = 150-200k/s)=20 while we slave away
with = the remaining=20 50k/s or so of bandwidth.  I was wondering and I think its = possible) if I=20 could remedy this without resorting
to = compilicated QoS=20 / CBQ crap.  Basically is it possible to write a rule that'd say = drop 25%=20 or maybe 50% of all packets going to his machine from the gateway? = (nasty yes=20 agreed)
 
-internal interface=20 is eth0 (192.168.0.x)
-external interface=20 is eth1
 
Is it = possible to do=20 it based on his IP (which is known lets say 192.168.0.55 for example = sake) or=20 his MAC address which is known.
 
Any = help would be=20 greatly appreciated.  I dunno how this can be done but im sure = someone=20 might be able to figure it out , would have to be done in the PREROUTING = where=20 SNAT is done wouldnt it ?
 
 
------=_NextPart_000_0003_01C2DFD9.03BFE480--