From: Edmundo Carmona Date: Mon, 02 Jan 2006 15:49:07 +0000 Subject: Fwd: [LARTC] Several IP's, one mail and http server Message-Id: <65aa6af90601020749r2874b160nea4b5ae895206c78@mail.gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org There was a typo. It was DNAT, and not DAN ---------- Forwarded message ---------- From: Edmundo Carmona Date: Jan 2, 2006 11:47 AM Subject: Re: [LARTC] Several IP's, one mail and http server To: lartc 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? _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc