2025-09-27 11:50:29 +01:00
2025-09-19 08:01:21 +02:00
2025-09-17 03:47:45 +02:00
2025-09-18 06:02:14 +02:00
2025-09-17 03:47:45 +02:00
2025-09-18 06:02:14 +02:00
2025-09-27 11:50:29 +01:00
2025-09-19 02:39:01 +02:00
2025-09-17 03:47:45 +02:00
2025-09-17 03:47:45 +02:00

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

Config.toml

vpn_ip -- the IP assigned to this client in CIDR format (e.g. 10.0.0.1/24)

peers -- a map of <ip> = <destination-hash> 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.

Running with log level INFO will log the destination hash generated for the clients configured private keys and should be provided to peers to add to their configurations.

Command-line options:

-p <port> -- required: local UDP port for Reticulum interface

-f <ip>:<port> -- required: IP and port for upstream Reticulum node

[-i <name>] -- 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 -- adjust log level: trace, debug, info (default), warn, error

Usage

While the client application is running and connected, peers can be reached via their configured IP addresses and the traffic will be routed over Reticulum. For example a peer at 10.0.0.1 serving a UDP echo server:

# on 10.0.0.1
$ ncat -u -l 10.0.0.1 12345 --sh-exec 'cat'

can now be reached via other peers:

# on 10.0.0.2
$ ncat -u 10.0.0.1 12345
foo
foo
S
Description
VPN over Reticulum mesh network
Readme MIT
68 KiB
0 Stars 1 Watchers 0 Forks
Languages
Rust 98.1%
Shell 1.4%
Nix 0.5%