xtables use of NFPROTO_UNSPEC as wildcard incomplete :-(
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 25 lines · Christian von Roques
I have a problem with your changeset below:
commit
ab4f21e6fb1c09b13c4c3cb8357babe8223471bdAuthor: Jan Engelhardt <[email protected]> Date: Wed Oct 8 11:35:20 2008 +0200netfilter: xtables: use
NFPROTO_UNSPECin more extensionsLots of extensions are completely family-independent, so squash some code.
Signed-off-by Jan Engelhardt <[email protected]>Signed-off-by Patrick McHardy <[email protected]>I have a production server where I had to replace a failed on-board Ethernet port with a 3c905 requiring a very new kernel (due to a regression in the 3c905 driver, which was just recently fixed). This server requires
netfilter/xt_MARK.cfor IPv4. Unfortunately your changes to makeNFPROTO_UNSPECact like a protocol wildcard seem incomplete. -j MARK does not work anymore. ReplacingNFPROTO_UNSPECwithNFPROTO_IPV4inxt_MARK.cfixed my problem, but obviously disabled the MARK target for all other protocols (which I fortunately don't need).
Quoted 4 lines
Is this a know problem?
Are you able to reproduce the problem?
The simplest command which used to fail was:
iptables -t mangle -A OUTPUT -j MARK --set-mark0x14
This is probably the same as
http://marc.info/?l=netfilter&m=123174116204956&w=2 and only manifests itself under the condition that kernel < 2.6.28 && iptables <= 1.4.0. Most people should-have (read it as a recommendation) upgraded their iptables long ago, really, since some distros just keep on shipping old stuff like almost forever.
Quoted 17 lines · Jan Engelhardt
Quoted 10 lines · Christian von Roques
I have a production server where I had to replace a failed on-board Ethernet port with a 3c905 requiring a very new kernel (due to a regression in the 3c905 driver, which was just recently fixed). This server requires
netfilter/xt_MARK.cfor IPv4. Unfortunately your changes to makeNFPROTO_UNSPECact like a protocol wildcard seem incomplete. -j MARK does not work anymore. ReplacingNFPROTO_UNSPECwithNFPROTO_IPV4inxt_MARK.cfixed my problem, but obviously disabled the MARK target for all other protocols (which I fortunately don't need).Quoted 4 lines
Is this a know problem?
Are you able to reproduce the problem?
The simplest command which used to fail was:
iptables -t mangle -A OUTPUT -j MARK --set-mark0x14
Quoted 6 lines
This is probably the same as
http://marc.info/?l=netfilter&m=123174116204956&w=2 and only manifests itself under the condition that kernel < 2.6.28 && iptables <= 1.4.0. Most people should-have (read it as a recommendation) upgraded their iptables long ago, really, since some distros just keep on shipping old stuff like almost forever.
I'm not sure what you mean, the problem that patch fixed affects kernel == 2.6.28 and all iptables versions as long as you use anything but revision 0.
Anyways, I'll send the patch to -stable shortly.