Changes

Jump to: navigation, search

VPN via the TUN/TAP device

184 bytes removed, 19:13, 18 February 2015
--devnodes should be enough
== Granting container an access to TUN/TAP ==
 
Allow your container to use the tun/tap device by running the following commands on the host node:
CTID=101
vzctl set $CTID --devnodes net/tun:rw --save
vzctl set $CTID --devices c:10:200:rw --save
vzctl set $CTID --capability net_admin:on --save
vzctl exec $CTID mkdir -p /dev/net
vzctl exec $CTID mknod /dev/net/tun c 10 200
vzctl exec $CTID chmod 600 /dev/net/tun
== Configuring VPN inside container ==

Navigation menu