All of lore.kernel.org
 help / color / mirror / Atom feed
From: Filip Sneppe <filip.sneppe@cronos.be>
To: Rich Wellner <rkw@objenv.com>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: trouble with expect_related
Date: 07 Jan 2003 18:07:43 +0100	[thread overview]
Message-ID: <1041959263.502.248.camel@xbox> (raw)
In-Reply-To: <t2mk7hhx86x.fsf@rw2-laptop.wellner.org>

On Tue, 2003-01-07 at 16:59, Rich Wellner wrote:
> Filip Sneppe <filip.sneppe@cronos.be> writes:
> > Do you see the expected connection in /proc/net/ip_conntrack? It should
> > be preceded by "EXPECTING:" if it hasn't seen any traffic yet.
> 
> Ok, this is very helpful.  I didn't know about that vfile.  There is the line
> I expect there.
> 
> EXPECTING: proto=6 src=131.225.80.34 dst=207.252.250.2 sport=0 dport=41209
> 
> I don't know where to look to find out what proto 6 is, but the rest *seems*
> ok. 

proto=6 means it's a tcp packet. /etc/protocols has all the
protocol numbers.

> The src, 131.225.80.34 is the machine I expect to be calling me back.  The
> sport of 0 should be ok because I don't have that byte masked in my call to
> expect_related the dport is correct.
> 
> I wasn't sure if the dst should be the NAT node or the private net node, so
> I've tried it both ways:
> 
> EXPECTING: proto=6 src=131.225.80.34 dst=192.168.1.2 sport=0 dport=41330
> 
> And neither forwarded the connection.  Judging by the FTP example the dst
> should be the private node, right?

I *think* that EXPECTING should show the packet as it appears on the
wire, since you should call ip_conntrack_change_expect in the nat helper
code to change the expectation. Not 100% sure though. You could try 
without NAT.

> And I reconfirmed using tcpdump that the incoming connection is still being
> attempted and is on the correct port.
>
As I pointed this out in my very first reply, and I suspect that this
may be the cause of the problem:

Are you letting the RELATED traffic in with the appropriate iptables
rules ? Can you post your firewall script, chain policies etc ?

I have never seen any reports of the connection tracking code not
picking up related TCP packets unless they were being blocked by
policy.

Regards,
Filip

  reply	other threads:[~2003-01-07 17:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-04  0:13 trouble with expect_related Rich Wellner
2003-01-04  3:34 ` Filip Sneppe (Cronos)
2003-01-06 15:58   ` Rich Wellner
2003-01-07  9:50     ` Filip Sneppe
2003-01-07 15:59       ` Rich Wellner
2003-01-07 17:07         ` Filip Sneppe [this message]
2003-01-14 14:19         ` Filip Sneppe

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=1041959263.502.248.camel@xbox \
    --to=filip.sneppe@cronos.be \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=rkw@objenv.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.