Skip to contentSkip to conversation

State of the conntrack match

DISCUSSION Christoph Lenggenhager 3 participants 4 messages Apr 30, 2007 – May 2, 2007 netfilter

lore
Share & tools
lore
#0 lore raw

Hi

I would like to use a conntrack match (i.e. -m conntrack --ctorigdst ...), but I miss the ability to filter for the original source and destination ports.

When going through the archives of netfilter-devel, I see that the conntrack match has originally been developed by Marc Boucher.
Back in 2002, Henrik Norström wrote a patch to it that would precisely fit my needs.
(cf. http://lists.netfilter.org/pipermail/netfilter-devel/2002-July/008382.html)
Unfortunately, this effort seems to have died with the advise from Harald Welte to contact Marc Boucher directly.

My questions are now:
- What is the status of the conntrack match? Is it just "there" to be used, but nobody ever wants to touch it again?
- Would it be appreciated to take up Henrik's (old) ideas? Is there a chance to take such changes into the main tree? Since I do not know
better: Is this a "good" idea or does it make you scream and run away?

Well, this is more a user-related question:
- Assuming conntrack match is too old and out-dated, is there an alternative way to filter based on the original data (addresses and ports) of a packet?

Thanks for any reply.

Kind regards,
christoph

#1 lore raw

Hi

I would like to use a conntrack match (i.e. -m conntrack --ctorigdst ...), but I miss the ability to filter for the original source and destination ports.

When going through the archives of netfilter-devel, I see that the conntrack match has originally been developed by Marc Boucher.
Back in 2002, Henrik Nordström wrote a patch to it that would precisely fit my needs.
(cf. http://lists.netfilter.org/pipermail/netfilter-devel/2002-July/008382.html)
Unfortunately, this effort seems to have died with the advise from Harald Welte to contact Marc Boucher directly.

My questions are now:
- What is the status of the conntrack match? Is it just "there" to be used, but nobody ever wants to touch it again?
- Would it be appreciated to take up Henrik's (old) ideas? Is there a chance to take such changes into the main tree? Since I do not know
better: Is this a "good" idea or does it make you scream and run away?

Well, this is more a user-related question:
- Assuming conntrack match is too old and out-dated, is there an alternative way to filter based on the original data (addresses and ports) of a packet?

Thanks for any reply.

Kind regards,
christoph

PS:
If this is a repost, please excuse, but I couldn't find my message in the archives, so I resent it. Sorry for any inconveniences.

#2 lore raw

ons 2007-05-02 klockan 08:14 +0200 skrev Christoph Lenggenhager:

Quoted 7 lines

When going through the archives of netfilter-devel, I see that the conntrack match has originally been developed by Marc Boucher.
Back in 2002, Henrik Nordström wrote a patch to it that would precisely fit my needs.
(cf. http://lists.netfilter.org/pipermail/netfilter-devel/2002-July/008382.html)
Unfortunately, this effort seems to have died with the advise from Harald Welte to contact Marc Boucher directly.

It mainly died due to the troubles in extending existing matches at the time, which has since then been solved with the extension versioning.

So it should be pretty straight forward to extend the conntrack match with the needed functionality today. See for example xt_multiport for an example how to extend an existing match.

Regards
Henrik

#3 lore raw
In reply to Christoph Lenggenhager
Quoted 13 lines · Christoph Lenggenhager

I would like to use a conntrack match (i.e. -m conntrack --ctorigdst ...), but I miss the ability to filter for the original source and destination ports.

When going through the archives of netfilter-devel, I see that the conntrack match has originally been developed by Marc Boucher. Back in 2002, Henrik Norström wrote a patch to it that would precisely fit my needs.
(cf.
http://lists.netfilter.org/pipermail/netfilter-devel/2002-July/008382.html)
Unfortunately, this effort seems to have died with the advise from Harald Welte to contact Marc Boucher directly.

Quoted 3 lines

My questions are now:
- What is the status of the conntrack match? Is it just "there" to be used, but nobody ever wants to touch it again?

The xt_conntrack match is not outdated. In fact, it ought to replace xt_state, but xt_state has yet to be removed from the kernel. (xt_state is not even tagged deprecated/obsolete,
maybe we should notify R.Day)

Quoted 9 lines

- Would it be appreciated to take up Henrik's (old) ideas? Is there a chance to take such changes into the main tree? Since I do not know
better: Is this a "good" idea or does it make you scream and run away?

Well, this is more a user-related question:
- Assuming conntrack match is too old and out-dated, is there an alternative way to filter based on the original data (addresses and ports) of a packet?

Quoted 4 lines

Thanks for any reply.

Kind regards,
christoph

Jan