A streamlined management script for deploying and operating an InvestNet dVPN node on Raspberry Pi (ARM64) systems. This script simplifies the installation of dependencies, binary management, and service orchestration.
- Automated Dependency Management: Installs WireGuard packages and required tools.
- Architecture-Aware: Automatically downloads the optimized ARM64 binary for Raspberry Pi.
- Service Orchestration: Integrates with
systemdfor reliable background operation and auto-restart. - Network Optimization: Handles IP forwarding, NAT (iptables/nftables), and dynamic egress interface detection.
- One-Command Management: Simple interface for initialization, starting, stopping, and status monitoring.
- Hardware: Raspberry Pi (ARM64 architecture).
- OS: Linux (Debian/Ubuntu recommended).
- Access: Root or
sudoprivileges are required. - Connectivity: Stable internet connection.
-
Download and Prepare the Script:
chmod +x investnet-node.sh
-
Initialize the Node:
sudo ./investnet-node.sh init
This will install WireGuard, download the binary, and prompt for configuration (moniker, pricing, and keys).
-
Start the Node:
sudo ./investnet-node.sh start
The script follows a simple command structure: sudo ./investnet-node.sh <command>
| Command | Description |
|---|---|
init |
Installs dependencies, downloads binary, and interactive node setup. |
start |
Configures networking and starts the node as a systemd service. |
stop |
Stops the node service and cleans up WireGuard interfaces. |
restart |
Restarts the node service. |
status |
Shows service status, logs, WireGuard peers, and NAT rules. |
uninstall |
Reversible: Stops node, removes service, data, and binary. |
- Binary Port: 18133 (TCP)
- WireGuard Port: 51820 (UDP)
- Data Directory:
${HOME}/.investnet-dvpnx - Systemd Service:
investnet-dvpn-node.service
Important
Backup Your Mnemonic! During the init phase, you will be given a mnemonic. Store this securely; if lost, your node's identity and potential earnings cannot be recovered.
Use the status command to diagnose issues:
sudo ./investnet-node.sh statusThis command provides a comprehensive view of:
- Service health (
systemctl status) - Recent logs (
journalctl) - WireGuard interface state (
wg show) - IP Forwarding status
- NAT/Masquerade rules