Re: [vserver] Three network configuration

From: Oliver Welter <mail_at_oliwel.de>
Date: Wed 02 Jan 2008 - 16:32:56 GMT
Message-ID: <477BBCB8.40707@oliwel.de>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Rod,

> Has anyone configured a Linux-Vserver with three NICs to three different
> networks?
>
> Two WANs and one LAN. The guests will need to access at least one and
> possibly two or three of the networks. All traffic needs to go back out
> the same interface it came in on.
>
I am successfully running such a setup. The only issue you have to care
about is routing of outgoing connections if your default gateway of the
host is not reachable from inside the guest.
You can use "ip" tools to set source based routing rules, here is an
excerpt of mine:

 $IP route add 82.x.x.0/25 dev vlan3 table 103
 $IP route add default via 82.x.x.1 dev vlan3 table 103
 $IP rule add from 82.x.x.0/25 table 103

I put this into an init script.

Oliver

- --
Protect your environment - close windows and adopt a penguin!
PGP-Key: 3B2C 8095 A7DF 8BB5 2CFF 8168 CAB7 B0DD 3985 1721
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHe7y4yrew3TmFFyERAmFpAJ4mKxf69copX417CQoSw29s3chaMACffHzV
Z7YZ8j/uX5Z6DbFloWgnvc0=
=WgyN
-----END PGP SIGNATURE-----
Received on Wed Jan 2 16:33:07 2008

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 02 Jan 2008 - 16:33:23 GMT by hypermail 2.1.8