https://github.com/alectrocute/heatsink
🔥 Run a disposable VPN service (ubuntu/openVPN/NGINX/PHP/JS)
https://github.com/alectrocute/heatsink
app javascript openvpn php roadwarrior saas service vpn
Last synced: about 2 months ago
JSON representation
🔥 Run a disposable VPN service (ubuntu/openVPN/NGINX/PHP/JS)
- Host: GitHub
- URL: https://github.com/alectrocute/heatsink
- Owner: alectrocute
- License: gpl-3.0
- Created: 2018-08-17T19:26:14.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-17T20:05:42.000Z (almost 7 years ago)
- Last Synced: 2025-04-15T15:58:40.884Z (about 2 months ago)
- Topics: app, javascript, openvpn, php, roadwarrior, saas, service, vpn
- Language: CSS
- Size: 964 KB
- Stars: 2
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# heatsink
🔥 Run a disposable VPN service (ubuntu/openVPN/nginx/PHP/JS)
Scripts & code from Shards, Roadwarrior and Bootstrap included. Big thanks.
heatsink is a service that allows you to run a disposable VPN service. It utilizes two VPSes, one to host the openVPN server (+ nginx to serve cert's and profiles) and another VPS to host the app website. The user goes to your domain, clicks on "generate" and has a disposable VPN account created for a specific amount of time.
The documentation here is flimsy at best and I haven't tested the steps. The code worked when I ran it originally but something may be broken. I highly advise you to know your way around PHP/Linux very well before using this repo. That may be a good thing, since you should probably know programming in order to run a VPN service... ;)
I will update the code & readme soon. I lost the client-side nginx.conf file somewhere, which is kind of important (read below to see why).
## Getting started
- Familiarize yourself with all the files and code, it's quite simple.
### openVPN-side
- ubuntu 14-18.x VPS server
- Upload repo's /server/ files to ~/root/
- Make sure permissions are correct if not using root user.```
sudo apt-get install build-essential
sudo apt-get update
sudo apt-get install php nginx
```
- Configure heatsink's `nginx.conf` to be the default configuration for nginx and restart the service.- Install dnsmasq
```
sudo apt-get -y install dnsmasq
sudo systemctl restart NetworkManager
```
- Replace dnsmasq's config with heatsink's and drop `ads2.dnsmasq` in same directory.- Install openVPN server via Nyr's [Roadwarrior](https://github.com/Nyr/openvpn-install)
```
sudo bash ./openvpn-install.sh
```## Client-side
- ubuntu 14-18.x VPS server
- Upload repo's /client/ files to ~/var/www/html/ (create directory if it doesn't exist yet)
- Make sure permissions are correct if not using root user```
sudo apt-get install build-essential
sudo apt-get update
sudo apt-get install php nginx
```
- Configure nginx to point wildcard subdomain requests to [domain]/?sessionIdentify=[subdomain]- Configure settings in serverconfig.php and home-session.php