Is there a way to force gtkg to always make connections *from* a specified port 
in addition to 
listening on the configured port? (or 2 ports, or whatever).

I'm playing with some funky traffic shaping rules, and I'd like to be able to 
guarantee gtkg a 
minimum download bandwidth. Problem is I can only mark packets from remote 
initiated connections as 
all the locally initiated ones come from random source ports.

Background :

I run linux systems. Linux has great outbound shaping via htb/tc, but useless 
inbound shaping. To 
prevent a runaway p2p download blowing my monthly quota, I run all my p2p stuff 
inside a single kvm 
virtual machine, bound to a tap interface. This allows me to shape the data on 
the tap interface 
using htb/tc and gives me great control over the bandwidth used by my p2p.

Now, I run torrents and gtkg in the same VM. Most of the gnutella stuff I want 
has 1 or maybe 2 slow 
peers, whereas the torrents have lots of fast ones. Thus I get 1 or 2 
connections on gtkg and 4-500 
on the torrents. When you squirt that through the shaper, you get a proportion 
of very little 
through to gtkg. I can split the shaper up any way I like, so if I can mark the 
packets to/from gtkg 
with tc filter rules, I can guarantee a chunk of bandwidth for them and they 
won't get swamped by 
torrents with lots of peers.

The easiest way to mark them is based on source/dest addresses.. thus my 
question.

Regards,
Brad
-- 
Dolphins are so intelligent that within a few weeks they can
train Americans to stand at the edge of the pool and throw them
fish.

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
gtk-gnutella-devel mailing list
gtk-gnutella-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel

Reply via email to