Syncthing Relay Server System V init script prerequisites: The provided init script relies on pipexec to keep strelaysrv running. Use apt install pipexec to install it. Apart from that it uses ip (from iproute2), iptables and logger (from bsdutils) which is available on most systems. Logging is pre- configured to work with rsyslogd. installation: - install the Syncthing Relay Server: apt install syncthing-relaysrv - unpack the files from the distribution to the corresponding location on your system - edit /etc/default/syncthing-relaysrv to your needs - control and correct permissions - link the init script: update-rc.d syncthing-relaysrv defaults insserv -v - restart the system's logging daemon: service rsyslogd restart - start the service: service syncthing-relaysrv start log analysis: Start syncthing-relaysrv in debug mode. After collecting some data you may use strelay_ctry-connections [logfile] to summarize the sessions per country (a quick hack). change history: 2021/01/04, 0.0.1: initial commit 2023/04/19, 0.0.2: IPv6 corrections, logging control (c) 2021-2023 by Adrian Zaugg under GPLv2