{"id":27,"date":"2014-06-16T05:30:44","date_gmt":"2014-06-16T05:30:44","guid":{"rendered":"http:\/\/www.pir8geek.com\/?p=27"},"modified":"2014-06-16T05:30:44","modified_gmt":"2014-06-16T05:30:44","slug":"setup-vpn-pptp-server-ubuntu-server","status":"publish","type":"post","link":"https:\/\/www.jameseduard.com\/?p=27","title":{"rendered":"How to Setup VPN PPTP Server in Ubuntu Server"},"content":{"rendered":"<p>A<strong> VPN<\/strong> network<em> (Virtual Private Network)<\/em> is a secured virtual network that allows to send data between two computers either across Internet or shared network completely safe. In this tutorial we set a type of VPN called PPTP (supported by Microsoft) in our Ubuntu 12.04Lts server edition. The steps are of following reported<br \/>\n<strong>1. Installation of PPTP<\/strong><\/p>\n<pre>sudo apt-get install pptpd<\/pre>\n<p>2. Edit the configuration file<\/p>\n<pre>sudo gedit \/etc\/pptpd.conf<\/pre>\n<p>3. Configuration of PPTP<br \/>\nAt the bottom of the file, you will find recommended settings for both localip and remoteip. Uncomment localip and remoteip, then configure your IP address range for remoteip if needed. Where:localip: is the IP address of your server adapter<br \/>\nremoteip: contains the IP address range allowed for users to use when connecting through VPN to your server.<\/p>\n<pre>\nlocalip 192.168.0.1\nremoteip 192.168.0.250-254, 192.168.0.15\n<\/pre>\n<p>When you finish your configuration, save the file and close it.<br \/>\n4. Set up VPN secrets<\/p>\n<pre> sudo gedit \/etc\/ppp\/chap-secrets<\/pre>\n<p>5. Add users you want to grant access<br \/>\nadd the lines<\/p>\n<pre>\n# Secrets for authentication using CHAP\n# client server secret IP addresses\nrobert pptpd vpn_pwd1 211.30.0.0\/14\nrichard pptpd vpn_pwd2 212.220.0.0\/12\n<\/pre>\n<p>Note: \u201cvpn-pwdX\u201d is the password that the user will use to connect to the VPN network.<br \/>\nTo allow all IP addresses for a user, use this example:<\/p>\n<pre>\n# Secrets for authentication using CHAP\n# client server secret IP addresses\nrichard pptpd password *\n<\/pre>\n<p>at this point restart the service<\/p>\n<pre>sudo \/etc\/init.d\/pptpd restart<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>A VPN network (Virtual Private Network) is a secured virtual network that allows to send data between two computers either across Internet or shared network completely safe. In this tutorial we set a type of VPN called PPTP (supported by Microsoft) in our Ubuntu 12.04Lts server edition. The steps are of following reported 1. Installation<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[47,49],"tags":[14,77,18],"class_list":["post-27","post","type-post","status-publish","format-standard","hentry","category-how-tos","category-ubuntu","tag-pptp","tag-ubuntu-server","tag-vpn"],"_links":{"self":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/posts\/27","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=27"}],"version-history":[{"count":0,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/posts\/27\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=27"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=27"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}