From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: netfilter@lists.netfilter.org
Subject: Re: Logging NAT Translations
Date: Fri, 08 Jun 2007 00:36:31 +0200 [thread overview]
Message-ID: <4668886F.6080800@plouf.fr.eu.org> (raw)
In-Reply-To: <Pine.LNX.4.61.0706071009200.1547@yvahk01.tjqt.qr>
Hello,
Jan Engelhardt a écrit :
>
>>>iptables -t nat -A ydm1 -j LOG "[Adress got SNATed to 134.76.13.21] "
>>>iptables -t nat -A ydm1 -j SNAT --to 134.76.13.21
>>>
>>>It already was a complete example. When you SNAT, you know you do.
Not always.
- A NAT may fail due to a conflict with an existing mapping, so you
believe you SNAT but actually don't. However I do admit that this
situation is unlikely to happen when you don't retrict the port range in
the SNAT target.
- Implicit SNAT may be performed to avoid conflict with an existing
rule, so you SNAT but do not know you do.
> I rarely need ranges, mostly because it does not RR over
> them like I thought it does :(
It used to, prior to kernel version 2.6.11. And I believe it still does
in the latest 2.4 kernel. But the developpers thought this behaviour was
not desirable because it broke some usages and replaced the round robin
with a hash so the same original source+destination pair always gets the
same address in the SNAT range.
next prev parent reply other threads:[~2007-06-07 22:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-19 3:15 Logging NAT Translations Craig Bernstein
2007-05-20 19:23 ` Petr Pisar
2007-05-22 20:09 ` Jan Engelhardt
2007-06-06 2:10 ` Craig Bernstein
2007-06-06 6:01 ` Jan Engelhardt
2007-06-06 7:15 ` Craig Bernstein
2007-06-07 8:09 ` Jan Engelhardt
2007-06-07 22:36 ` Pascal Hambourg [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-08-28 14:10 Logging nat translations Carlos Sülz
2008-08-28 17:17 ` Eric Leblond
2008-08-29 10:50 ` Pablo Neira Ayuso
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=4668886F.6080800@plouf.fr.eu.org \
--to=pascal.mail@plouf.fr.eu.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 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.