Enable PPP on openvz

Enabling PPTP VPN in Openvz virtual machine
Saturday, May 5, 2012 6:46:14 PM Asia/Calcutta
This post describes how you can enable PPTP VPN in a Virtual Machine inside a Hardware Node. Hereafter, we will be indicating Hardware Node as HN and Virtual Node as VE
Only the steps are mentioned below.

1. Make sure devel package of the OpenVZ kernel is installed in HN.

2. Make sure TUN/TAP is enabled for the VE and PPTP VPN is installed and running.

3. Load all the PPP modules in HN

HN#

modprobe tun

modprobe ppp-compress-18

modprobe ppp_mppe

modprobe ppp_deflate

modprobe ppp_async

modprobe pppoatm

modprobe ppp_generic

4. Stop the VE

# vzctl stop {VEID}

5. From HN, run the below commands:

HN#

vzctl set {VEID} --devnodes net/tun:rw --save
vzctl set{VEID} --devices c:10:200:rw --save
vzctl stop {VEID} 
vzctl set {VEID} --capability net_admin:on --save
vzctl start {VEID} 
vzctl exec {VEID} mkdir -p /dev/net
vzctl exec {VEID} chmod 600 /dev/net/tun

6. Login to VE and see if the 'pppd' command works.

VE#

# /usr/sbin/pppd

If you see some garbage values, it means it is enabled correctly.

{VEID}
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to install Zend for Linux

1. Download Zend in the server you want to install. Linux 32b -...

How to change MAC address in Linux

First find the physical MAC address of your machine by running the following command : $...

Upgrade php on Plesk

By default Plesk installation, the PHP version is 5.1.x, if you want to upgrade it to 5.2 or even...

CENTOS - How to install the text setup utility

Text Setup Utility is a text based utility that allow you to make some configuration on a linux...

CENTOS - How to add the network configuration tool to the text based setup tool

If you ran setup and it doesn't show the network configuration tool Then run this command on...