netdev
[Top] [All Lists]

Re: IMQ / new Dummy device post.

To: jamal <hadi@xxxxxxxxxx>
Subject: Re: IMQ / new Dummy device post.
From: Martin Josefsson <gandalf@xxxxxxxxxxxxxx>
Date: Sun, 18 Apr 2004 23:23:52 +0200
Cc: Andy Furniss <andy.furniss@xxxxxxxxxxxxx>, netdev@xxxxxxxxxxx
In-reply-to: <1082321582.1039.319.camel@xxxxxxxxxxxxxxxx>
References: <407E5905.9070108@xxxxxxxxxxxxx> <1082031313.1039.13.camel@xxxxxxxxxxxxxxxx> <407EE3E5.8060200@xxxxxxxxxxxxx> <1082087553.1035.287.camel@xxxxxxxxxxxxxxxx> <4080356F.4020609@xxxxxxxxxxxxx> <1082145341.1026.125.camel@xxxxxxxxxxxxxxxx> <40810957.6030209@xxxxxxxxxxxxx> <1082203795.1043.18.camel@xxxxxxxxxxxxxxxx> <4081A824.5020107@xxxxxxxxxxxxx> <1082298480.1041.94.camel@xxxxxxxxxxxxxxxx> <4082AE45.7030101@xxxxxxxxxxxxx> <1082321582.1039.319.camel@xxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
On Sun, 2004-04-18 at 22:53, jamal wrote:
> On Sun, 2004-04-18 at 12:35, Andy Furniss wrote:
> 
> > Connmark is a netfilter patch which is required by the type of P2P 
> > limiting/marking projects on sf.net that could mark bittorrent traffic. 
> 
> just from the sounds of it, appears it may be able to mark a group of
> related flows with the same fwmark.

connmark is like nfmark but it marks the connection-entry in
ip_conntrack instead. And then you can "restore" that mark to the nfmark
of the packet at any time you want with filter rules.

> > will be OK with connbytes sometime. I don't really know how to use it, 
> > but if it is possible to mark egress connections in output and have 
> > connmark match their incoming packets that would be a solution. I 
> > haven't got a clue if connmark can do this, though, just speculating.
> >
> > Does anyone else know, and why it's not compatable with connbytes?
> > 
> 
> some of the netfilter people should be able to help.

with connmark you mark the connection, and then you can "restore" that
mark to packets in either direction in the mangle table of iptables.

connmark isn't incompatible with connbytes. It's just that both patches
modify the same part of the code, a struct, and the patch program can't
handle that. You'll have to fix some rejects by hand, that's it.

-- 
/Martin

Attachment: signature.asc
Description: This is a digitally signed message part

<Prev in Thread] Current Thread [Next in Thread>