Set up / install.
Code:
http://sourceforge.net/projects/poptop/files/pptpd/pptpd-1.3.4/pptpd-1.3.4.tar.gz/download
tar -zxf pptpd-1.3.4.tar.gz
cd pptpd-1.3.4
./configure
make && make install
... set up the service or whatever, up to you.
OR, probably easier:
Change your yum to use whatever pptpd is located on if you can't find it, this may work though...
Code:
yum install ppp
Then:
yum install pptpd
Anyway, up to you how you install it. Once installed:
Edit the following file and save.
Note: These may vary on your network setup. I use these at OVH.
nano /etc/pptpd.conf
Code:
option /etc/ppp/options.pptpd
localip 192.168.0.234-238
remoteip 192.168.1.234-238
Edit the following file and save.
nano /etc/ppp/options.pptpd
Code:
name pptpd
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
proxyarp
lock
nobsdcomp
novj
novjccomp
nologfd
Edit the following file and save.
nano /etc/ppp/chap-secrets
Code:
exampleuser pptpd examplepass *
Edit the following file and save.
Some IP table rules and settings:
Code:
nano /etc/sysctl.conf
change net.ipv4.ip_forward=0 to net.ipv4.ip_forward=1
Start pptpd, make sure it's all fine:
Once done, set up your connection. In Windows 7:
Control Panel
Network & Sharing
Set Up New Connection
Connect to a Workplace
New Connection
"Use my internet connection (VPN)"
Address: IP address/domain of your server
Username & Password are what you put in the chapsecrets file.
If you get an "Encryption not supported" right click the connection in the task bar, go properties. Go into security and check data encryption "Optional".
This is a pretty basic guide, if you want to set up encryption and the more fancy stuff you can do so from here. This basically gets you connected though
To confirm it's working, check:
http://wgtools.com/your-ip/ to see if it shows your server IP.