Skip to content

Commit

Permalink
Ercode Update 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
ErcouldnT committed Jun 20, 2022
1 parent 8a73ba5 commit 6028a10
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 11 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
16 changes: 10 additions & 6 deletions README.md
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.

14 changes: 14 additions & 0 deletions account.sh
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!"

8 changes: 4 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6028a10

Please sign in to comment.