Re: [Vserver] routing: 2 different virtual subnets on the same machine

From: Chuck <chuck_at_sbbsnet.net>
Date: Fri 06 Apr 2007 - 12:48:51 BST
Message-Id: <200704060748.52181.chuck@sbbsnet.net>

On Friday 06 April 2007 06:28, Konstantinos Pachopoulos wrote:

i ran into the same situation with 4 nics and solved it with iproute2 on the
host. using simple tables and rules i was able to have the machine default
gateway for eth0 yet route all various subnets through their proper nics with
their own gateways. what distro are you using for the host? i can only give
exact specifics for gentoo but i can give you the basic config structures you
can adapt to other distros. iproute2 was the only way i could get this
working properly.

if interested let me know and i will post a basic structure for your setup.

> Hi,
> i have not much knowlege on routing and following other advice or trying
> to follow solutions to similar cases
> (http://www.freenux.org/~mm/wordpress/?p=10 for example) didn't work for
> me. So here is the case:
> -on my virtual box there are guests running in 2 different subnets:
> 192.168.1.0/24 and 192.168.2.0/24
> -192.168.2.0/24 is supposed to be a DMZ.
> -the virtual box has 2 interfaces: eth0 for routing 192.168.1.0/24 and
> eth3 for routing 192.168.2.0/24
>
>
> ----------------------------------------------------------------------------------------------
> | vhost3-----vhost4 vhost1-----vhost2
> |
> |__________________________________________________________|
> | |
> | 192.168.2.0/24 via eth3 |
> 192.168.1.0/24 via eth0
> | |
> | |
> |_________ _______________________|
> | |
> router ----> wireless wan / Internet
>
>
> I just want the 192.168.2.0/24 to be routed via eth3 and 192.168.1.0/24
> via eth0. The router/firewall will take over afterwards.
> Suggestions?
> _______________________________________________
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
>

-- 
Chuck
"...and the hordes of M$*ft users descended upon me in their anger,
and asked 'Why do you not get the viruses or the BlueScreensOfDeath
or insecure system troubles and slowness or pay through the nose 
for an OS as *we* do?!!', and I answered...'I use Linux'. "
The Book of John, chapter 1, page 1, and end of book
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Fri Apr 6 14:00:51 2007
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 06 Apr 2007 - 14:00:56 BST by hypermail 2.1.8