Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Tien-Ren Chen <trchen1033@gmail.com>
To: "Baake, Matthias" <m.baake@porta.de>
Cc: netfilter@lists.netfilter.org
Subject: Re: Problem with conntrack, all packet are marked as invalid.
Date: Fri, 26 Aug 2005 03:57:09 +0800	[thread overview]
Message-ID: <430E2295.6010305@gmail.com> (raw)
In-Reply-To: <201E6F5AC48C274996A5AD8304FAEF860BFC93@p001ex03.porta.local>

Baake, Matthias wrote:

>Hi
>
>if you have a static ip situation i would use the snat target, thats not the problem but just noticed..
>please post your iptables startup script or the output of iptables-save.
>one thing i've never seen before is the "ctstate" output anybody any idea?!
>
>greets matthias
>  
>
Thank you for the SNAT target suggestion.

And I've already solved my problem by downgrading my kernel to 2.6.11.
It seems like a bug in the bridge netfilter code in 2.6.12.

I first tried to use iptables with LOG target to find where the 
connection tracking info disappeared.
Even after processed by the NF_IP_PRE_ROUTING filters the packets seemed ok,
but when they went to the NF_IP_FORWARD/NF_IP_PRI_MANGLE, their ctstate 
became INVALID.
Then I added some printk in the kernel sources, found the packets are 
still ok even when they went to beginning of NF_IP_FORWARD hooks,
however, when they finally came to ctstate match, skb->nfct was already 
cleaned with 0 (skb->nfctinfo still held correct value).
Then I examined the bridge netfilter code, I was suprised that it 
blocked the packets with NF_STOP -- how did the packets go to the 
NF_IP_PRI_MANGLE hook?
I tried to find document explaining what the NF_STOP does, but got 
nothing except that it's something new in the 2.6.12 kernel.
At last I tried to downgrade by kernel to 2.6.11, it worked, and the 
story ends.

I think the netfilter Hacking HOWTO should be updated to meet the change.
And I'm wondering what's the use of NF_STOP?
It seems little difference between NF_STOP and NF_STOLEN, but what's the 
essential?
--
Tien-Ren Chen, 2005/08/26.


  reply	other threads:[~2005-08-25 19:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-25 14:16 Problem with conntrack, all packet are marked as invalid Baake, Matthias
2005-08-25 19:57 ` Tien-Ren Chen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-08-24 14:50 Tien-Ren Chen
2005-08-25 17:11 ` Jiann-Ming Su

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=430E2295.6010305@gmail.com \
    --to=trchen1033@gmail.com \
    --cc=m.baake@porta.de \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox