Knowledge Base
MilesWeb / How-Tos

What Is PPP And How To Enable It For VPS ?

Approx. read time : 3 min

What is PPP ?

PPP (Point-to-Point Protocol) is a protocol for communication between two computers using a serial interface. A machine connected by phone line to a server. It is a full duplex protocol which can be used on different physical media.

By enabling the pppd daemon in a VPS (Virtual Private Server), you can connect your DSL provider from the VPS. PPP is compatible with OpenVZ kernel 2.6.27 OR later. If you do not have kernel 2.6.27 OR later installed, kindly upgrade it.

Let’s load the PPP modules on your host node. With the commands below, PPP modules will be loaded.

[[email protected] ~]# modprobe ppp_async
[[email protected] ~]# modprobe ppp_deflate
[[email protected] ~]# modprobe ppp_mppe

To verify them, use the command below. If it shows the correct output, PPP modules have been loaded.

[[email protected] ~]# lsmod | grep ppp
ppp_mppe 6190 0
ppp_deflate 4184 0
zlib_deflate 21629 1 ppp_deflate
ppp_async 7874 0
ppp_generic 25400 3 ppp_mppe,ppp_deflate,ppp_async
slhc 5821 1 ppp_generic
crc_ccitt 1733 1 ppp_async

The time you reboot the host node, these changes will be lost. If you want these modules to load on reboot, create a file and set 755 permissions to it.

[[email protected] ~]# vi /etc/sysconfig/modules/ppp.modules

#!/bin/sh
/sbin/modprobe ppp_async
/sbin/modprobe ppp_deflate
/sbin/modprobe ppp_mppe

[[email protected] ~]# chmod 755 /etc/sysconfig/modules/ppp.modules

Stop your VPS and set PPP feature on it. Start it VPS on setting this feature.

[[email protected] ~]# vzctl stop CTID
[[email protected] ~]# vzctl set CTID –features ppp:on –save
[[email protected] ~]# vzctl start CTID

Enable /dev/ppp for the VPS

[[email protected] ~]# vzctl set CTID –devices c:108:0:rw –save
[[email protected] ~]# vzctl exec CTID mknod /dev/ppp c 108 0
[[email protected] ~]# vzctl exec CTID chmod 600 /dev/ppp

You have enabled PPP for the VPS now. You can cross check if it has been enabled properly by logging into the VPS & executing the command below.

[[email protected] ~]# /usr/sbin/pppd

It should show an gibberish output below.

~�}#�!}!}!} }4}”}&} } } } }%}&)Q�}4}’}”}(}”p})

The output will keep on printing for 30 seconds. If you do not get this output OR an error message, you have missed few steps.

NOTE – Make sure you replace CTID with your actual VPS ID.

Save

With over 10+ years of experience in the web hosting industry, I have achieved extensive exposure to result-oriented methodologies. And expertise in different domains like Datacentre Services, Cloud computing technology, Web hosting industry and many more.
Need help? We’re always here for you.