Skip to content
FreeCORE

FreeCORE provides separate WireGuard server and WireGuard Client rows on the Services screen. Use these service screens instead of creating wireguard_enable or wireguard_interfaces tunables and post-init scripts. The services own their interfaces and configuration files. A parallel manual startup configuration can conflict with them.

Go to Services, find WireGuard, and click the Configure icon.

WireGuard server settings
FIG 1 WireGuard Server Settings
  1. Click Generate Keys to create the server identity. Import an existing private key only when retaining an existing WireGuard identity. Replacing the key later invalidates configurations already given to peers.
  2. Enter the server’s tunnel Address with its prefix length, for example 192.168.50.1/24.
  3. Set the UDP Listen Port. The default is 51820. Make this port reachable from each peer.
  4. Set Endpoint to the publicly reachable hostname or address written into downloaded peer configurations. DNS and MTU are optional.
  5. Save the server settings, then click Manage Peers.

For each peer, provide a name, the public key generated on that peer, and the address or networks it may use inside the tunnel. A roaming client normally uses one address such as 192.168.50.2/32. A pre-shared key and persistent keepalive are optional.

After saving a peer, Download Configuration produces a client template. The client private key is deliberately a placeholder. Generate the private key on the client and insert it there. From FreeCORE 15.2 the template routes only the tunnel network (for example 10.100.0.0/24), so the client reaches FreeCORE at its tunnel address and keeps its own route to everything else. FreeCORE does not route or NAT tunnel traffic onward: a value of 0.0.0.0/0, ::/0 would leave the client with nothing but FreeCORE. The 15.0 and 15.1 templates still carry that value; replace it with the tunnel network before use.

The peer list shows Name, Allowed IPs, Enabled, Last Handshake, Status, Current Endpoint, Received and Sent for each peer.

Go to Services and click the WireGuard toggle to start the service. Select Start Automatically if the server should start during boot.

Go to Services, find WireGuard Client, and click the Configure icon.

WireGuard client settings
FIG 2 WireGuard Client Settings
  1. Click Generate Keys, then give the displayed public key to the remote server operator so this FreeCORE system can be added as a peer.
  2. Enter the remote server’s Public Key and reachable Endpoint.
  3. Enter only the remote networks that this system should reach in Allowed IPs.
  4. Enter the tunnel Address assigned to this system, including its prefix length. Add the optional pre-shared key, persistent keepalive, or MTU when required by the remote server.
  5. Save the settings. Go to Services and click the WireGuard Client toggle to start the service. Select Start Automatically if it should start during boot.

Warning

Do not enter 0.0.0.0/0 or ::/0 in Allowed IPs unless the intention is to route every connection from the storage system through the remote server. An incorrect default route can make the web interface unreachable and require local console access to repair.