* cooperation between connection tracking and traffic shaping
@ 2006-11-01 10:11 Yakov Lerner
2006-11-01 10:21 ` Filip Sneppe
0 siblings, 1 reply; 4+ messages in thread
From: Yakov Lerner @ 2006-11-01 10:11 UTC (permalink / raw)
To: netfilter
To the sip conntrack module, I added the code that creates
the corresponding QoS rule (via netlink) when conntrack detects
the port of the voice traffic (qos/tc by itself could not shape
dynamically by conntrack ports ..., and I wanted traffic
shaping on voice traffic by conntrack-recognized ports).
It worked. But I think it was ugly because:
(1) I want qos-to-conntrack cooperation for more protocols
with dynamic ports ... can I have it/do it without hacking every
conntrack module ?
(2) maybe there is a much easier way to achieve this
qos-to-conntrack cooperation [than hacking conntrack modules] ?
Thanks
Yakov
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: cooperation between connection tracking and traffic shaping
2006-11-01 10:11 cooperation between connection tracking and traffic shaping Yakov Lerner
@ 2006-11-01 10:21 ` Filip Sneppe
2006-11-01 10:45 ` Eric Leblond
0 siblings, 1 reply; 4+ messages in thread
From: Filip Sneppe @ 2006-11-01 10:21 UTC (permalink / raw)
To: Yakov Lerner; +Cc: netfilter
Hi Yakov,
On 11/1/06, Yakov Lerner <iler.ml@gmail.com> wrote:
> It worked. But I think it was ugly because:
>
> (1) I want qos-to-conntrack cooperation for more protocols
> with dynamic ports ... can I have it/do it without hacking every
> conntrack module ?
>
> (2) maybe there is a much easier way to achieve this
> qos-to-conntrack cooperation [than hacking conntrack modules] ?
>
Yes, the general way to do this, is to use the MARK target from
netfilter to mark the packets you want to QoS and then use the fwmark
from within your tc rules.
That works without hacking any code. Note that the fwmarks can also
be used between netfilter and the advanced routing framework in the
Linux kernel (ip route, ip rule, etc.)
Best regards,
Filip
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: cooperation between connection tracking and traffic shaping
2006-11-01 10:21 ` Filip Sneppe
@ 2006-11-01 10:45 ` Eric Leblond
2006-11-02 20:02 ` Yakov Lerner
0 siblings, 1 reply; 4+ messages in thread
From: Eric Leblond @ 2006-11-01 10:45 UTC (permalink / raw)
To: Filip Sneppe; +Cc: netfilter
[-- Attachment #1: Type: text/plain, Size: 918 bytes --]
Hi,
Le mercredi 01 novembre 2006 à 11:21 +0100, Filip Sneppe a écrit :
> Hi Yakov,
>
> On 11/1/06, Yakov Lerner <iler.ml@gmail.com> wrote:
> > It worked. But I think it was ugly because:
> > (2) maybe there is a much easier way to achieve this
> > qos-to-conntrack cooperation [than hacking conntrack modules] ?
> >
> Yes, the general way to do this, is to use the MARK target from
> netfilter to mark the packets you want to QoS and then use the fwmark
> from within your tc rules.
>
> That works without hacking any code. Note that the fwmarks can also
> be used between netfilter and the advanced routing framework in the
> Linux kernel (ip route, ip rule, etc.)
Yes, but you have to use CONNMARK on top of that to be able to put the
mark on all packets of a connections. It also works with RELATED
packets. This will be useful with SIP ...
BR,
--
Eric Leblond <eric@inl.fr>
INL
[-- Attachment #2: Ceci est une partie de message numériquement signée --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: cooperation between connection tracking and traffic shaping
2006-11-01 10:45 ` Eric Leblond
@ 2006-11-02 20:02 ` Yakov Lerner
0 siblings, 0 replies; 4+ messages in thread
From: Yakov Lerner @ 2006-11-02 20:02 UTC (permalink / raw)
To: Eric Leblond; +Cc: Filip Sneppe, netfilter
On 11/1/06, Eric Leblond <eric@inl.fr> wrote:
> Hi,
>
> Le mercredi 01 novembre 2006 à 11:21 +0100, Filip Sneppe a écrit :
> > Hi Yakov,
> >
> > On 11/1/06, Yakov Lerner <iler.ml@gmail.com> wrote:
> > > It worked. But I think it was ugly because:
> > > (2) maybe there is a much easier way to achieve this
> > > qos-to-conntrack cooperation [than hacking conntrack modules] ?
> > >
> > Yes, the general way to do this, is to use the MARK target from
> > netfilter to mark the packets you want to QoS and then use the fwmark
> > from within your tc rules.
> >
> > That works without hacking any code. Note that the fwmarks can also
> > be used between netfilter and the advanced routing framework in the
> > Linux kernel (ip route, ip rule, etc.)
>
> Yes, but you have to use CONNMARK on top of that
And what's the solution for 2.4 ?
> to be able to put the
> mark on all packets of a connections. It also works with RELATED
> packets. This will be useful with SIP ...
Yakov
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-11-02 20:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-01 10:11 cooperation between connection tracking and traffic shaping Yakov Lerner
2006-11-01 10:21 ` Filip Sneppe
2006-11-01 10:45 ` Eric Leblond
2006-11-02 20:02 ` Yakov Lerner
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.