From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: Mail List - Netfilter <netfilter@lists.netfilter.org>
Subject: Re: Setup of different types of NAT
Date: Thu, 19 Apr 2007 21:49:19 +0200 [thread overview]
Message-ID: <4627C7BF.5000406@plouf.fr.eu.org> (raw)
In-Reply-To: <4625E078.1020301@gmail.com>
Hello,
Pedro Gonçalves a écrit :
>
> I want to know *how to* setup this types of NAT:
> /-Full Cone NAT/
> /-Restricted Cone NAT/
> /-Port Restricted Cone NAT/
> /-Symmetric NAT/
Again ? I thought I already answered the last time you asked.
> Using iptables, I set all policies to "ACCEPT" and I was able to setup
> two kinds of NAT:
> (192.168.2.170 is my "public" address and 10.0.0.1 is my "private" address
[...]
> /-"Port Restricted Cone NAT", with just a single rule:/
> iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to-source 192.168.2.170/
This is "symmetric NAT", not "restricted cone NAT".
> Now does anyone know how to setup Restricted Cone NAT and Symmetric NAT?
AFAIK, you cannot do "restricted cone NAT" nor "port restricted cone
NAT" with the stock Netfilter/iptables. It would require dedicated
conntrack and NAT helper modules.
next prev parent reply other threads:[~2007-04-19 19:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-18 9:10 Setup of different types of NAT Pedro Gonçalves
2007-04-19 13:06 ` Elvir Kuric
2007-04-19 14:02 ` Pedro Gonçalves
2007-04-19 19:21 ` Denis
2007-04-19 19:49 ` Pascal Hambourg [this message]
2007-04-20 8:43 ` Pedro Gonçalves
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=4627C7BF.5000406@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.