netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nigel Metheringham <Nigel.Metheringham@dev.InTechnology.co.uk>
To: Martin Josefsson <gandalf@wlug.westbo.se>
Cc: Netfilter <netfilter@lists.netfilter.org>
Subject: Re: NAT and MTU issues
Date: Tue, 23 Sep 2003 13:03:09 +0100	[thread overview]
Message-ID: <1064318589.1153.10.camel@angua.localnet> (raw)
In-Reply-To: <1064250374.28506.110.camel@tux.rsn.bth.se>

I've just redone the tests using the ip_nat_core.c with additional
debug, with similar results to last time.  So I then tried a 2.4.22
kernel just to make sure there were no other changes I've missed -
kernel is now a vanilla 2.4.22 plus super-freeswan patches for ipsec and
a few others that don't touch networking at all.

Using just the normal NAT rules, the extra debugging statements are not
triggered at all, and ICMPs (unreach/need-frag) are sent to the
connection originator with the contained packet having the DNAT still in
place (ie the packet source addresses are correct, the destination
addresses are the DNATed versions).

With the MSS clamping mangle rule in place, the debugging lines log for
many many packets (probably all), but no ICMP packets are seen
externally.
        icmp_reply_translation: translating error ce75b800 hook 3 dir REPLY
        icmp_reply: manip 0 dir ORIG hook 0
        icmp_reply: manip 1 dir REPLY hook 4
        icmp_reply: manip 2 dir ORIG hook 4
        icmp_reply: manip 3 dir REPLY hook 0
        icmp_reply_translation: translating error ce75b800 hook 4 dir REPLY
        icmp_reply: manip 0 dir ORIG hook 0
        icmp_reply: manip 1 dir REPLY hook 4
        icmp_reply: inner DST -> 192.168.50.119 1500
        icmp_reply: outer SRC -> 192.168.50.119
        icmp_reply: manip 2 dir ORIG hook 4
        icmp_reply: manip 3 dir REPLY hook 0
        icmp_reply_translation: translating error ce4af1a0 hook 3 dir REPLY
Thats a complete cycle of the logged data (you'll see I set a couple
more of the lines to log as well as the ones in your patch).

	Nigel.
-- 
[ Nigel Metheringham           Nigel.Metheringham@InTechnology.co.uk ]
[ - Comments in this message are my own and not ITO opinion/policy - ]



      reply	other threads:[~2003-09-23 12:03 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-19 15:28 NAT and MTU issues Nigel Metheringham
2003-09-20  9:15 ` n00b question..... How to get details on active connections Paul Gibson
2003-09-20 16:09   ` Nox
2003-09-20 19:04 ` NAT and MTU issues Martin Josefsson
2003-09-22  9:53   ` Nigel Metheringham
2003-09-22 12:00     ` Martin Josefsson
2003-09-22 14:52       ` Nigel Metheringham
2003-09-22 15:03         ` Martin Josefsson
2003-09-22 15:08         ` Nigel Metheringham
2003-09-22 15:41           ` Martin Josefsson
2003-09-22 15:46             ` Nigel Metheringham
2003-09-22 17:06               ` Martin Josefsson
2003-09-23 12:03                 ` Nigel Metheringham [this message]

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=1064318589.1153.10.camel@angua.localnet \
    --to=nigel.metheringham@dev.intechnology.co.uk \
    --cc=gandalf@wlug.westbo.se \
    --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;
as well as URLs for NNTP newsgroup(s).