Advertisement
shokti

centos 6.5 - pptp vpn

Jun 24th, 2014
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. install pptpd(poptop):
  2. yum -y install pptpd
  3.  
  4. configure the local & remote ip:
  5. vi /etc/pptpd.conf
  6. ----------------------------------------
  7. localip 10.0.0.1
  8. remoteip 10.0.0.100-200
  9. ----------------------------------------
  10.  
  11. define the users that have access to the vpn:
  12. vi /etc/ppp/chap-secrets
  13. ----------------------------------------
  14. linuxadmin pptpd password!1 *
  15. ----------------------------------------
  16.  
  17. configure dns server, authentication, protocol, and mtu:
  18. /etc/ppp/options.pptpd
  19. ----------------------------------------
  20. ms-dns 8.8.8.8
  21. ms-dns 8.8.4.4
  22. ----------------------------------------
  23.  
  24. restart service:
  25. service pptpd restart
  26.  
  27. start pptpd at boot:
  28. chkconfig pptpd on
  29.  
  30. add in iptables rules:
  31. iptables -A INPUT -p gre -j ACCEPT
  32. iptables -A INPUT -p tcp --dport 1723 -j ACCEPT
  33. service iptables save
  34. service iptables restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement