Run fv on your own machines, no account
fv has two modes. fv run starts a tunnel from a config file with your own peers and no account. fv up is the account client. Which to use, and where to start.
fv is the command-line program in the Linux package forestvpn-quantum. It does two different jobs, with two different commands, and this series is about the first one.
fv run --iface <name> --config <file>is the standalone daemon. You write a WireGuard-format config file with your own keys and your own peers. There is no account, no sign-in and no ForestVPN server in the picture. It connects your machines to each other.fv up --iface <name> --state <dir>is the account client. It registers a device, signs in through ForestVPN's control plane and connects to ForestVPN's servers. It follows your plan. It is a different product from the one in these pages.
Running fv run with no options does not connect to anything: it stops with --iface is required.
The six pages of this series:
- This page, the overview.
- Connect two machines: keys, two config files, a ping both ways.
- Config file reference: every field
fv runreads. - Start a tunnel at boot: the packaged
fv@.serviceunit, and a unit of your own for a tarball install. - Using fv with stock WireGuard: what to switch off when the other end is not fv.
- fv does not connect: what to check:
fv show,fv diagand the usual causes.
Installing, updating and removing the package are on the command-line download page, which is the only page that lists where the files are.
How it works
fv run reads one config file and creates one tunnel interface, for example fvq0. The file has the same two sections as a wg-quick file: [Interface] for this machine and a [Peer] for each machine it talks to. Keys are the same base64 keys as wg genkey and wg pubkey make, and fv genkey and fv pubkey make the same kind.
The handshake is WireGuard's own, unmodified. What ForestVPN adds sits around it: padding and header shaping on the outer packets, a wide range of advertised UDP ports, and an optional post-quantum key exchange. The exchange works between two of your own machines when one has PostQuantum = require and the other PostQuantum = respond. It adds one ML-KEM-1024 key exchange whose secret goes into WireGuard's existing pre-shared-key slot, and the guide to connecting two machines shows the pair.
fv show <iface> prints the interface, each peer, the latest handshake, the transfer counters and, for an ML-KEM-1024 pair, post-quantum: on (resets 0). fv diag <iface> explains a tunnel that is not working.
Who this is for: people who run a few Linux machines and want a small tunnel between them, a home server reachable from a laptop, a site-to-site link, or a test setup. You need root (in a container: root with NET_ADMIN and /dev/net/tun), because fv run opens /dev/net/tun and runs ip.
What it does not do
- It does not sign in. There is no account, plan or device list. Nothing here uses your ForestVPN plan.
- It does not choose servers for you. You give it each peer's key and address.
fv runnever contacts ForestVPN's servers on its own. - It does not start by itself.
fv runstays in the foreground until you stop it. Starting at boot needs a systemd unit. - It does not set up a full tunnel.
fv runinstalls no default route (a/0prefix, IPv4 or IPv6), so it never changes your default route on its own. - There is no ARM build of
forestvpn-quantum. It is x86-64 Linux only. - It does not update itself.
fv --versionprints the version you have, asfvand a number. If it printsunknown command, yourfvis older than these pages: runsudo apt update && sudo apt upgrade(a downloaded.debor the tarball: download the new one from the command-line download page), then restart your tunnel.