Problem with CONNMARK
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
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 nameMy 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
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]>
Quoted 1 line · Jason Opperisano
cd $IPTABLES_DIR && make && make install
heh--left out the part where you grab the iptables source as well:
http://netfilter.org/files/iptables-1.2.11.tar.bz2
-j
Signature · 1 line
Jason Opperisano <[email protected]>