July 27, 2004

POPTOP with MPPE (encrypted VPN connection)

kernel is 2.4.25

http://sourceforge.net/projects/poptop/ 取得 kernelmod-0.8.4.tar.gz, ppp-2.4.3-0.cvs_20040527.1.src.rpm

解開 kernelmod-0.8.4.tar.gz 至 /tmp
因為 package 裡的 script 寫得不是很好, 所以手動安裝
cd /usr/src/linux-2.4.25
apply patch
patch -p1 < /tmp/kernelmod-0.8.4/2.4/linux-default-bsd-mppe.patch
cp /tmp/kernelmod-0.8.4/src/linux-default-bsd-mppe/*c drivers/net
cp /tmp/kernelmod-0.8.4/src/linux-default-bsd-mppe/*h drivers/net

make menuconfig 勾選 PPP MPPE compression (encryption)
(in Network device support ---> )

make dep && make bzImage

編譯 ppp
(不要用 http://www.samba.org/ppp/ 上的 package, 要用 http://sourceforge.net/projects/poptop/, 因為有加入 MPPE 的 support)

rpm --rebuild ppp-2.4.3-0.cvs_20040527.1.src.rpm
安裝
rpm -ivh /usr/src/RPM/RPMS/i586/ppp-2.4.3-0.cvs_20040527.1.i586.rpm

設定
# cat /etc/pptpd.conf
option /etc/ppp/options.pptpd
localip 192.168.0.1
remoteip 192.168.0.240-249
# cat /etc/ppp/options.pptpd
lock
auth
debug
name pptpd
proxyarp
nobsdcomp
require-mschap-v2
require-mppe

另外有看到類似的 module http://www.polbox.com/h/hs001/#AEN221, 看了一下, 也是差不多, kernel 也要 patch

ref.
http://www.poptop.org/
http://www.chinaunix.net/jh/4/308230.html
MPPE

Posted by pank at July 27, 2004 06:04 PM
Comments
Post a comment













Remember personal info?