forked from saaiful/PPTP-VPN
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
29 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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!" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters