Subject: Re: [vserver] Networking setup question
From: Matt Paine <matt@mattsoftware.com>
Date: Tue, 17 Mar 2009 08:19:35 +1000

Thankyou Randall. I think this is exactly the pointer I needed. I 
probably should have known about the dummy interface, but I have never 
needed to do this kind of thing before (and both VMware and OpenVPN etc 
creates their own interfaces without my help :)

Thankyou

Matt


>
> according to route -n the ip address 10.0.1.1 is not assigned to a 
> network card and it needs to be but you don't want a private IP 
> listening on a public interface.
>
> what i personally do is to create a "virtual" network card and let the 
> VServer guests listen on that interface.
> you can just add an extra interface like this
> (in debian you add it in /etc/network/interfaces)
> auto dummy0
> iface dummy0 inet static
>    address 192.168.1.1
>    netmask 255.255.255.0
>
> in order to be reachable i use shorewall to route the trafic i want 
> from external IP on eth0 to the VServer guest IP on dummy0.
>