Syncthing

Access GUI on vm-syncthing-lin

Location: Terminal

ssh -l root vm-syncthing-lin -X firefox http://localhost:8384/#

Location: Firefox

https://localhost:8384/#

Access GUI on MacOS Clients

Location: Terminal

# tunnel port 8384 via ssh
ssh -N -L 8384:127.0.0.1:8384 root@${_CLIENT_FQDN}

Location: Local browser

# access gui in local browser
https://localhost:8384/#

GUI Configuration

Location: Syncthing WebInterface

Actions | Advanced | Options |
Always Local Nets: 10.0.0.0/8
Global Announce Enabled: [+]
Global Announce Servers: https://vm-syncthing-lin.physik.privat:8443/?id=CGEGPGG-CDYSKXM-2GJ66WV-TWI5QIB-Y556QOB-KLBD4YR-ZRQC4TT-WF2TDA2
Listen Addresses: tcp4://:22000

Server (vm-syncthing-lin)

Folders | syncthing-osx | Edit |
General
Folder ID: synchting-osx
Folder Path: /home/syncthing/syncthing-osx
GUI
[+] Use HTTPS for GUI
Advanced
Full Rescan Interval (s): 20
Folder Type: Recieve Only

Clients (MacOS)

Folders | syncthing-osx | Edit |
General
Folder ID: synchting-osx
Folder Path: /var/root/syncthing-osx
GUI
[+] Use HTTPS for GUI
Advanced
Full Rescan Interval (s): 2600
Folder Type: Send Only

Macos

cp /var/root/Scripts/Syncthing/syncthing /usr/local/bin
cp /var/root/Scripts/Syncthing/syncthing.plist /Library/LaunchAgents
launchctl load /var/root/Library/LaunchAgents/syncthing.plist
launchctl unload /var/root/Library/LaunchAgents/syncthing.plist

__Location: WebInterface on Syncthing client__

Always Local nets: 10.0.0.0/8
Global Announce Enabled: +
GlobalAnnounce Servers: https://vm-syncthing:8443/?id=FJHL5W6-BX2SXUB-JPV5FRY-SBZ2MFZ-QIGC6KJ-TIIDP56-K7FCAXC-BA5OVAH
Listen Addresses: tcp4://:22000

Path

launchctl unload /Library/LaunchDaemons/syncthing.plist
rm /var/root/bin/syncthing
rm -r /var/root/Library/Application\ Support/Syncthing/
rm /Library/LaunchDaemons/syncthing.plist
rm -r /var/root/syncthing-osx

CheckMK

mkdir -p /usr/local/bin
cd /usr/local/bin
ln -s /var/root/syncthing-osx/usr/local/bin/check_mk_agent
cd /etc
ln -s /var/root/syncthing-osx/etc/mrpe.cfg mrpe.cfg
ln -s /var/root/syncthing-osx/etc/check_mk check_mk

Docs

Global Discovery: https://docs.syncthing.net/users/security.html