Subject: Re: [vserver] Loopback issues
From: Jeff Williams <jeffw@globaldial.com>
Date: Fri, 31 Aug 2007 08:55:03 +0800

Philippe Teuwen wrote:
>
>> I added the rule:
>>
>> iptables -t nat -A PREROUTING -i eth0 -d 4.3.2.1 -j DNAT --to 1.2.3.5
>>   
> Drop the interface option, internal vserver traffic doesn't come from
> eth0.
>
> iptables -t nat -A PREROUTING -d 4.3.2.1 -j DNAT --to 1.2.3.5
Phil,

This is what I am trying to achieve:

Two vservers 1.2.3.4 and 1.2.3.5. Also an alias IP 4.3.2.1 for the
1.2.3.5 server.

(1) Traffic from external to 4.3.2.1 should go to 1.2.3.5.
(2) Traffic from 1.2.3.4 to 4.3.2.1 should routed out to the default
gateway.

Dropping the interface option stuffs up (2).

Jeff