Skip to contentSkip to conversation

Unable to use MARK target with iptables-1.3.7

DISCUSSION Andrew Beverley 2 participants 3 messages Feb 7, 2007 netfilter

lore
Share & tools
lore
#0 lore raw

I have sent this to the users list and had no replies, so am sending to this list. I know of at least one other person having the same problem.

When I try to use the MARK target with iptables 1.3.7:

iptables -t mangle -A POSTROUTING -p tcp --dport 22 -j MARK \
--set-mark 10

I get:

FATAL: Module ip_tables not found.

- ip_tables is compiled into the kernel
- if I change the target to LOG it works okay
- if I drop back to 1.3.6 it works okay
- I have tried kernels 2.6.17.4 and 2.6.18.2

Is this a bug with 1.3.7 or am I doing something wrong?

Andy Beverley

#1 lore raw
Quoted 10 lines · Andrew Beverley

When I try to use the MARK target with iptables 1.3.7:

iptables -t mangle -A POSTROUTING -p tcp --dport 22 -j MARK \
--set-mark 10

I get:

FATAL: Module ip_tables not found.

Is this a bug with 1.3.7 or am I doing something wrong?

Weird, this message comes from modprobe that is invoked by iptables. Does iptables -L -n show the rule that you just inserted?

Signature · 2 lines
The dawn of the fourth age of Linux firewalling is coming; a time of
great struggle and heroic deeds -- J.Kadlecsik got inspired by J.Morris
#2 lore raw
Quoted 5 lines
Quoted 5 lines

When I try to use the MARK target with iptables 1.3.7:

iptables -t mangle -A POSTROUTING -p tcp --dport 22 -j MARK \
--set-mark 10

Quoted 8 lines
Quoted 5 lines

I get:

FATAL: Module ip_tables not found.

Is this a bug with 1.3.7 or am I doing something wrong?

Weird, this message comes from modprobe that is invoked by iptables. Does iptables -L -n show the rule that you just inserted?

Interesting, yes it does show the rule. I never thought to even check because I got that nasty error message. If the rule is there then I assume that everything is working? There's just the text of an error message.

If it would help, and when I get some time, I can try with iptables as a module instead of compiled in.

Andy Beverley