Bobcat 300 Reticulum Flasher

Connecting the node to a WireGuard VPN#

The node can connect to a WireGuard VPN every time it boots. You give it the config file your VPN provides (the wg-quick format); the installer checks it, stores it on the node, and starts the tunnel as a normal system service.

It is optional and off by default.

Turning it on#

In the flasher, open Set up the node, then VPN:

  1. Paste the config into the box, or press Load from a file and pick the .conf file.
  2. Optionally change the interface name (default wg0).

The page checks the config as you go and tells you what is wrong. In a settings file the same thing is one or two keys (see the settings reference):

WIREGUARD_CONFIG_B64=<the config, base64 encoded on one line>
WIREGUARD_INTERFACE=wg0

or, when writing an SD card by hand, put the config on the boot partition as bobcat-wireguard.conf (the installer is given it as WIREGUARD_CONFIG_FILE). tools/make-config.py asks for the file, and --wireguard-config FILE does it on the installer's command line.

What the node does#

The tunnel is set up as the last step of the install, so it cannot get in the way of the install itself.

What is accepted#

Only plain WireGuard settings:

Section Settings
[Interface] PrivateKey, Address, ListenPort, DNS, MTU, Table, FwMark
[Peer] PublicKey, PresharedKey, AllowedIPs, Endpoint, PersistentKeepalive

The config needs an [Interface] with a PrivateKey and an Address, and at least one [Peer] with a PublicKey and AllowedIPs. Keys are checked for the right shape, addresses and ports for the right range.

Script hooks are refused. PreUp, PostUp, PreDown, PostDown and SaveConfig make wg-quick run shell commands as root, and a settings file is data: it is never run as code. If your config needs a hook, set the tunnel up by hand on the node instead.

Two things to know:

Your private key#

The config holds your private key (and a preshared key, if you use one).

Managing it on the node#

wg show                                  # peers, last handshake, traffic
systemctl status wg-quick@wg0
journalctl -u wg-quick@wg0 -n 30
systemctl restart wg-quick@wg0

To change the config, edit /etc/wireguard/wg0.conf and restart the service, or run the installer again with new settings.

If it does not connect#