{"id":21,"date":"2011-03-17T22:45:00","date_gmt":"2011-03-17T22:45:00","guid":{"rendered":"http:\/\/cazenave.co.uk\/wp\/?p=21"},"modified":"2014-04-24T22:06:19","modified_gmt":"2014-04-24T22:06:19","slug":"pptpd-installation-and-configuration","status":"publish","type":"post","link":"https:\/\/cazenave.co.uk\/pptpd-installation-and-configuration\/","title":{"rendered":"PPTPd installation and configuration"},"content":{"rendered":"
Setting up a PPTP server (aka VPN in Microsoft Windows operating systems) on Slackware 13.1 with the aid of SlackBuilds.org<\/a> (SBo) and sbopkg<\/a>. Most of this is lifted from here<\/a>, which was the most recent set of instructions I could find. Everything else dated from a few years ago, and that makes those documents about as useful as a chocolate teapot.<\/p>\n Install pptpd<\/a> from SBo. Use sbopkg if you like, otherwise follow the instructions here<\/a>.<\/p>\n Once that’s complete, edit \/etc\/ppp\/chap-secrets with your favourite editor. I like vim, so:<\/p>\n vim \/etc\/ppp\/chap-secrets<\/span><\/p><\/blockquote>\n Add a new username and password to log in:<\/p>\n someusername pptpd somestrongpassword *<\/span><\/p><\/blockquote>\n Replace someusername<\/span> and somestrongpassword<\/span> with the username and password you wish to use to connect to your VPN.<\/p>\n Now we need to tell pptpd how to handle the new connections’ IP addresses on the local network. Edit \/etc\/pptpd.conf with your favourite editor:<\/p>\n vim \/etc\/pptpd.conf<\/span><\/p><\/blockquote>\n In \/etc\/pptpd.conf, add the following lines to give the remote machine an IP on the local network in the 192.168.111.0\/24 subnet:<\/p>\n localip 192.168.111.1<\/span> Moving on, edit \/etc\/ppp\/options.pptpd<\/p>\n vim \/etc\/ppp\/options.pptpd<\/span><\/p><\/blockquote>\n In that file, replace ms-dns 192.168.1.1 and ms-dns 192.168.1.2 ms-dns 8.8.8.8 <\/span> The final step is opening up port 1723 on your router and setting up dynamic dns to provide a more easily remembered address to connect to from your remote host.<\/p>\n When all that’s done, launch pptpd as root and try connecting to your new PPTP\/VPN server.<\/p>\n <\/p>\n
remoteip 192.168.111.234-238,192.168.111.245<\/span><\/p><\/blockquote>\n
with Google’s DNS servers:<\/p>\n
ms-dns 8.8.4.4<\/span><\/p><\/blockquote>\n