All of lore.kernel.org
 help / color / mirror / Atom feed
* Setup of different types of NAT
@ 2007-04-18  9:10 Pedro Gonçalves
  2007-04-19 13:06 ` Elvir Kuric
  2007-04-19 19:49 ` Pascal Hambourg
  0 siblings, 2 replies; 6+ messages in thread
From: Pedro Gonçalves @ 2007-04-18  9:10 UTC (permalink / raw)
  To: Mail List - Netfilter

Hello everyone

I want to know *how to* setup this types of NAT:
/-Full Cone NAT/
/-Restricted Cone NAT/
/-Port Restricted Cone NAT/
/-Symmetric NAT/

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

/-"Full Cone NAT", with the following rules:/
iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to-source 192.168.2.170
iptables -t nat -A PREROUTING -i eth0 -j DNAT --to-destination 10.0.0.1


/-"Port Restricted Cone NAT", with just a single rule:/
iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to-source 192.168.2.170/

/
Now does anyone know how to setup Restricted Cone NAT and Symmetric NAT?

Thanks in advance
Pedro
//


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-04-20  8:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2007-04-20  8:43   ` Pedro Gonçalves

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.