Re: [vserver] Static Route on Loopback

From: Gordan Bobic <>
Date: Fri 15 Oct 2010 - 08:02:58 BST
Message-ID: <>

Adrian Reyer wrote:
> Hi Gordon,
> On Thu, Oct 14, 2010 at 10:22:15PM +0100, Gordan Bobic wrote:
>> Is there a way to add a static route to a VM on loopback?
> You don't need to. As the guest has no network, it doens't need to
> route, either. The kernel has the network and does the routing.
> Do you experience any problems with this setup?

Yes I am seeing a problem with this setup.

Host A:

Host B:

When host A connects to, the connection looks like it came
from, rather than I don't want my app on host B
binding on listening on interface. I want the connection
to be going via the internal loopback only. I also want to keep the
iptables rules relatively sane and intuitive.

Normally, this would be implicit by the network scope, but since lo is
different and setting on it would make the local host
respond on the entire range, I need an alternative solution that would
work more sensibly. Would using a dummy network device work for this? Or
is there a better way?

Received on Fri Oct 15 08:03:45 2010

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 15 Oct 2010 - 08:03:45 BST by hypermail 2.1.8