Command line

Using fv with a stock WireGuard peer

What stays compatible when one end of a tunnel is fv and the other is plain WireGuard, and which fv fields to switch off or never use.

Updated December 5, 2026

A stock WireGuard peer is any other WireGuard implementation: wg-quick, the kernel module, or one of the WireGuard apps. fv run can talk to one, with a few fields switched off.

How it works

The handshake is WireGuard's own Noise handshake, unmodified, so keys and pre-shared keys are interchangeable: a key from wg genkey works in an fv config file, and the other way round. Everything ForestVPN adds is wrapped around the handshake: padding, outer header shaping, advertised ports, and an optional post-quantum ML-KEM-1024 exchange. A stock peer understands none of them.

On the fv side, switch off:

  • Obfuscation = off, and for clarity Padding = off and AdvertisedPorts = off. With them off, fv sends canonical WireGuard packets with no trailer and no padding.
  • Leave PortRotationInterval out.

Never use, with a stock peer:

  • PostQuantum = require. It forces the shaped packet style on that tunnel, so a stock peer can never complete the handshake. The post-quantum exchange, one ML-KEM-1024 key exchange in WireGuard's pre-shared-key slot, needs fv at both ends.
  • HeaderMask = on. A stock WireGuard peer cannot read a masked header.

PostQuantum = respond still accepts a classic peer: it answers with the base key when the other end does not ask for the exchange. We have read this in the code and have not run it against a stock peer.

An fv config for a stock peer

[Interface]
PrivateKey = <fv private key>
Address = 10.77.0.2/24
MTU = 1416
Obfuscation = off
Padding = off
AdvertisedPorts = off
 
[Peer]
PublicKey = <stock peer public key>
Endpoint = 198.51.100.7:51820
AllowedIPs = 10.77.0.1/32
PersistentKeepalive = 25

The stock peer needs no change: its config lists fv's public key and the tunnel address, as it would for any WireGuard peer.

If you leave the defaults on. With the launch defaults (Obfuscation = auto) an fv machine that starts the connection sends a first message in the shaped style, which a stock peer drops. By our reading of the code, fv resends it after 5 seconds in plain WireGuard style and remembers that choice, so the tunnel comes up about 5 seconds late. We have not timed this. Switching Obfuscation off avoids the wait. An fv machine that answers replies in the style it received.

Reading the tunnel. wg show does not list fv interfaces, because fv keeps its control socket in /var/run/forestvpn and not where wg looks. Use fv show.

What it does not do

  • It does not make a stock peer do the post-quantum ML-KEM-1024 exchange. The exchange needs fv at both ends.
  • It does not change the handshake. If you need the plain protocol on both ends, use plain WireGuard.
  • It does not read wg-quick files whole. fv refuses DNS, Table and SaveConfig, runs PreUp after the device exists, and removes other global addresses from the interface. The config reference lists every difference.
  • It does not set a full tunnel for you. fv run adds no default route (a /0 prefix, IPv4 or IPv6).

Back to Help

Back to top

Ask us anything