Advertisement
codexual

PPTP Ubuntu

Feb 7th, 2018
4,223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. // http://NuLLocK.com/forums
  2.  
  3. // Content is below all this junk, but you should read this junk if you support me! <3
  4.  
  5. // Codexual @ NuLLocK.com
  6. // Become a Patreon.com/Codexual
  7. // Donation Are accepted Paypal.me/Codexual
  8. // YouTube.com/Codexual
  9. // Twitter.com/Codexual
  10. // Facebook.com/Codexual
  11. // Instagram.com/Codexual
  12. // Snapchat.com/add/Codexual
  13. // Twitch.tv/Codexual
  14. // Mixer.com/Codexual
  15. //
  16. // Gaming
  17. // https://steamcommunity.com/id/Codexual
  18. // Xbox - Codexual
  19. // PS4 - Codexual
  20. //
  21. // Hey Viewer, I would like to thank you. Speaking of being thankful, if you truly support my work, or just wanna be a good sport. // All I all of you is to follow me on my social media, like my content on all social media if you see me post something, and share // my content when you see me post something. Everything does help out, thank you again!
  22. //
  23. // Every Saturday I do a Q/A video, so if you have a question you may ask me at http://nullock.com/askme - Look for the Q/A video on
  24. // my YouTube Channel! (:
  25.  
  26.  
  27. apt-get install pptpd
  28.  
  29. nano /etc/pptpd.conf
  30.  
  31. #localip 192.168.0.234-238,192.168.0.245
  32. #remoteip 192.168.1.234-238,192.168.1.245
  33.  
  34.  
  35. localip 10.0.0.1
  36. remoteip 10.0.0.100-200
  37.  
  38. nano /etc/ppp/chap-secrets
  39. username1 pptpd password123 *
  40. username2 pptpd password123 YOURIPHERE
  41. username3 pptpd password123
  42.  
  43. nano /etc/ppp/pptpd-options
  44. ms-dns 8.8.8.8
  45. ms-dns 8.8.4.4
  46.  
  47. service pptpd restart
  48.  
  49. netstat -alon | grep :1723
  50.  
  51. nano /etc/sysctl.conf
  52. net.ipv4.ip_forward=1
  53.  
  54. iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE && iptables-save
  55. iptables --table nat --append POSTROUTING --out-interface ppp0 -j MASQUERADE
  56. iptables -I INPUT -s 192.0.0.0/8 -i ppp0 -j ACCEPT
  57. iptables --append FORWARD --in-interface eth0 -j ACCEPT
  58.  
  59. iptables-save > firewall
  60. iptables-restore < firewall
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement