How to add Tun/TAP/PPP/Fuse support

NOTE: This is for new Openvz/LXC plans only.

1. You need to login to web panel and click the Active Product you want to enable it on
2. If you see "Add Tun" button, click it (if not, it is already enabled), then continue to #3 below,
3. click Stop VPS button in web panel <----- DO NOT SKIP THIS STEP!!!
4. Click Start VPS
5. SSH to your VPS and type

mkdir /dev/net
mknod /dev/net/tun c 10 200
chmod 0666 /dev/net/tun
ip tuntap add mode tap
--show it
ip link

For PPP:

mknod -m 666 /dev/ppp c 108 0
service pptp restart

To actually use a tun/tap device it must be created inside the container on every boot, so add the following to your /etc/rc.local inside your container:

if ! [ -c /dev/net/tun ]; then
mkdir -p /dev/net
mknod -m 666 /dev/net/tun c 10 200
fi

Помог ли вам данный ответ?

 Распечатать статью

Также читают

How to enable and setup RDP on Windows

NOTE: This is done on Windows 2012 DC R2 edition, other versions might be slightly different.1....

How to add Extra IP(s) on Linux

IMPORTANT: There seems to be issues with more than 1 IP on Ubuntu, we've so far only figured out...

How to install from ISO (New KVM)

This is only for our New KVM based VPS, there are 2 different New KVM plans, click here for KVM...

How to add LAMP support to Ubuntu 14.0.4 64-bit on New OpenVZ

A LAMP (Linux, Apache, MySQL, PHP) stack is a common web stack used for hosting web content. This...

"Server refused to allocate pty" on New LXC template(s)

NOTE: This seems to happen only on OpenVZ template(s) that's used on LXC, like Cenots 6 32-bit....