HN # 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
HN # vzctl set [VEID]--devices c:108:0:rw --save
HN # vzctl set [VEID] --features ppp:on --save
HN # vzctl exec [VEID] mknod /dev/ppp c 108 0
HN # vzctl exec [VEID] chmod 600 /dev/ppp
VPS:
apt-get install ppp pptpd
vim /etc/pptpd.conf
localip 192.168.0.1
remoteip 192.168.0.234-238,192.168.0.245
mknod /dev/ppp c 108 0
# net.ipv4.ip_forward = 1
# iptables -A POSTROUTING -t nat -s 10.10.10.0/24 -j SNAT --to-source MYVPSIP
# /etc/init.d/iptables save
User Login:
vi /etc/ppp/chap-secrets
# client server secret IP addresses myusername pptpd ???????? *