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 - copy the files from this distribution to the same locationon your system - edit /etc/default/syncthing-relaysrv to your needs - control and correct permissions (those script should be packaged, so this is only needed when installing manually) - 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 2023/07/25, strelay_ctry-connections: Cache IP lookups, several corrections (c) 2021-2023 by Adrian Zaugg under GPLv2