Skip to contentSkip to conversation

NEW MATCH -m statmux

DISCUSSION Patrick Schaaf 1 participant 2 messages Nov 28, 2004 netfilter

lore
Share & tools
lore
#0 lore raw

Hello netfilter developers,

find attached a .tar.gz against pom-ng, introducing a new directory statmux/. It represents a new match, '-m statmux', which would be typically used like this:

ipt... -i eth0 -m statmux --statmux-size 4 --statmux-way 0 -j ROUTE --oif eth1 ipt... -i eth0 -m statmux --statmux-size 4 --statmux-way 1 -j ROUTE --oif eth2 ipt... -i eth0 -m statmux --statmux-size 4 --statmux-way 2 -j ROUTE --oif eth3 ipt... -i eth0 -m statmux --statmux-size 4 --statmux-way 3 -j ROUTE --oif eth4

Input for the multiplexing decision is source and destination IP address of the packet under inspection. Both directions result in the same choice of way. Distribution should be adequate (jhash_2words(saddr,daddr,0))

Patches both userlevel iptables and kernel, in the obvious ways for a new match.

There is a patch for 2.4 and one for 2.6, identical at the core. The 2.6 patch has some bizarre ornaments, to spice it up a bit.

I had the need, so I wrote it. I wouldn't mind if it were put into patch-o-matic. Any and all comments will be appreciated.

enjoy
Patrick

#1 lore raw

Damn. tar file was missing statmux/iptables/ user level part. Thus, a resend...