Crates.io | obscuravpn-api |
lib.rs | obscuravpn-api |
version | 0.0.0 |
created_at | 2024-11-28 13:17:14.475345+00 |
updated_at | 2024-11-28 13:17:14.475345+00 |
description | API client for Obscura VPN. |
homepage | https://github.com/Sovereign-Engineering/obscuravpn-api |
repository | https://github.com/Sovereign-Engineering/obscuravpn-api |
max_upload_size | |
id | 1464365 |
size | 95,416 |
This crate and the API behind it are unstable in a number of ways:
To enter a setup environment run:
nix develop
To run single commands in the environment run:
nix develop -c just lint
Warning: This is not an officially supported service.
To create a UDP relay tunnel and write the matching WireGuard configuration to wg0.conf
.
cargo run --example api_cli -- --account-no $OBS_ACCOUNT_ID create-static-tunnel --wg-conf > wg0.conf
The resulting configuration file should be compatible with any WireGuard client.
wg-quick up ./wg0.conf
Idle static tunnels are not removed automatically by clients if no tunnel slots are left. You may use this command to delete all tunnels if you run out of tunnel slots:
cargo run --example api_cli -- --account-no $OBS_ACCOUNT_ID delete-all-tunnels
In any case, the solution is almost always:
wg-quick down ./wg0.conf
cargo run --example gen_id
Note that this generates a user id with the checksum (20 characters).