From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Travis Crook" Subject: Re: Email troubles behind iptables firewall Date: Tue, 17 Sep 2002 11:10:35 -0600 Sender: netfilter-admin@lists.netfilter.org Message-ID: <006c01c25e6d$230d0fe0$6902a8c0@visionsbeyond.mindtrip> References: <002c01c25a68$fde16160$6902a8c0@visionsbeyond.mindtrip> <200209121558.g8CFwXv10419@vulcan.rissington.net> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" To: Antony Stone Cc: netfilter@lists.netfilter.org > Is this correct? Is there any way to pass their real ip > > address through the firewall to the mail server? > > Change the SNAT / MASQUERADE rule in your POSTROUTING chain so that it only > applies to the external interface. > > eg change: > > iptables -A POSTROUTING -t nat -j SNAT --to a.b.c.d > > to > > iptables -A POSTROUTING -t nat -o eth0 -j SNAT --to a.b.c.d > > where eth0 is your external interface. > > Antony. Oh great ones of the iptables mastery! You have solved my problem! I thank you ever so much. Travis Crook Visions Beyond