Linux-VServer International Conference on Open Source #11

Networking issue part II

Static IP Networking

First create a DNS record for your new vserver that points to an available IP address.

debian		in A	140.112.8.13

Then use this ip address in the build method. The VServer will bind this ip on host machine, so if you have enough IP, you can easily have VServer on the same subnet as host machine.

VLAN

VServer supports VLAN device, you can simply give a vlan interface name for a vserver.

Private IP Issue

If you have only one public IP address, you can use iptables to do SNAT(masq) and DNAT(port forwarding) for vservers.

More of Single IP Issue

If you want to have multiple vservers running apache, you can setup a web gateway, and use apache's rewrite or proxy module for reverse proxy, you can also use squid to do this.

Problematic Programs

There are some programs that require special rights (capabilities), and might not work inside a VServer by default. Usually you need to rebuild the program with the capability disabled to solve the problem./

Please see more details on: http://linux-vserver.org/ProblematicPrograms

Copyright © 2005 Taiwan Debian Users Group