mldonkey-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mldonkey-users] Traffic shaping


From: Juan Orti
Subject: Re: [Mldonkey-users] Traffic shaping
Date: Thu, 18 Sep 2003 12:49:44 +0200
User-agent: Mutt/1.3.28i

El miƩ, 17 de sep de 2003, a las 07:21:49 +0900, Georgi Georgiev dijo:
> I saw several posts about traffic shaping mldonkey, but I am looking for a 
> more
> simple approach.
> 
> I want to, if possible, use an approach similar to what I did with Direct
> Connect. I don't like the DC support in mldonkey, so I use dcgui-qt. What I 
> did
> is that I added two IP addresses to my eth0 -- 10.0.0.2 and 10.0.0.12. I also
> patched dclib and dcgui-qt to have a new option that allows an IP address to 
> be
> specified for outgoing connections. So, my dcgui-qt is now using 10.0.0.12 for
> outgoing connections, my NAT router forwards the appropriate DC ports from
> the outside to 10.0.0.12 and my bandwidth limiting script looks like this:
> 
> tc qdisc add dev eth0 root handle 1: htb
> tc class add dev eth0 parent 1:  classid 1:1  htb rate 100Mbit
> tc class add dev eth0 parent 1:1 classid 1:10 htb rate 100Mbit
> tc class add dev eth0 parent 1:1 classid 1:20 htb rate 350Kbps
> tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip src 
> 10.0.0.12 flowid 1:20
> 
> This works perfecetly with dcgui-qt.
> 
> I wanted to use the same approach with mldonkey so I also forwarded the ports,
> that mldonkey listens on, to 10.0.0.12. This way, when the remote user
> initiates a connection, the bandwidth cap again applies. Regarding locally
> originating connections, though... I don't think there is an option to choose
> the IP address for outgoing connections, right? Is somebody able to create a
> patch similar to what I did with dcgui-qt? OCaml is not something I feel like
> starting to learn.

I think it's better to create a mldonkey user and mark his packets with
iptables, then you can shape those packets.

Bye!

-- 
Jabber: address@hidden
PGP key 1024D/1CE29D5F 2003-09-05
Fingerprint: A191 554E 3466 BDF9 2176  64FA B4C6 A8AE 1CE2 9D5F

Attachment: pgpEpRr8LgFM7.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]