Data Networking/Spring 2015/GROUP4/VPN
Appearance
CONFIGURATION AT THE VPN SERVER
[edit | edit source]1.Install pptpd and ufw
sudo apt-get install pptpd ufw
2.open the ports needed.The guide suggest 22 ssh and 1723 for pptpvpn
sudo ufw allow 22 sudo ufw allow 1723 sudo ufw enable
3.edit /etc/ppp/pptpd.conf
local IP 192.168.5.6 Remote IP 192.168.5.15-70
4. edit /etc/ppp/chap-secrets
[username] [service] [password] [Allowed IP Address]
5.Restart pptpd,To run this command
sudo /etc/init.d/pptpd restart
6.edit /etc/sysctl.conf uncomment the following for enabling IP forwarding
/etc/sysctl.conf:net.ipv4.ip_forward=1
To reload configuration:
sudo syctl -p
CONFIGURATION AT VPN CLIENT
[edit | edit source]1.Install PPTP in client machine
sudo apt-get install pptp
2.Add required Kernel module
modprobe ppp_mppe
3.Now open the peers file and add the following commands.
sudo nano /etc/ppp/peers/pptserver
4.call the pptpd server using this command .Establish connection between pptpd server and client
pppd call pptpserver
5.Now open the syslog file in which we can see successful connection from PPTP server
tail -f /var/log/syslog