{"id":97001,"date":"2011-06-06T02:55:24","date_gmt":"2011-06-05T18:55:24","guid":{"rendered":"\/2011\/06\/6\/pptpd_vpn.html"},"modified":"2011-06-06T02:55:24","modified_gmt":"2011-06-05T18:55:24","slug":"pptpd_vpn","status":"publish","type":"post","link":"https:\/\/blog.zhenglei.net\/?p=97001","title":{"rendered":"VPS ubuntu 10.10 config (9) *** PPTP VPN***"},"content":{"rendered":"<p># Install<\/p>\n<p>sudo apt-get update<\/p>\n<p>sudo apt-get upgrade<\/p>\n<p>sudo apt-get install pptpd<\/p>\n<p>&nbsp;<\/p>\n<p>#Config DNS<\/p>\n<p>sudo nano \/etc\/ppp\/pptpd-options,&nbsp; and enter the following:<\/p>\n<p>&nbsp; <span style=\"color: #0000ff;\"><em>ms-dns 8.8.8.8<\/em><\/span><\/p>\n<p><span style=\"color: #0000ff;\"><em>&nbsp; ms-dsn 8.8.4.4<\/em><\/span><\/p>\n<p>&nbsp;<\/p>\n<p>#Config Password:<\/p>\n<p>sudo nano \/etc\/ppp\/chap-secrets<\/p>\n<p>&nbsp;&nbsp;&nbsp; <span style=\"color: #0000ff;\"><em>acount [TAB] pptpd [TAB] password [TAB] IP addresses<\/em><\/span><\/p>\n<p>&nbsp;<\/p>\n<p># Config IP<\/p>\n<p>sudo nano \/etc\/pptpd.conf, &nbsp; and enter the following:<\/p>\n<pre class=\"text geshifilter-text\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\"><em>localip 10.168.10.1  <br \/>remoteip 10.168.10.10-20<\/em><\/span><br \/><br \/><br \/><\/pre>\n<p># Config IP forward and IP Nat<\/p>\n<pre>net.ipv4.ip_forward=1<\/pre>\n<pre>sudo iptables -t nat -A POSTROUTING -s 10.168.10.0\/24 -o eth0 -j MASQUERADE<\/pre>\n<pre class=\"text geshifilter-text\" style=\"font-family: monospace;\"><br \/><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Config PPTPD VPN on Ubuntu 10.10 <a href=\"https:\/\/blog.zhenglei.net\/?p=97001\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,2,9],"tags":[76],"class_list":["post-97001","post","type-post","status-publish","format-standard","hentry","category-internet","category-linux","category-vps","tag-pptpd"],"_links":{"self":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/97001","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=97001"}],"version-history":[{"count":0,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/97001\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=97001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=97001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=97001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}