alectrocute / heatsink

🔥 Run a disposable VPN service (ubuntu/openVPN/NGINX/PHP/JS)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

heatsink

🔥 Run a disposable VPN service (ubuntu/openVPN/nginx/PHP/JS)

logo

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

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

About

🔥 Run a disposable VPN service (ubuntu/openVPN/NGINX/PHP/JS)

License:GNU General Public License v3.0


Languages

Language:CSS 45.3%Language:JavaScript 43.1%Language:CoffeeScript 5.2%Language:Shell 2.5%Language:PHP 2.1%Language:Hack 1.8%