Skip to contentSkip to conversation

failed to configure iptables with 2.6.16 kernel

DISCUSSION Hubert Tonneau 2 participants 2 messages Mar 28, 2006

lore
Share & tools
lore
#0 lore raw

When upgrading from 2.6.15 to 2.6.16 I noticed iptables not working anymore.

I traced the problem down to a new 'CONFIG_NETFILTER_XTABLES' compile option that must be set, but I still get some rules rejected as soon as '--destination-port' option is used.

As an example, the following command:
iptables -A eth0in -p udp --destination-port 111 -j DROP
used to work with 2.6.15
but fails with 2.6.16 with the following error message:
iptables: No chain/target/match by that name

#1 lore raw
Quoted 8 lines · Hubert Tonneau

When upgrading from 2.6.15 to 2.6.16 I noticed iptables not working anymore.

I traced the problem down to a new 'CONFIG_NETFILTER_XTABLES' compile option that must be set, but I still get some rules rejected as soon as '--destination-port' option is used.

As an example, the following command:
iptables -A eth0in -p udp --destination-port 111 -j DROP

this sounds like you're missing support for the tcp/udp match. This functionality is implemented in xt_tcpudp.{c,ko}, which is compiled as soon as x_tables is compiled.

What does cat /proc/netip_tables_matches show before and after executing your iptables command, and before/after manually executing modprobe xt_tcpudp.

Also, what is your iptables program version?

Please follow-up-to [email protected], but keep me in Cc

Signature · 5 lines
- Harald Welte <[email protected]>                 http://netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie