Wednesday, 15 February 2012

Enable PPP on vps


1. Stop the container and load the modules into the vpsid 105
# vzctl stop 105

# modprobe ppp_async
# modprobe ppp_deflate
# lsmod | grep ppp
ppp_deflate             9793  2
zlib_deflate           21977  1 ppp_deflate
ppp_async              15169  1
crc_ccitt               6337  1 ppp_async
ppp_generic            30165  6 ppp_deflate,ppp_async
slhc                   10561  1 ppp_generic

2. set "ppp" feature for stoppped VE:

# vzctl set 105 --features ppp:on --save

3. start the container and apply the following settings

# vzctl start 105

# vzctl set 105 --devices c:108:0:rw --save
# vzctl exec 105 mknod /dev/ppp c 108 0
# vzctl exec 105 chmod 600 /dev/ppp

105 # /usr/sbin/pppd
~�}#�!}!}!} }4}"}&} } } } }%}&)Q�}4}'}"}(}"p})

If the above one is the output, then PPP is working fine.

No comments:

Post a Comment