Enabling VPN Inside Container
Posted by Patrick Tomlin on 27 October 2010 05:38 PM
Enabling VPN Inside Container

Virtual Private Network (VPN) is a technology allowing you to establish a secure network connection over an insecure public network. In Parallels Virtuozzo Containers, you can make Containers operate as VPN clients connecting to VPN remote access servers. By default, the VPN support inside a Container is disabled. However, you can use the --vpn option of the vzctl set command to enable the VPN functionality in Containers. Let us assume that you want to turn on the VPN support inside Container 101. To do this, execute the following commands on the Hardware Node:
Notice that the changes made to Container 101 will take effect on the next Container startup.
To check that the VPN support is now turned on inside Container 101, run the following command:
The command output shows that Container 101 is currently operating in the host-routed mode and the VPN support is enabled inside the Container.
From this moment on, you can start connecting Container 101 to private networks in the same way as you would do it on any other standalone server (e.g., using the New Connection Wizard which can be launched by double-clicking the New Connection Wizard icon in the Network Connections applet).
At any time, you can disable the VPN support inside Container 101 by issuing the following command:
C:\...\Administrator>vzctl set 101 --vpn on --save
Command 'set' is successfully finished
C:\...\Administrator>vzlist -o nettype 101
C:\...\Administrator>vzctl set 101 --vpn off --save
(163 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name: