Awesome
<b>This repository is no longer maintained.</b>
<h1 align="center">dosxvpn</h1> <h4 align="center">Easily deploy your own personal VPN server with DNS adblocking running on <a href="https://digitalocean.com" target="_blank">DigitalOcean</a>.</h4>Key Features
- Personal IPsec-based VPN (strongSwan).
- Ad blocking DNS setup by default (Pi-hole).
- Generates profiles for sharing VPN with OSX/iPhone and Android.
- No additional software required for OSX/iPhone - uses native VPN client.
- Simple Web or CLI installation methods.
- Automated OS and VPN software updates.
- Dual stack IPv4/IPv6 enabled.
Web Installer (OSX)
- Download the latest pre-built app from the GitHub Releases page. <b>Note: only OSX 10.12+ is supported.</b>
- Open the app and run through the web based installation wizard to setup a new VPN.
CLI Usage (OSX)
- Download the latest pre-built cli from the GitHub Releases page. <b>Note: only OSX 10.12+ is supported.</b>
- Make the binary executable
chmod +x dosxvpn
- Create an API token (https://cloud.digitalocean.com/settings/api/tokens) and export it
export DIGITALOCEAN_ACCESS_TOKEN=<token>
- See help for all options
./dosxvpn -h
CLI Examples
- Deploy a new VPN droplet and configure OSX VPN
./dosxvpn deploy --region sfo2 --auto-configure
- List dosxvpn VPN droplets
./dosxvpn ls
- Remove dosxvpn VPN droplet and OSX VPN profile
./dosxvpn rm --name <name> --remove-profile
FAQ
- <b>Should I use dosxvpn?</b> That's up to you. Use at your own risk.
- <b>Why is this better than using public VPN provider XYZ?</b> While most VPN providers will provide a secure connection to their endpoints, you may not be interested in putting blind faith in their claims that they will not log or track your activity online.
- <b>How is this different than algo?</b>
- Installation - is simple and has no additional system dependencies.
- Updates: dosxvpn handles updates of both the OS and VPN. This means any critical security updates or bug fixes will automatically be applied for you.
- <b>How much does this cost?</b> This launches a 512MB DigitalOcean droplet that costs $5/month currently.
- <b>What is the bandwidth limit?</b> The 512MB DigitalOcean droplet has a 1TB bandwidth limit. This does not appear to be strictly enforced.
- <b>Where does dosxvpn store VPN configuration files?</b> You can find all deployed VPN configuration files in your ~/.dosxvpn directory.
- <b>How do I SSH into the deployed droplet?</b> Assuming you had public SSH keys uploaded to your DigitalOcean account when the VPN was deployed, all of those keys should be authorized for access. You can SSH using any of those keys:
ssh -i <ssh-private-key> core@<vpn-ip>
. If you had no SSH keys uploaded to your DigitalOcean account, then a temporary key was autogenerated for you and you will need to redeploy if you want SSH access. - <b>What is the password to login to Pi-hole?</b> The password is
dosxvpn
. - <b>Are you going to support other VPS providers?</b> Not right now.
- <b>Will this make me completely anonymous?</b> No, absolutely not. All of your traffic is going through a VPS which could be traced back to your account. You can also be tracked still with browser fingerprinting, etc. Your IP address may still leak due to WebRTC, Flash, etc.
- <b>How do I uninstall this thing on OSX?</b> You can uninstall through the Web interface, which will also remove the running droplet in your DigitalOcean account. Alternatively go to System Preferences->Network, click on dosxvpn-* and click the '-' button in the bottom left to delete the VPN. Don't forget to also remove the droplet that is deployed in your DigitalOcean account.
Powered By
- strongSwan - IPsec-based VPN software
- CoreOS - used for running containers and automatic OS updates capabilities
- Pi-hole - used for DNS adblocking
- Platypus - used to build the native OSX app
- godo - DigitalOcean Go API client
Acknowledgements
- trailofbits/algo - strongSwan configuration is borrowed from this project
- jbowens/dochaincore - web deployment code is borrowed from this project
- vimagick/strongswan - using a forked version of this docker image for VPN server
Building Source
- Install dependency platypus cli
brew install platypus
- Fetch the project with
go get
:
go get github.com/dan-v/dosxvpn
cd $GOPATH/src/github.com/dan-v/dosxvpn
- Run make to build
make