From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg Cope Subject: Re: How to make a mutli-homed host use one IP for a NAT'ed host Date: Thu, 21 Apr 2005 16:12:06 +0100 Message-ID: References: <426753A3.7030800@riverviewtech.net> <4267BE69.6080203@riverviewtech.net> Reply-To: Greg Cope Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4267BE69.6080203@riverviewtech.net> Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii" To: Taylor Grant Cc: netfilter@lists.netfilter.org > Sorry, my mistake. It was late at night after a long day. :( Many Thanks Grant. No need to appologies - and your up already! So I swapped to eth1 - and it would appear that packets are getting marked as if I add in the ip route add command I can no longer connect to an SMTP server from the mailserver (using telnet HOST 25) So the last few hurdles... I need to use the same router - an ADSL thing as everything else, I just want the packets to be sent from a different $MAIL_INET_ALIAS IP (as opposed to the usual INET_IP $ ip rule add fwmark $SMTP_MARK table $IPROUTE2_SMTP_TABLE Works fine and makes sense. However I think these are the sticking points: ip route add table $IPROUTE2_SMTP_TABLE dev $INET_IFACE src $MAIL_INET_ALIA= S ip route add table $IPROUTE2_SMTP_TABLE default via $INET_IP I get=20 $ ip route add table smtp.out dev eth0 src 217.154.55.250 $ ip route add table smtp.out default via 217.154.55.241 RTNETLINK answers: File exists .241 is my internet gateway router, not the default external IP of my firewall which is eth0=3D217.154.55.249. eth0:1=3D217.154.55.250 which is the $MAIL_INET_ALIAS Combinations of either of the above mean the mail server cannot connect to an exteriror mail server. Hum.... Greg