[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Mldonkey-users] Traffic shaping
From: |
Goswin Brederlow |
Subject: |
Re: [Mldonkey-users] Traffic shaping |
Date: |
14 Mar 2003 11:46:07 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Portable Code) |
Juan <address@hidden> writes:
> El Jueves, 6 de Marzo de 2003 18:51, escribiste:
> > Juan <address@hidden> writes:
> > > Hi! I'm trying to enhace the wondershaper script to restric the traffic
> > > generated by mldonkey. I have created a mldonkey user with UID 1003 and I
> > > want to mark every packet with iptables:
> > >
> > > address@hidden:~# iptables -A OUTPUT -t mangle -m owner --uid-owner 1003
> > > -j
> > > MARK --set-mark 1
> > > iptables: Invalid argument
> >
> > This line works, try it:
> > iptables -t mangle -A OUTPUT -m owner --uid-owner mldonkey -p tcp --dport
> > 4001 -j MARK --set-mark 101
> >
> > The marking doesn't realy help you though. You will want to use
> > connmark to mark this and all further packets of a connections
> > (including incoming). But that needs patching the kernel.
> >
> > MfG
> > Goswin
>
> Hi! thanx for the help. Now I can mark the packets of the mldonkey user, but
> I'm having a problem when mldonkey is running, when I'm browsing I receive a
> lot of errors: "(113) No route to host". I'm using a modification of the
> wshaper script, and I think I don't fill the buffers of the router (an ADSL
> router).
Many routers have problems handling a lot of connections and mldonkey
uses a lot. Try limiting the number of connections in mldoneky to 50
for testing purposes.
> I have investigated about connmark and I have patched the kernel. But I don't
> know how to use it. I have tried this:
>
> iptables -A OUTPUT -t mangle -m owner --uid-owner 1003 -j CONNMARK --set-mark
> 1
> iptables -A OUTPUT -t mangle -m connmark --mark 1 -j MARK --set-mark 1
>
> I suppose that "CONNMARK" mark is different that "MARK" mark, isn't it? I
> don't know how to attach a filter with tc to filter by connmark, so I have
> done that little trick.
Thats what I would do too. Not sure if tc can match connmark.
> Should I put something in the INPUT chain? I'm lost.
You can't realy shape input except by dropping it.
MfG
Goswin
Re: [Mldonkey-users] Traffic shaping, jblanco, 2003/03/06
Re: [Mldonkey-users] Traffic shaping, mdew, 2003/03/10