Setting Up Syncthing

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


Install and configure Syncthing to run at boot.

# pkg install syncthing
# sysrc syncthing_enable=YES

Create Syncthing Shares

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

Create configuration backup

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

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

Update the config file and make the following changes:

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

Add firewall rules

Allow incoming traffic on these ports (and then restart your firewall after to load the new rules):

Admin GUI with Nginx

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 and Test

# service syncthing start

Browse to the Syncthing control panel to start using the tool



syncthing (last edited 2022-05-13T05:01:12+0000 by KubilayKocak)