{"id":816,"date":"2012-10-17T00:24:56","date_gmt":"2012-10-17T00:24:56","guid":{"rendered":"http:\/\/kraftek.com\/blog\/?p=816"},"modified":"2012-10-17T00:24:56","modified_gmt":"2012-10-17T00:24:56","slug":"create-a-pptpd-vpn-server","status":"publish","type":"post","link":"\/blog\/index.php\/create-a-pptpd-vpn-server\/","title":{"rendered":"create a pptpd vpn server"},"content":{"rendered":"<p>1. Install pptpd.<\/p>\n<pre> <code>sudo apt-get install pptpd<\/code><\/pre>\n<p>2. the contents of my pptpd.conf:<\/p>\n<pre>option \/etc\/ppp\/pptpd-options\ndebug dump\nlogwtmp\nlocalip 192.168.2.6\nremoteip 192.168.2.230-239<\/pre>\n<p>The local IP address is the IP address of your server, the one in ifconfig.\u00a0The remote IPs are a range you would like the remote user to use on your LAN.<\/p>\n<p>3. My \/etc\/ppp\/pptpd-options:<br \/>\n<code><\/code><\/p>\n<pre>name pptpd\nrefuse-pap\nrefuse-chap\nrefuse-mschap\nrequire-mschap-v2\nrequire-mppe-128\nproxyarp\nnodefaultroute\nlock\nnobsdcomp<\/pre>\n<p>4. Add user names and passwords for the users you want to give access to your vpn.<\/p>\n<pre><code> rdpm pptpd mypassword *<\/code><\/pre>\n<p>5. Enable ipv4 forwarding in \/etc\/sysctl.conf:<br \/>\n<code><\/code><\/p>\n<pre><code>net.ipv4.ip_forward=1<\/code><\/pre>\n<p>6. enable the ipv4 forwarding setting<\/p>\n<pre>sysctl -p<\/pre>\n<p>7. restart pptpd<\/p>\n<pre>\/etc\/init.d\/pptpd restart<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Install pptpd. sudo apt-get install pptpd 2. the contents of my pptpd.conf: option \/etc\/ppp\/pptpd-options debug dump logwtmp localip 192.168.2.6 remoteip 192.168.2.230-239 The local IP address is the IP address of your server, the one in ifconfig.\u00a0The remote IPs are a range you would like the remote user to use on your LAN. 3. My [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,1],"tags":[],"class_list":["post-816","post","type-post","status-publish","format-standard","hentry","category-linux","category-uncategorized"],"_links":{"self":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/816","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=816"}],"version-history":[{"count":0,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/816\/revisions"}],"wp:attachment":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=816"},{"taxonomy":"post_tag","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}