Skip to contentSkip to conversation

MARK

DISCUSSION Moritz Gartenmeister 2 participants 3 messages Mar 22, 2005 – Mar 23, 2005

lore
Share & tools
lore
#0 lore raw

hi all

i got an problem with the MARK target:

$IPTABLES -t mangle -A PREROUTING -p ICMP -s 0/0 --icmp-type 8 -j MARK --set-mark 1 # ECHO

gives the following error:
iptables: Invalid argument

ipt_MARK is loaded. (and also ipt_mark, just in case ;-) )

i once was running this target without any problems. but i changed to connmark (not my best idea).

so do i have a typo? it seems for me exactly the way as the docu and the source want it to be... iptables 1.2.11

btw, it runs perfectly with:

$IPTABLES -t mangle -A PREROUTING -p ICMP -s 0/0 --icmp-type 8 -j CONNMARK --set-mark 1 # ECHO

regards (maybe to late or to less coffee)
moritz

#1 lore raw
Quoted 8 lines · Moritz Gartenmeister

hi all

i got an problem with the MARK target:

$IPTABLES -t mangle -A PREROUTING -p ICMP -s 0/0 --icmp-type 8 -j MARK --set-mark 1 # ECHO

gives the following error:
iptables: Invalid argument

the syntax of that rule is fine.

Quoted 10 lines

ipt_MARK is loaded. (and also ipt_mark, just in case ;-) )

i once was running this target without any problems. but i changed to connmark (not my best idea).

so do i have a typo? it seems for me exactly the way as the docu and the source want it to be... iptables 1.2.11

btw, it runs perfectly with:

$IPTABLES -t mangle -A PREROUTING -p ICMP -s 0/0 --icmp-type 8 -j CONNMARK --set-mark 1 # ECHO

my guess would be that if you've been patching and compiling here and there, that you may have ended up with and iptables utility that doesn't know about the MARK target; i.e., you have no libipt_MARK.so file...on my machine here it's in /lib/iptables/...might be diff depending on your specific distro.

-j

--
"Do you want to change your name to Homer Junior? The kids can call
you Hoju!"
--The Simpsons

#2 lore raw
Quoted 5 lines · Jason Opperisano

my guess would be that if you've been patching and compiling here and there, that you may have ended up with and iptables utility that doesn't know about the MARK target; i.e., you have no libipt_MARK.so file...on my machine here it's in /lib/iptables/...might be diff depending on your specific distro.

in fact that was the problem.
i fixed it with recompiling an patching linux 2.6.11.3 and iptables 1.3.1. anyone got the connlimit patch successfully applied?

am i the only person, who sporadic gets this troubles? or is this just normal?

cheers!
moritz