I have been assigned a block of /29 ips for a dedicated server I rent. I want to be able to keep one of these IPs for managing the server itself, and forward each of the rest to its own internal subnet, for multiple OpenVZ containers to be able to share public IPs.
For instance, I might have two web servers and two file servers in 4 containers. This is not the actual services that will be running, but for easy of example I will use them. I want one of my public IPs (XX.XX.XX.2) to point to the two containers on the 192.168.2.0/24 subnet, and the other public IP (XX.XX.XX.3) to point to the containers in the 126.96.36.199/24 subnet. Communication between the subnets is not required, but each container must be able to access the web.
I have tried using sourced based routing as described here and NAT as described on the OpenVZ wiki here without success. Host is running Centos 6, and each VM is running Debian 7 if that makes a difference.