Linux Netfilter discussions
 help / color / mirror / Atom feed
* esp mark not working
       [not found] <15684317.5001238460885010.JavaMail.root@mail.redgrid.net>
@ 2009-03-31  0:59 ` Lewis Shobbrook
  2009-04-06 15:16   ` Patrick McHardy
  0 siblings, 1 reply; 2+ messages in thread
From: Lewis Shobbrook @ 2009-03-31  0:59 UTC (permalink / raw)
  To: netfilter

Hi all,

Much to my surprise, I've not been able to mark esp packets in the mangle table.
Although esp packets are traversing as they should, the iptables counters are unmoved from zero and as you'd expect rules applied against the mark fail also.

I've tried with ubuntu 2.6.24 & 2.6.27 kernels as well as a debian 2.6.26 all seem to suffer the same problem, all different machines.
Non esp packets mark no problem.

I don't seem to be able to google anyone else having this problem, so I'm hoping someone can help point out where I'm going wrong.

iptables -t mangle -A PREROUTING -i eth0 -p esp -j MARK --set-mark 0x1
with a couple of manual module loads upon apparent failure of the automatic module loading ...
cat /proc/net/ip_tables_targets 
SECMARK
CONNMARK
CONNMARK
DNAT
SNAT
MARK
MARK
MARK
ERROR

On another ....
cat /proc/net/ip_tables_targets
TCPMSS
LOG
REJECT
DNAT
SNAT
ERROR
REDIRECT
ECN
SECMARK
TRACE
NFQUEUE
NFLOG
DSCP
CONNSECMARK
MARK
MARK
CONNMARK
CLASSIFY
NETMAP
MASQUERADE
TOS
I've tried manually loading every possible netfilter module and googled endlessly.
Seems I'm missing something or it is broken.
Can anyone let me in on this?

Cheers,

Lew

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: esp mark not working
  2009-03-31  0:59 ` esp mark not working Lewis Shobbrook
@ 2009-04-06 15:16   ` Patrick McHardy
  0 siblings, 0 replies; 2+ messages in thread
From: Patrick McHardy @ 2009-04-06 15:16 UTC (permalink / raw)
  To: Lewis Shobbrook; +Cc: netfilter

Lewis Shobbrook wrote:
> Hi all,
> 
> Much to my surprise, I've not been able to mark esp packets in the mangle table.
> Although esp packets are traversing as they should, the iptables counters are unmoved from zero and as you'd expect rules applied against the mark fail also.

That indicates a problem in the matching rules, the counters are
unaffected by the target. I'd suggest to use the TRACE target to
figure out what is happening.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-06 15:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <15684317.5001238460885010.JavaMail.root@mail.redgrid.net>
2009-03-31  0:59 ` esp mark not working Lewis Shobbrook
2009-04-06 15:16   ` Patrick McHardy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox