
²âÊÔ»·¾³£ºPC Á½Ì¨(½ÓÈëͬ VPN server)£¬USR-G806 һ̨(ʹÓà 4G ½Ó¿Ú);
VPN ·þÎñÆ÷£ºÊ¹ÓÃÎÒ˾²âÊÔ VPN ·þÎñÆ÷,test.usr.cn ;?
USR-G806£º²ÉÓà 4G ½Ó¿ÚÁ¬½ÓÍâÍø£¬´´½¨ PPTP ½Ó¿ÚÁ¬½Ó VPN;
PC1:ͨ¹ý PPTP ÐÒéÁ¬½Ó VPN;
PC2£º½ÓÈë USR-G806 µÄ LAN£¬×÷Ϊ×ÓÍøÉ豸¡£

1¡¢½øÈëÄÚÖÃÍøÒ³£¬806ĬÈϵǼÓû§ÃûÃÜÂ룺root£¬root¡£

2¡¢ÄÚÖÃÍøÒ³ÍøÂç--½Ó¿Ú½çÃ棬н¨Ò»¸ö½Ó¿ÚÃû³Æ¿É×Ô¶¨Ò壬ÐÒéÑ¡ÔñVPN·þÎñÆ÷ÏàÓ¦µÄÐÒé¡£±ÈÈçÒªÁ¬½ÓµÄVPNÀàÐÍΪPPTP£¬ÐÒé¾ÍÑ¡PPTP¡£


3¡¢ÌîÈë·þÎñÆ÷ÏàÓ¦µÄ²ÎÊý£¬±¾¶Ë½Ó¿Ú¸ù¾ÝÁªÍø·½Ê½µÄ²»Í¬¿ÉÑ¡Ôñ wan_4g¡¢wan_wired (4G¿¨ÉÏÍø¾ÍÑ¡wan_4g£¬ÓÐÏßÉÏÍø¾ÍÑ¡wan_wired)¡£Óû§ÃûºÍÃÜÂëÉèÖ÷þÎñÆ÷ÕË»§ºÍÃÜÂë¡£

4¡¢¸ß¼¶ÉèÖÃÖмÓÃÜ·½Ê½ÓëVPN·þÎñÆ÷¶ÔÓ¦£¬ÆäÖмÓÃÜ·½Ê½¿ÉÑ¡£ºmppe statefulÓÐ״̬Á¬½Ó£º»á½øÐÐƵ·±¸ü»»ÃÜÔ¿£¬ÇÒÔÚ¸ü»»ÃÜԿʱ»á³öÏÖÑÏÖضª°ü;mppe statelessÎÞ״̬Á¬½Ó£ºÖ»ÓÐÔÚ¶ª°üµÄʱºò»á½øÐÐÃÜÔ¿¸ü¸Ä;no mppe·þÎñ¶ËÎÞ MPPE ¼ÓÃÜ·½Ê½Ê±Ñ¡Ôñ´Ëģʽ¡£Ä§Êõ×Ö£ºµ±ÒÔÉÏÅäÖò»Âú×ãÅäÖÃÎļþºÍ·þÎñ¶ËÏòÆ¥ÅäʱÔÚ´ËÌí¼Ó¸½¼ÓÅäÖá£ÀýÈç·þÎñ¶Ë MPPE ÈÏÖ¤·½Ê½ Ϊ only mschapV2£¬G806 ¿ÉÔÚħÊõ×ÖÄÚÌí¼Ó refuse-eap refuse-chap refuse-pap refuse-mschap ÅäÖÃ

5¡¢VPNµÄ·À»ðǽÉèÖÃÑ¡WAN¡£

6. ÉèÖòÎÊýÎÞÎ󣬱£´æÓ¦ÓÃÖ®ºó¿ÉÒÔ¿´µ½É豸»ñÈ¡µ½µÄVPN IP¡£ÔÚ½Ó¿ÚpptpλÖÿÉÒÔ¿´µ½£¬Ò²¿ÉÒÔ½øÈëpptpÕâ¸ö½Ó¿Ú²é¿´¡£


7¡¢µ½ÏÖÔÚΪֹ£¬806ÒѾÁ¬½ÓÉÏVPNÁË£¬Á¬ÉÏͬһ¸öVPN·þÎñÆ÷µÄ¿Í»§¶Ë֮ǰ¿ÉÒÔÏ໥·ÃÎÊ£¬ËùÒÔÏÖÔÚVPNÆäËû¿Í»§¶Ë·ÃÎÊ806»ñÈ¡µ½µÄVPN IPÊÇͨµÄ£¬µ«ÊÇ·ÃÎʲ»µ½806ϵÄÖÕ¶ËÉ豸¡£ËùÒÔ¾ÍÐèÒªÉèÖö˿Úת·¢»ò¾²Ì¬Â·ÓÉ£¬±¾°¸ÀýÉèÖõÄÊǶ˿Úת·¢¡£ÐèÒª806ϵÄÖÕ¶ËÉèÖÃÉ豸Íø¹ØºÍDNS¡£
ÔÚÄÚÖÃÍøÒ³·À»ðǽ£¬¶Ë¿Úת·¢½çÃæ½øÐÐÉèÖá£ÄÚ²¿IPºÍ¶Ë¿ÚÉèÖÃΪÄÚÍøÉ豸µÄIPºÍ¶Ë¿Ú£¬Íⲿ¶Ë¿ÚÉèÖÃÒª±ÜÃâ³£Óö˿ڡ£

8¡¢PC2Ò²¾ÍÊÇ806µÄÄÚÍøµçÄÔ´ò¿ªÒ»¸ö´®¿Úµ÷ÊÔÖúÊÖ£¬×ötcp server£¬IPºÍ¶Ë¿ÚΪ±¾ÉíµÄIPºÍ¶Ë¿Ú£¬¿ªÊ¼¼àÌý¡£

9¡¢PC1¼´Áíһֱ̨½ÓÁ¬ÉÏVPNµÄµçÄÔ£¬´ò¿ªÍøÂçµ÷ÊÔÖúÊÖ£¬×ötcp clinet¶Ë£¬IPÉèÖÃ806»ñÈ¡µ½µÄVPN IP£¬¶Ë¿ÚÉèÖÃΪ¶Ë¿Úת·¢µÄÍⲿ¶Ë¿Ú¡£Äܹ»Á¬½Óµ½ 4G ·ÓÉÆ÷Ï嵀 TCP Server ²¢½øÐÐͨÐÅ¡£
