https://github.com/bluecap-se/deploy-vpn
Easy way to quickly deploy a VPN service
https://github.com/bluecap-se/deploy-vpn
ansible digitalocean vpn
Last synced: about 2 months ago
JSON representation
Easy way to quickly deploy a VPN service
- Host: GitHub
- URL: https://github.com/bluecap-se/deploy-vpn
- Owner: bluecap-se
- License: mit
- Created: 2020-04-22T08:15:24.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-08T04:18:20.000Z (over 3 years ago)
- Last Synced: 2025-02-26T17:14:57.576Z (over 1 year ago)
- Topics: ansible, digitalocean, vpn
- Language: Shell
- Homepage:
- Size: 43 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Deploy VPN




Deploys a VPN server on DigitalOcean in less than 2 minutes.
## Usage
### First time
1. Install dependencies with:
```
$ pipenv install && pipenv shell
```
2. Generate a new API Token in [DigitalOcean](https://www.digitalocean.com/) and add it to the [vault](https://github.com/bluecap-se/deploy-vpn/blob/master/inventory/production/group_vars/all/secret/do.yml) as seen below and encrypt the vault.
```
---
do_secret_token: XXX
```
```
$ ansible-vault encrypt inventory/production/group_vars/secret/do.yml
```
### Launch
Create the service with:
```
$ ./up.sh
```
Now there should be a file named client.ovpn in the same folder. Add this to your VPN client.
### Remove
Remove the service with:
```
$ ./down.sh
```
## License
Published under [MIT License](https://github.com/bluecap-se/deploy-vpn/blob/master/LICENSE).