{"id":4153,"date":"2014-09-23T14:57:53","date_gmt":"2014-09-23T06:57:53","guid":{"rendered":"http:\/\/blog.hmouse.tk\/?p=4153"},"modified":"2015-06-07T11:13:08","modified_gmt":"2015-06-07T03:13:08","slug":"linux%e4%b8%8bvpn%e7%9a%84%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"https:\/\/www.hmouse.cn\/?p=4153","title":{"rendered":"linux\u4e0bVPN\u7684\u4f7f\u7528"},"content":{"rendered":"<p>\u5ba2\u6237\u7aef\u7684\u4f7f\u7528<\/p>\n<p>\u8981\u4f7f\u7528\u5230 pptp-setup \u8f6f\u4ef6<\/p>\n<p>yum -y install\u00a0 pptp-setup<\/p>\n<p>\/usr\/sbin\/pptpsetup &#8211;create vpn &#8211;server\u00a0 180.166.126.163 &#8211;username topcmm &#8211;password topcmm123(*&amp; &#8211;encrypt \u2013start<\/p>\n<p>\u518d\u52a0\u4e0a\u4e2a\u4f2a\u88c5\u3002<\/p>\n<p>\/sbin\/route add -net 0.0.0.0 dev ppp0<\/p>\n<p>\u5373\u53ef<\/p>\n<p>#############<\/p>\n<p>\u670d\u52a1\u7aef<\/p>\n<p>\u5b89\u88c5 pptpd \u5373\u53ef \u7136\u540e\u8bb0\u5f97\u5b89\u88c5 \u505a\u4e0b\u8f6c\u53d1<\/p>\n<p>\/sbin\/iptables -t nat -A POSTROUTING\u00a0 -s 192.168.30.0\/24\u00a0 -j MASQUERADE<\/p>\n<p>\u540e\u6765\u9047\u5230\u4e2a\u5947\u602a\u7684\u95ee\u9898\uff0c\u516c\u53f8\u7684VPN \u65e0\u6cd5\u8bbf\u95ee\u90e8\u5206\u7f51\u9875\u3002\u5f88\u662f\u5947\u602a\uff0c\u800c\u4e14mac\u662f\u597d\u7684\u3002\u540e\u6765\u4ecegoogle\u91cc\u53d1\u73b0\u4e00\u4e2a\u89e3\u51b3\u529e\u6cd5\uff1a<\/p>\n<p><a title=\"http:\/\/www.wincold.com\/archives\/99.html\" href=\"http:\/\/www.wincold.com\/archives\/99.html\">http:\/\/www.wincold.com\/archives\/99.html<\/a><\/p>\n<p>\u5176\u5b9e\u4ed6\u662f\u6539\u914d\u7f6e\uff0c\u6211\u6ca1\u7528\u4ed6\u7684\uff0c\u53bb\u6389\u52a0\u5bc6\uff0c\u5728\u8bc4\u8bba\u91cc\u9762\u6211\u770b\u5230\uff1a<\/p>\n<p>####################<\/p>\n<p><cite>Breadcrumbs<\/cite> says:<\/p>\n<p><a href=\"http:\/\/www.wincold.com\/archives\/99.html\/comment-page-1#comment-43\">2011\/04\/11 at 11:05<\/a><\/p>\n<p>\u5e94\u8be5\u662f\u7531\u4e8emtu\u503c\u9020\u6210\u7684\uff0cwinxp\u9ed8\u8ba4mtu\u4e3a1400\uff0c\u800cpptp\u9ed8\u8ba4mtu\u4e3a1396<\/p>\n<p>\u6240\u4ee5\u4e34\u65f6\u4fee\u6539\u529e\u6cd5\u4e3alinux\u4e0b\u8fd0\u884c ifconfig ppp0 mtu 1400<\/p>\n<p>\u6c38\u4e45\u4fee\u6539ppp0\u7684mtu\u529e\u6cd5\u4e3a\u4fee\u6539\/etc\/ppp\/ip-up,\u5728\u5012\u6570\u7b2c\u4e8c\u884c\u4e5f\u5c31\u662fexit 0\u524d\u9762\u52a0\u4e0a\/sbin\/ifconfig $1 mtu 1400<\/p>\n<p>\u53c2\u89c1\uff1a<br \/>\n<a href=\"http:\/\/blog.gmsj.org\/113.html\">http:\/\/blog.gmsj.org\/113.html<\/a><br \/>\n<a href=\"http:\/\/www.members.optushome.com.au\/%7Ewskwok\/poptop_ads_howto_7.htm\">http:\/\/www.members.optushome.com.au\/~wskwok\/poptop_ads_howto_7.htm<\/a><\/p>\n<p><a href=\"http:\/\/www.wincold.com\/archives\/99.html?replytocom=43#respond\">Reply<\/a><\/p>\n<p>#########################<\/p>\n<p>\u6211\u89c9\u5f97\u5f88\u7b26\u5408\u6211\u9047\u5230\u7684\u95ee\u9898\uff0c\u5373window\u6709\u95ee\u9898\uff0c\u800c\u4e14mac\u65e0\u95ee\u9898\u3002\u6d4b\u8bd5\u540e\uff0c\u53d1\u73b0\u679c\u7136\u662fmtu\u7684\u95ee\u9898\uff0c\u73b0\u5728windows \u4e5f\u53ef\u4ee5\u4e0a\u767e\u5ea6\u4e86\uff01<\/p>\n<p>\u540e\u6765\u53d1\u73b0mac\u4e5f\u6709\u8fd9\u4e2a\u95ee\u9898\uff0cmtu\u6362\u6210\u4e861500\uff0c\u7136\u540ewindows \u548c mac \u90fd\u65e0\u95ee\u9898\u3002\u770b\u6765\u6700\u4f18\u7684\u8fd8\u662f1500\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5ba2\u6237\u7aef\u7684\u4f7f\u7528<\/p>\n<p>\u8981\u4f7f\u7528\u5230 pptp-setup \u8f6f\u4ef6<\/p>\n<p>yum -y install\u00a0 pptp-setup<\/p>\n<p>\/usr\/sbin\/pptpsetup &#8211;create vpn &#8211;server\u00a0 180.166.126.163 &#8211;username topcmm &#8211;password topcmm123(*&amp; &#8211;encrypt \u2013start<\/p>\n<p>\u518d\u52a0\u4e0a\u4e2a\u4f2a\u88c5\u3002<\/p>\n<p>\/sbin\/route add -net 0.0.0.0 dev ppp0<\/p>\n<p>\u5373\u53ef<\/p>\n<p>#############<\/p>\n<p>\u670d\u52a1\u7aef<\/p>\n<p>\u5b89\u88c5 pptpd \u5373\u53ef \u7136\u540e\u8bb0\u5f97\u5b89\u88c5 \u505a\u4e0b\u8f6c\u53d1<\/p>\n<p>\/sbin\/iptables -t nat -A POSTROUTING\u00a0 -s 192.168.30.0\/24\u00a0 -j MASQUERADE<\/p>\n<p>\u540e\u6765\u9047\u5230\u4e2a\u5947\u602a\u7684\u95ee\u9898\uff0c\u516c\u53f8\u7684VPN \u65e0\u6cd5\u8bbf\u95ee\u90e8\u5206\u7f51\u9875\u3002\u5f88\u662f\u5947\u602a\uff0c\u800c\u4e14mac\u662f\u597d\u7684\u3002\u540e\u6765\u4ecegoogle\u91cc\u53d1\u73b0\u4e00\u4e2a\u89e3\u51b3\u529e\u6cd5\uff1a<\/p>\n<p><a title=\"http:\/\/www.wincold.com\/archives\/99.html\" href=\"http:\/\/www.wincold.com\/archives\/99.html\">http:\/\/www.wincold.com\/archives\/99.html<\/a><\/p>\n<p>\u5176\u5b9e\u4ed6\u662f\u6539\u914d\u7f6e\uff0c\u6211\u6ca1\u7528\u4ed6\u7684\uff0c\u53bb\u6389\u52a0\u5bc6\uff0c\u5728\u8bc4\u8bba\u91cc\u9762\u6211\u770b\u5230\uff1a<\/p>\n<p>####################<\/p>\n<p><cite>Breadcrumbs<\/cite> says:<\/p>\n<p><a href=\"http:\/\/www.wincold.com\/archives\/99.html\/comment-page-1#comment-43\">2011\/04\/11 at 11:05<\/a><\/p>\n<p>\u5e94\u8be5\u662f\u7531\u4e8emtu\u503c\u9020\u6210\u7684\uff0cwinxp\u9ed8\u8ba4mtu\u4e3a1400\uff0c\u800cpptp\u9ed8\u8ba4mtu\u4e3a1396<\/p>\n<p>\u6240\u4ee5\u4e34\u65f6\u4fee\u6539\u529e\u6cd5\u4e3alinux\u4e0b\u8fd0\u884c ifconfig ppp0 mtu 1400<\/p>\n<p>\u6c38\u4e45\u4fee\u6539ppp0\u7684mtu\u529e\u6cd5\u4e3a\u4fee\u6539\/etc\/ppp\/ip-up,\u5728\u5012\u6570\u7b2c\u4e8c\u884c\u4e5f\u5c31\u662fexit 0\u524d\u9762\u52a0\u4e0a\/sbin\/ifconfig $1 mtu 1400<\/p>\n<p>\u53c2\u89c1\uff1a<br \/>\n<a href=\"http:\/\/blog.gmsj.org\/113.html\">http:\/\/blog.gmsj.org\/113.html<\/a><br \/>\n<a href=\"http:\/\/www.members.optushome.com.au\/%7Ewskwok\/poptop_ads_howto_7.htm\">http:\/\/www.members.optushome.com.au\/~wskwok\/poptop_ads_howto_7.htm<\/a><\/p>\n<p><a href=\"http:\/\/www.wincold.com\/archives\/99.html?replytocom=43#respond\">Reply<\/a><\/p>\n<p>#########################<\/p>\n<p>\u6211\u89c9\u5f97\u5f88\u7b26\u5408\u6211\u9047\u5230\u7684\u95ee\u9898\uff0c\u5373window\u6709\u95ee\u9898\uff0c\u800c\u4e14mac\u65e0\u95ee\u9898\u3002\u6d4b\u8bd5\u540e\uff0c\u53d1\u73b0\u679c\u7136\u662fmtu\u7684\u95ee\u9898\uff0c\u73b0\u5728windows \u4e5f\u53ef\u4ee5\u4e0a\u767e\u5ea6\u4e86\uff01<\/p>\n<p>\u540e\u6765\u53d1\u73b0mac\u4e5f\u6709\u8fd9\u4e2a\u95ee\u9898\uff0cmtu\u6362\u6210\u4e861500\uff0c\u7136\u540ewindows \u548c mac \u90fd\u65e0\u95ee\u9898\u3002\u770b\u6765\u6700\u4f18\u7684\u8fd8\u662f1500\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[50,116],"class_list":["post-4153","post","type-post","status-publish","format-standard","hentry","category-5","tag-linux-vpn-","tag-window","category-5-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=\/wp\/v2\/posts\/4153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4153"}],"version-history":[{"count":5,"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=\/wp\/v2\/posts\/4153\/revisions"}],"predecessor-version":[{"id":4382,"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=\/wp\/v2\/posts\/4153\/revisions\/4382"}],"wp:attachment":[{"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}