Syncthing jail

Setup for Syncthing service jail with iocage.

On FreeNAS

Create jail:

Create user Syncthing on FreeNAS with ID 983, nologin to match the user in the jail.

On Freenas create datasets:

  • Datasets

    • Syncthing Data

      • tank/data/syncthing

Nullfs mount datasets in jail:

Syncthing data:

Start jail and enter.

Jail

In the jail, update all packages and install syncthing.

Enable the service on boot.

Start the syncthing service.

Configure

Start syncthing as an initial test:

Edit /var/db/syncthing/config.xml and change the IP address which the GUI will be accessible from. This will enable accessing the GUI from a remote computer:

Before:

After:

Restart the service for changes to apply:

Finally, access the GUI by pointing a browser to the server's address and port, ie http://SERVER_URL:8384.

Last updated