Granting container an access to TUN/TAP
Here 101 is your VPS container ID which you have to replace with your vps id.
Allow your container to use the tun/tap device:
vzctl set 101 --devices c:10:200:rw --save
vzctl set 101 --capability net_admin:on --save
And create the character device file inside the container:
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
EnJoY VPN on OPENVZ.
Monday, March 16, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment