Company news, tips and general chat!
OpenVPN on a OpenVZ VPS.
We get a lot of clients trying to install VPN services on our VPS services, so I decided to write a guide on what your host needs to do.
If you are a ZanyHost client, please create a support ticket asking for TUN/TAP
If you are on a Xen service, just follow with the installation as normal, due to the way kernels and the host is setup on all Xen servers, it should operate just like a dedicated server would do.
However OpenVZ is different, the kernel is shared with the other VPS’s and the main host , with some other changes to the general service.
Basically when you’re setting up your Linux VPN you need to remember to ask you web host to setup the TUN/TAP.
Most control panels like SolusVM will automate some of this; if you don’t have this your host will need to do the following.
Check the TUN kernel module is installed:
lsmod | grep tun
If not install it:
modprobe tun
Now run these commands:
vzctl set 101 --devices c:10:200:rw --save
vzctl set 101 --capability net_admin:on --save
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
Replace the number 101 with your client’s VPS ID.
That should be everything done, your client can keep on installing OpenVZ as normal.
| Print article | This entry was posted by Tom on March 28, 2010 at 9:33 pm, and is filed under Technical Guide. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |