netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Amos Jeffries <squid3@treenet.co.nz>
To: Jan Engelhardt <jengelh@medozas.de>
Cc: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>,
	Hugo Miguel Mendes <est-h-mendes@ptinovacao.pt>,
	"netfilter-devel@vger.kernel.org"
	<netfilter-devel@vger.kernel.org>
Subject: Re: full_cone_nat
Date: Wed, 08 Apr 2009 18:04:06 +1200	[thread overview]
Message-ID: <49DC3E56.7010807@treenet.co.nz> (raw)
In-Reply-To: <alpine.LSU.2.00.0904072017510.24473@fbirervta.pbzchgretzou.qr>

Jan Engelhardt wrote:
> On Tuesday 2009-04-07 20:16, Jozsef Kadlecsik wrote:
>> On Tue, 7 Apr 2009, Hugo Miguel Mendes wrote:
>>
>>> What I mean with Full Cone NAT is the following:
>>> [...]
>> I answered you on Thu, 2 Apr 2009 when you asked the same question on
>> the netfilter mailing list. The answer hasn't changed since then: 
>> currently there's no way to create full cone NAT.
>>
>> It might be possible to write a new full cone NAT target by creating 
>> wildcard expectations.
> 
> Yeah there is a case where cone nat does not quite work. Assuming there
> are the following mappings:
> 
> origsrc=192.168.17.2 origdst=80.10.20.30 replsrc=134.98.76.54 repldst=80.10.20.30
> origsrc=192.168.17.3 origdst=80.20.30.40 replsrc=134.98.76.54 repldst=80.20.30.40
> 
> Then there is no way to ambiguously map incoming IP_CT_NEW connections
> for 134.98.76.54 to an origsrc.

You are right when IP-only tests are considered. The joy of full cone 
NAT requires ports to be added to that equation.

The NAT algorithm must be adapted to ensure every outbound 
src-ip:src-port combo sent to the Net is completely unique and replies 
from any ip to that particular sending port cone back to the unique 
internal machine that opened it.

For your case origsrc-ip:origdst-ip:origdst-port tuplets are different.

/2c

AYJ


      parent reply	other threads:[~2009-04-08  5:11 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-07 14:42 full_cone_nat Hugo Miguel Mendes
2009-04-07 15:27 ` full_cone_nat Jan Engelhardt
2009-04-07 15:28   ` full_cone_nat Hugo Miguel Mendes
2009-04-07 15:31     ` full_cone_nat Jan Engelhardt
2009-04-07 15:32       ` full_cone_nat Hugo Miguel Mendes
2009-04-07 15:44         ` full_cone_nat Hugo Miguel Mendes
2009-04-07 18:16           ` full_cone_nat Jozsef Kadlecsik
2009-04-07 18:20             ` full_cone_nat Jan Engelhardt
2009-04-07 18:32               ` full_cone_nat Jozsef Kadlecsik
2009-04-07 20:55                 ` full_cone_nat Hugo Miguel Mendes
2009-04-08 18:44                   ` full_cone_nat Jozsef Kadlecsik
2009-04-21 16:41                     ` full_cone_nat Hugo Miguel Mendes
2009-05-27 23:55                       ` full_cone_nat Changli Gao
2009-04-08  6:04               ` Amos Jeffries [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=49DC3E56.7010807@treenet.co.nz \
    --to=squid3@treenet.co.nz \
    --cc=est-h-mendes@ptinovacao.pt \
    --cc=jengelh@medozas.de \
    --cc=kadlec@blackhole.kfki.hu \
    --cc=netfilter-devel@vger.kernel.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).