Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Adam Rosi-Kessel <adam@rosi-kessel.org>
To: netfilter@lists.netfilter.org
Subject: Re: Why would certain packets not reach nat PREROUTING chain?
Date: Wed, 9 Nov 2005 22:27:33 -0500	[thread overview]
Message-ID: <20051110032733.GA19073@bostoncoop.net> (raw)
In-Reply-To: <20051110031834.GB9770@samad.com.au>

On Thu, Nov 10, 2005 at 02:18:34PM +1100, Alexander Samad wrote:
> On Wed, Nov 09, 2005 at 08:59:37PM -0500, Adam Rosi-Kessel wrote:
> > Adam Rosi-Kessel wrote:
> > > I'm troubleshooting an issue of accessing a VPN through NAT. Right now the
> > > problem can be reduced to the following question:
> > > Under what conditions would inbound packets not be routing through the nat
> > > PREROUTING chain?
> > I should add that, just for debugging purposes, the default policy for all
> > chains is set to ACCEPT. There are also no DROP rules anywhere in any table
> > (again, just for debugging).
> my understanding is that the NAT table only sees the initial packets of
> a connection

Is that the only situation in which an inbound packet that shows up in
tcpdump would not show up in an itables nat PREROUTING log?

I also tried adding a raw table entry to prevent connection tracking, as
follows:

iptables -t raw -A PREROUTING -p udp --dport 500 -j NOTRACK

But the iptables nat PREROUTING log still did not show any of the inbound
packets.

> if this is ipsec it could be a ipsec problem ?

Well, the NAT box is not running IPSec. I'm trying to diagnose an IPSec
problem involving the client and the server, but for various reasons I
can't make the NAT box the IPSec endpoint. It shouldn't be that difficult
because I only have one box inside the LAN with a fixed NAT IP address
that needs to connect to the VPN server, and so I'm trying to direct udp
500 right to that client, but the problem seems to be the inbound packets
are not even entering the PREROUTING chain.
-- 
Adam Rosi-Kessel
http://adam.rosi-kessel.org


  reply	other threads:[~2005-11-10  3:27 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-10  1:57 Why would certain packets not reach nat PREROUTING chain? Adam Rosi-Kessel
2005-11-10  1:59 ` Adam Rosi-Kessel
2005-11-10  3:18   ` Alexander Samad
2005-11-10  3:27     ` Adam Rosi-Kessel [this message]
     [not found]       ` <3063e50511100055m41abd50hc3af78a67896db7d@mail.gmail.com>
2005-11-10 12:44         ` Adam Rosi-Kessel
2005-11-10 10:15 ` Sandro Dentella
2005-11-10 16:44   ` Jozsef Kadlecsik
2005-11-14 14:53     ` Adam Rosi-Kessel
2005-11-14 15:03       ` Jozsef Kadlecsik
2005-11-14 15:09         ` Adam Rosi-Kessel
2005-11-15  9:07           ` Jozsef Kadlecsik
2005-11-15 13:43             ` Adam Rosi-Kessel
2005-11-15 14:00               ` Jozsef Kadlecsik
2005-11-15 23:53                 ` Adam Rosi-Kessel
2005-11-15 23:57                   ` Adam Rosi-Kessel
2005-11-16  0:02                     ` Adam Rosi-Kessel
2005-11-16  9:42                   ` Jozsef Kadlecsik
2005-11-18  1:52                     ` Adam Rosi-Kessel
2005-11-18 11:07                       ` Jozsef Kadlecsik
2005-11-19  3:46                         ` Adam Rosi-Kessel
2005-11-19 20:34                           ` Jozsef Kadlecsik
2005-11-20 17:20                             ` Adam Rosi-Kessel
2005-11-24 11:00                               ` Jozsef Kadlecsik
2005-11-24 13:36                                 ` Adam Rosi-Kessel
2005-12-17 22:59                         ` Adam Rosi-Kessel
2005-12-18  6:42                       ` Leonardo Rodrigues Magalhães
  -- strict thread matches above, loose matches on Subject: below --
2005-11-10 13:13 Gabriel
2005-11-10 13:45 Adam Rosi-Kessel
2005-11-10 14:50 ` Sandro Dentella
     [not found] <20051218055403.002CDA00EA@bostoncoop.net>
2005-12-18 13:16 ` Adam Rosi-Kessel
2005-12-19 15:39   ` Re[2]: " Marcin Krol
2005-12-19 15:40     ` Adam Rosi-Kessel
2006-01-25  1:16     ` Adam Rosi-Kessel

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=20051110032733.GA19073@bostoncoop.net \
    --to=adam@rosi-kessel.org \
    --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