Skip to contentSkip to conversation

Problem with CONNMARK

DISCUSSION Tomek Macioszek 3 participants 4 messages Oct 29, 2004

lore
Share & tools
lore
#0 lore raw

Hi!
I have problems with use target CONNMARK. When I type command :
iptables -j CONNMARK -h
output gives me information that iptables is compiled with this options, but when I use command like this i.e.:
iptables -t mangle -A PREROUTING -p tcp -j CONNMARK --restore-mark
system couldn't do this. It write to me :
iptables: No chain/target/match by that name

My system: FEDORA 2
KERNEL: 2.6.5 ( compiled with target CONNMARK)
IPTABLET: v 1.2.9.
What is wrong wiht it??
Sorry for my English
Best regards
Tomek

#1 lore raw

You need to get the latest iptables source and recompile it against the kernel source you are running.

Quoted 18 lines · Tomek Macioszek

Hi!
I have problems with use target CONNMARK. When I type command :
iptables -j CONNMARK -h
output gives me information that iptables is compiled with this options, but when I use command like this i.e.:
iptables -t mangle -A PREROUTING -p tcp -j CONNMARK --restore-mark system couldn't do this. It write to me :
iptables: No chain/target/match by that name

My system: FEDORA 2
KERNEL: 2.6.5 ( compiled with target CONNMARK)
IPTABLET: v 1.2.9.
What is wrong wiht it??
Sorry for my English
Best regards
Tomek

Signature · 1 line
Bla bla
#2 lore raw
In reply to Tomek Macioszek
Quoted 9 lines · Tomek Macioszek

Hi!
I have problems with use target CONNMARK. When I type command :
iptables -j CONNMARK -h
output gives me information that iptables is compiled with this options, but when I use command like this i.e.:
iptables -t mangle -A PREROUTING -p tcp -j CONNMARK --restore-mark system couldn't do this. It write to me :
iptables: No chain/target/match by that name

Quoted 7 lines

My system: FEDORA 2
KERNEL: 2.6.5 ( compiled with target CONNMARK)
IPTABLET: v 1.2.9.
What is wrong wiht it??
Sorry for my English
Best regards
Tomek

it means the "iptables" command (/sbin/iptables) on FC2 has been compiled with awareness of the CONNMARK target, but your kernel does not have support for it
(ls /lib/modules/uname -r/kernel/net/ipv4/netfilter/ipt_CONNMARK.ko)

you need to grab patch-o-matic from:
http://netfilter.org/files/patch-o-matic-ng-20040621.tar.bz2

and follow the instructions. a summary:

        cd /path/to/pom
        export KERNEL_DIR="/path/to/kernel_src"
        export IPTABLES_DIR="/path/to/iptables_src"
        ./runme pending
        ./runme extra/CONNMARK
        cd $KERNEL_DIR && make menuconfig [...]
        cd $IPTABLES_DIR && make && make install

-j

Signature · 1 line
Jason Opperisano <[email protected]>