Linux Netfilter discussions
 help / color / mirror / Atom feed
* IPTables design question (nat)
@ 2002-11-01 19:41 Aki Karjalainen
  2002-11-02 13:00 ` Antony Stone
  0 siblings, 1 reply; 2+ messages in thread
From: Aki Karjalainen @ 2002-11-01 19:41 UTC (permalink / raw)
  To: netfilter

Hi.

I've got a question about IPTables.

Let's say I want to "hide" a public IP pool (e.g. 144.50.50.0/24) behing
NAT. Easy.

Let's say I want to provide SMTP port from LAN to the outside world. I'd
say "-t nat -A PREROUTING -p tcp -d FWexternalIP --dport smtp -j DNAT
--to 144.50.50.12:smtp".

Ok, I'd still have to allow the connection in the BAD-GOOD chain for
this to work.

The result is that the outside world sees the smtp port from the
firewall external IP _as well as_ directly from 144.50.50.12. 

The question is how to hide 144.50.50.12:smtp but still allow firewall
external ip:smtp (DNATted port)?


Summary: How to DNAT some port and still hide the destination IP+port in
the case the real destination IP is a public IP address?




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

end of thread, other threads:[~2002-11-02 13:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-01 19:41 IPTables design question (nat) Aki Karjalainen
2002-11-02 13:00 ` Antony Stone

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox