From 6028a10e599fe56b085aaa1a19709a14c0989ec1 Mon Sep 17 00:00:00 2001 From: Ercode Techoglu Date: Mon, 20 Jun 2022 16:42:15 +0300 Subject: [PATCH] Ercode Update :tada: --- LICENSE | 2 +- README.md | 16 ++++++++++------ account.sh | 14 ++++++++++++++ install.sh | 8 ++++---- 4 files changed, 29 insertions(+), 11 deletions(-) create mode 100644 account.sh diff --git a/LICENSE b/LICENSE index e10154d..8a97c64 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2017 Saiful Islam +Copyright (c) 2022 Ercode Tech Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index a09a690..5be7474 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,18 @@ # PPTP-VPN PPTP VPN Installer Script - A Point-To-Point Tunneling Protocol (PPTP) allows you to implement your own VPN very quickly, and is compatible with most mobile devices. Even though PPTP is less secure than OpenVPN, it is also faster and uses less CPU resources. -Tested on Ubuntu 17.04 (VPS) - +Tested on Ubuntu 22.04 LTS (AWS EC2) ## Install -1. Copy script by using `wget https://raw.githubusercontent.com/saaiful/PPTP-VPN/master/install.sh` +1. Copy script by using `wget https://raw.githubusercontent.com/ErcouldnT/PPTP-VPN/master/install.sh` 2. Run using `sudo bash install.sh` -3. Script will ask for username and password for VPN, set them correctly -4. Connect the VPN and Enjoy :) +3. Script will ask you username and password for VPN, set them correctly. +4. (optional) If you'd like to create more accounts use `wget https://raw.githubusercontent.com/ErcouldnT/PPTP-VPN/master/account.sh` +5. Connect the VPN and enjoy :) + +## AWS EC2 +1. Set up a 12-months free tier EC2 instance. +2. Open inbound TCP:1723 port from Network Security section. + diff --git a/account.sh b/account.sh new file mode 100644 index 0000000..4b32b2f --- /dev/null +++ b/account.sh @@ -0,0 +1,14 @@ +clear + +# Adding VPN Users +echo "Set username:" +read username +echo "Set Password:" +read password +sudo echo "$username * $password *" >> /etc/ppp/chap-secrets + +# Restarting Service +sudo service pptpd restart + +echo "All done!" + diff --git a/install.sh b/install.sh index 5555838..59ef98b 100644 --- a/install.sh +++ b/install.sh @@ -6,12 +6,12 @@ ip=$(dig +short myip.opendns.com @resolver1.opendns.com) # Installing pptpd echo "Installing PPTPD" -sudo apt-get install pptpd -y +sudo apt install pptpd -y # edit DNS -echo "Setting Google DNS" -sudo echo "ms-dns 8.8.8.8" >> /etc/ppp/pptpd-options -sudo echo "ms-dns 8.8.4.4" >> /etc/ppp/pptpd-options +echo "Setting Cloudflare DNS" +sudo echo "ms-dns 1.1.1.1" >> /etc/ppp/pptpd-options +sudo echo "ms-dns 1.0.0.1" >> /etc/ppp/pptpd-options # Edit PPTP Configuration echo "Editing PPTP Configuration"