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
- Host: GitHub
- URL: https://github.com/theraphael0000/vultr_vpn_script
- Owner: TheRaphael0000
- Created: 2025-02-12T16:54:42.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-02-12T19:11:23.000Z (8 months ago)
- Last Synced: 2025-04-08T23:44:48.864Z (6 months ago)
- Topics: python, vultr, vultr-cli, wireguard, wireguard-vpn, wireguard-vpn-setup
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```