ºìÁªLinuxÃÅ»§
Linux°ïÖú

debian Linux ÏÂʵÏÖvpn·þÎñÆ÷

·¢²¼Ê±¼ä:2006-04-17 00:47:51À´Ô´:ºìÁª×÷Õß:yo
·þÎñÆ÷¶ËÉèÖÃ:
ÏÈÒª¸øvpn·þÎñÆ÷µÄÄÚºËÌí¼Ómppe²¹¶¡£¬
´Ódebian»ñÈ¡²¹¶¡:
apt-get install kernel-patch-mppe
È»ºóÔÚµ±Ç°Äں˶ÔÓ¦µÄÔ´´úÂëĿ¼£¬Ö´ÐÐÐÞ²¹³ÌÐò£¬
#cd /usr/src/kernel-source-2.6.8
#/usr/src/kernel-patches/all/apply/mppe

ÔÚÄں˵ÄpppÏ£¬»á¶àÒ»¸ömppe¹¦ÄÜ£¬°ÑËü±àÒë³ÉÄ£¿éµÄÐÎʽ£¬²¢°²×°£¬Ä£¿éÐÎʽ¿ÉÒÔÖ±½Ó¹ÒÔØ£¬²»ÓÃÆô¶¯»úÆ÷,ÐÞ¸Ä/etc/modules,Ìí¼ÓÒ»ÐÐ
ppp_mppe
°²×°:pptp·þÎñ³ÌÐò,ºÍÉèÖóÌÐò:
apt-get install pptpd webmin-pptp-server
ÏÂÃæ¾Í¿ÉÒÔÖ±½Ó½øwebmin¶Ôpptpd½øÐÐÉèÖÃÁË¡£Ò»Çа´Ä¬ÈÏÉèÖã¬Òª°Ñ
[Enable MPPE encryption?] Ñ¡ÏîÉèÖÃΪ[Must be used]
ÕâÑù£¬¾Í²»ÓÃÐÞ¸Äwin¿Í»§¶ËµÄ°²È«Ä¬ÈÏÉèÖÃÁË¡£
ÔÙ½øÐзÖÅäip³Ø,
È»ºó½¨Á¢Õ˺ţ¬¸ù¾ÝÐèÒª¸øÕ˺Űó¶¨ip
webminµÄÉèÖò¢²»ÄÜÕý³£¹¤×÷£¬×îºóÒªÔÚÉèÖÃÎļþ\etc\pptp.confÖÐÊÖ¶¯Ìí¼Ó¼¸¸öÉèÖ㬼ûºóÒ³Ëùʾ


win¿Í»§¶ËÉèÖÃ:
ÔÚ[ÍøÂçºÍ²¦ºÅÁ¬½Ó]½øÐÐ[н¨Á¬½Ó]Ñ¡[vpn],°´Ä¬ÈÏÉèÖÃÏÂÈ¥¾ÍÐÐÁË¡£

linux¿Í»§¶ËÉèÖÃ:
ÏÈ°²×°¿Í»§¶ËÈí¼þ
apt-get install pptp-linux
°²×°webmin¹ÜÀí
apt-get install webmin-pptp-client
È»ºóÓÃwebminÉèÖþÍÐÐÁË¡£
¿Í»§¶Ë×Ô¶¯²¦ºÅ:
½«ÏÂÃæÒ»¾ä·ÅÔÚÊʵ±µÄλÖÃ
pptp vpn.anheng.com.cn call anheng &
½«vpnµÄ½ÓÈë»úÆ÷¸ú¾ÖÓòÍøµÄ»úÆ÷ÔÚͬһÍø¶Î£º
ÔÚ/etc/pptp.confÖУ¬°ÑlocalipÈ¥µô£¬remoteip·ÖÅäÒ»¶Î±¾Íøip,È»ºó/etc/pptp-optionsÀïÃæ´ò¿ªarproxy,°Ñarp´«µ½¾ÖÓòÍø£¬¾Í¿ÉÒÔÁË
²Î¿¼µÄÉèÖÃÎļþ¼ûÏÂÒ»Ò³

·þÎñÆ÷¶ËÏà¹ØÅäÖÃÎļþ
#debian_3.1 kernel_2.6.8 pptpd_1.2.1 pppd_2.4.2 pptp_linux_1.5.0
#=================================================
#files:/etc/pptpd.conf
speed 1000000
option /etc/ppp/pptpd-options
localip 10.0.0.254
remoteip 10.0.0.2-238
#end


#==================================================
#files:/etc/ppp/pptpd-options
logfile /var/log/pptpd.log
name pptpd
refuse-eap
proxyarp
nodefaultroute
lock
nobsdcomp
auth
require-mppe
require-mschap
#end

#=================================================
#file:/etc/ppp/chap-secrets
test pptpd test 10.0.0.2
#end

#=================================================
#file:/etc/modules
...
...
...
ppp_mppe
#end

#=================================================
#file://etc/modules.conf
...
...
...
...
#end

linux¿Í»§¶ËÏàÓ¦ÅäÖÃÎļþ
#file:/etc/ppp/peers/anheng
name USERID
file /etc/ppp/options.pptp
remotename pptpd
require-mppe
require-mppe-40
require-mppe-128
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 1 ÌõÆÀÂÛ

  1. ĪÞÈ ÓÚ 2006-07-28 17:20:16·¢±í:

    goodµÄ