Syncthing is an open-source file synchronization client and server.


Install the packages and configure Syncthing to run at boot.

sudo pkg install syncthing
sudo sysrc syncthing_enable=YES

Create the directory where Syncthing's shares will be kept:

sudo mkdir /var/syncthing/
sudo chown -R syncthing:syncthing /var/syncthing/
sudo chmod -R 750 /var/syncthing/

Create a backup copy of the config file:

If this file doesn't already exist, start the syncthing service to generate it. Stop the service again after a few seconds.

sudo cp /usr/local/etc/syncthing/config.xml{,.orig}

Update the config file and make the following changes:

sudo vim /usr/local/etc/syncthing/config.xml

Add a firewall rule to allow incoming traffic on these ports (and then restart your firewall after to load the new rules):

Nginx: Create a server block to serve the admin GUI

server {

  listen 80;


  root /usr/share/nginx/syncthing;
  access_log /var/log/nginx/syncthing.log;
  error_log /var/log/nginx/syncthing.err;

  location / {


Start Syncthing

sudo service syncthing start

Browse to the Syncthing control panel to start using the tool


CategoryHowTo CategoryHowTo

syncthing (last edited 2021-06-07T18:35:44+0000 by GaelanLloyd)