CARA MEMBUAT PPTP VPN PADA SERVER UBUNTU


Assalamualaikum 

I want to share how to create pptp vpn on this article!

WHAT IS PPTP ?

The Point-to-Point Tunneling Protocol (PPTP) is an obsolete method for implementing virtual private networks, with many known security issues. PPTP uses a TCP control channel and a Generic Routing Encapsulation tunnel to encapsulate PPP packets.
(From Wikipedia, the free encyclopedia)

 HOW TO CREATE PPTP ON UBUNTU?

1.  LOGIN TO YOUR SSH 
login to ssh as root
run command > sudo su 

2.  UPDATE YOUR UBUNTU SERVER
run command >  apt-get update

3.  INSTALL PPTPD ON YOUR SERVER
run command > apt-get install pptpd
   
4.  EDIT FILE /etc/pptpd.conf
run command > nano /etc/pptpd.conf
add this text on bottom
localip 192.168.69.1
remoteip 192.168.69.100-200
push ctrl + X and type Y
 
klik enter for save   

5.   ADD USER AND PASSWORD FOR AUTHENTICATION PPTP USER
run command > nano /etc/ppp/chap-secrets 





add username with your username and password with your password and this character * mean all ip can acces your pptp 

6.  ADD DNS SERVER 
run command >nano /etc/ppp/pptpd-options
add open dns 
ms-dns 8.8.8.8
ms-dns 8.8.4.4

7.  SETUP FORWARDING 
run command > nano /etc/sysctl.conf
remove # character before  #net.ipv4.ip_forward = 1 to net.ipv4.ip_forward = 1

To make changes active, run sysctl -p

 8.  CREATE NAT RULE
run command > sudo nano /etc/rc.local
add this text before exit 0

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE && iptables-save
iptables --table nat --append POSTROUTING --out-interface ppp0 -j MASQUERADE
iptables -I INPUT -s 192.168.69.0/8 -i ppp0 -j ACCEPT
iptables --append FORWARD --in-interface eth0 -j ACCEPT



9. RESTART YOUR SERVER FOR SAVE ALL CONFIGURATION
run command > sudo shutdown -r now

and now PPTP already on your server!

sorry for my english thanks for visit my blog! 

want to buy a PPTP VPN server? contact me:

ismailpujisaputra@gmail.com 

or whatsapp +62813 7911 9607

No comments