diff --git a/Cargo.toml b/Cargo.toml index f7673cc..f8ba591 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rns-vpn" -description = "Reticulum VPN" +description = "P2P Reticulum VPN" version = "0.1.0" license = "MIT" edition = "2024" diff --git a/README.md b/README.md new file mode 100644 index 0000000..68587a7 --- /dev/null +++ b/README.md @@ -0,0 +1,42 @@ +# `rns-vpn` + +> P2P VPN over Reticulum mesh network + +Library and application for VPN client over Reticulum mesh network. + +## Building + +Building `Reticulum-rs` requires `protoc` binary for compiling `.proto` files. + +## Client configuration + +`vpn_ip` -- the IP assigned to this client in CIDR format (e.g. `10.0.0.1/24`) + +`peers` -- a map of ` = ` pairs for each peer to communicate with +on the network + +## Client application + +Client application uses a Reticulum UDP interface that is configured with command-line +arguments. + +Private keys can be generated with `openssl` tool using the `genkeys.sh` script. + +Command-line options: + +`-p ` -- required: local UDP port for Reticulum interface + +`-f :` -- required: IP and port for upstream Reticulum node + +`[-i ]` -- optional: use string to generate private ID; overrides +creation of identity with `RNS_VPN_PRIVKEY_PATH`/`RNS_VPN_SIGNKEY_PATH` variables + +Environment variables: + +`RNS_VPN_PRIVKEY_PATH` -- path to X25519 private key in PEM format for Reticulum +identity + +`RNS_VPN_SIGNKEY_PATH` -- path to ed25519 signing key in PEM format for Reticulum +identity + +`RUST_LOG` -- set log level: `trace`, `debug`, `info`, `warn`, `error` diff --git a/gen-keys.sh b/genkeys.sh similarity index 100% rename from gen-keys.sh rename to genkeys.sh