TAP (as in network tap) simulates a link layer device and it operates with layer 2 packets such as Ethernet frames. TUN (as in network TUNnel) simulates a network layer device and it operates with layer 3 packets such as IP packets. TAP is used to create a network bridge, while TUN is used with routing. By default TUN / TAP will be disabled when a New VPS has been Created.
To Manually Turn on the TUN/TAP, you can login to the Solus VM Control Panel with the logins recieved in the Login Details Mail and you can enable it through SSH as follows:
OpenVZ supports VPN inside a container via kernel TUN/TAP module and device.
Step 1: Login to SSH with root password
Step 2: Run the following command to enable TUN/TAP module via SSH
- Check tun module has already loaded on the Node.
# lsmod | grep tun
Then to load the tun module
# modprobe tun
- Run the following command in node
# vzctl set CID –devnodes net/tun:rw –save
# vzctl set CID –devices c:10:200:rw –save
# vzctl stop CID
# vzctl set CID –capability net_admin:on –save
# vzctl start CID
# vzctl exec CID mkdir -p /dev/net
# vzctl exec CID chmod 600 /dev/net/tun
Note: you have to replace the CID with your VPS ID or container ID
- To check TUN/TAP is enabled or not on VPS(CID)
# cat /dev/net/tun
If the output is “File descriptor in bad state” it means that TUN/TAP is enabled.
If the output is “No such device” it means TUN/TAP is not enabled.
If you need any assistance from our support person, you can contact us at suppott@scopehosts.com and info@scopehosts.com , we would be happy to help you.
Most Popular Articles
Increase PHP file Upload size in windows server 2008
The php.ini file is the default configuration file for running applications that require PHP. It...
Setup Basic POP3/IMAP Mail Server in Centos/RHEL
Setup Basic POP3/IMAP Mail Server in Centos/RHELSetting up a mail server can be quite...
How Do I access RDP
Remote Desktop Protocol (RDP) is a proprietary protocol developed by Microsoft, which provides a...
Update Time-Zone on OpenVZ VPS
OpenVZ will reflect the host server’s time by default, You can configure your VPS with custom...
Change default RDP port in windows server 2012 R2
By default Windows machines are remotely accessible via Remote Desktop on TCP port 3389. In...