An open API service indexing awesome lists of open source software.

https://github.com/theraphael0000/vultr_vpn_script

Simple script to automate a Vultr Wireguard VPN server creation
https://github.com/theraphael0000/vultr_vpn_script

python vultr vultr-cli wireguard wireguard-vpn wireguard-vpn-setup

Last synced: 6 months ago
JSON representation

Simple script to automate a Vultr Wireguard VPN server creation

Awesome Lists containing this project

README

          

# vultr_vpn_script

the goal of these script are to quickly create a vps with Wireguard on Vultr and download the tunnel file.

requirements (accessible in the PATH):
- vultr-cli: https://github.com/vultr/vultr-cli
- scp

## Config

```bash
cp .env_sample .env
vim .env
```

- `VULTR_API_KEY=` Generate an API key on, add access control if you want: https://my.vultr.com/settings/#settingsapi
- `SSH_KEY_ID=` Add you public ssh key to: https://my.vultr.com/settings/#settingssshkeys, click on it, you'll see the key id in the url
- `INSTANCE_NAME=` Any name that you don't use yet on Vultr, for example `vpn`

## Install

```
pip install -r requirements.txt
```

## Usage

```bash
python create_server.py # will create the server on Vultr and get the tunnel key from it
python remove_server.py # will remove it
```