How to run Access Server on a VPS container

openvz Proxmox_Logo

You can run Access Server on a virtual host within a VPS (Virtual Private Server) if particular constraints are satisfied.


Prepare your VPS host so that the following requirements are met:

1. Make the iptables state and nat modules accessible to containers.

Edit /etc/vz/vz.conf and add "ipt_state iptable_nat" to the end of the list of IPTABLES modules.

*NOTE: This needs to be done on the host node, not the individual VPS container.

2. Allow the container to open the TUN/TAP interface. These steps specifically affect container ID 101.

vzctl set 101 --devices c:10:200:rw --save

vzctl set 101 --capability net_admin:on --save

3. These kernel modules and commands should be ran/installed on the host node before the container is started:

modprobe ipt_mark

modprobe ipt_MARK

modprobe tun

4. Now start the container:

vzctl start 101

5. After starting the container run these commands on the host node:

vzctl exec 101 mkdir -p /dev/net

vzctl exec 101 mknod /dev/net/tun c 10 200

vzctl exec 101 chmod 600 /dev/net/tun

6. Install AS normally in the container.