Fwd: [LARTC] Several IP's, one mail and http server

Edmundo Carmona eantoranz at gmail.com
Mon Jan 2 16:49:07 CET 2006


There was a typo. It was DNAT, and not DAN

---------- Forwarded message ----------
From: Edmundo Carmona <eantoranz at gmail.com>
Date: Jan 2, 2006 11:47 AM
Subject: Re: [LARTC] Several IP's, one mail and http server
To: lartc <LARTC at mailman.ds9a.nl>


If I understand correctly, the server is not directly connected to the
internet, right?

There are some boxes connected to the internet instead... am I right?

If that's the case, in those boxes:

# your DNAT so requests are forwarded to the web server
iptables -t nat -A PREROUNTING blah blah -j DAN --to-destination webServersIP
# my SNAT so web requests will (sure as hell) come back this way.
iptables -t nat -A POSTROUTING -p pct --dport 80 -j SNAT thisHostsIP

Did I nail it?


More information about the LARTC mailing list