OpenBSD Handbook

    Theme
    • Part I. Install & Configure
      • Introduction to OpenBSD
      • Installing OpenBSD
      • The X Window System
      • Networking on OpenBSD
      • System Configuration
      • OpenBSD Basics
      • Managing Software: Packages and Ports
    • Part II. Daily Operations
      • OpenBSD Desktop Environments
      • Multimedia
      • Printing
      • Linux Compatibility
      • Windows Compatibility
      • Games
    • Part III. System Administration
      • Virtualization
      • Storage and File Systems
      • Updating and Upgrading
      • Localization
      • The OpenBSD Boot Process
      • Security
    • Part IV. Networking & Daemons
      • Services
        • Database
          • MariaDB
          • PostgreSQL
          • Redis
          • memcached
        • Directory
          • YP (NIS)
          • LDAP
        • File
          • NFS
          • Samba
        • FTP Services
          • ftpd
          • ProFTPD
          • vsftpd
          • Pure-FTPd
          • TFTP
        • Mail
          • OpenSMTPD Mail Server
          • Dovecot IMAP and POP3 Server
          • Postfix
          • Exim
          • Rspamd
        • Name
          • Unbound DNS Resolver
          • NSD Authoritative DNS Server
          • BIND DNS Server
        • Networking
          • OpenBGPD
          • rad
          • DHCP on OpenBSD
          • slaacd
        • Web
          • Apache HTTP Server
          • nginx Web Server
          • OpenBSD httpd Web Server
          • relayd Reverse Proxy
        • Logging
          • syslogd
        • Monitoring
          • SNMP
        • Remote Access
          • Audit OpenSSH
          • OpenSSH Server
        • File Synchronization
          • rsync
        • Messaging
          • RabbitMQ Message Broker
        • Time
          • NTP Time Synchronization
      • PF
        • pfctl cheat sheet
        • PF Anchors
        • PF Filter Rules
        • PF Forwarding
        • PF Lists and Macros
        • PF Load Balancing
        • PF Logging
        • PF NAT
        • PF Options
        • PF Policies
        • PF Shortcuts
        • PF Tables
      • Advanced Networking
        • High Availability and State Replication
        • Multi-WAN and Policy-Based Routing
        • VPN and Cryptographic Tunneling
        • Classic and Lightweight Tunnels
        • IPv6 at Scale
        • QoS and Traffic Shaping
        • MPLS and Label Distribution
        • Network Services at Scale
        • Virtualization and Host Networking
        • Large-Scale L2 and L3 Design
        • Telemetry, Logging, and Flow Export
        • Hardening and Operational Safety
        • Reference Architectures
        • Troubleshooting Playbooks
      • Serial Communication
    • Part V. Miscellaneous
      • Virtualization Cheat Sheet
      • OpenBSD Cheatsheet
      • How-to Guides
        • Complete the First 30 Minutes After Installation
        • Check Hardware Compatibility Before Installing
        • Bootstrap Wi-Fi Firmware Without Ethernet
        • Set Up OpenBSD as a Laptop or Workstation
        • Configure Laptop Power Management
        • Run OpenBSD as a Virtual Machine Guest
        • Install OpenBSD on a VPS or Cloud Server
        • Install OpenBSD with Full-Disk Encryption
        • Troubleshoot Web Browsers on OpenBSD
        • Create an Administrator Account with doas and SSH Keys
        • Establish a Conservative Security Baseline
        • Manage OpenBSD with Ansible
        • Recover Access and Reset the Root Password
        • Collect OpenBSD Diagnostic Evidence
        • Configure Secure Remote Access with OpenSSH
        • Set Up WordPress on OpenBSD
        • Build Third-Party Software from Ports
        • Use FIDO Security Keys with OpenSSH
        • Build OpenBSD from Source
        • Configure Wi-Fi Roaming and Wired Failover
        • Dual-Boot OpenBSD on a UEFI System
        • Troubleshoot PF, NAT, and Routing
        • Automate OpenBSD Installation with Autoinstall and PXE
        • Route Multiple VLANs with PF
        • Configure a Road-Warrior WireGuard VPN
        • Troubleshoot Package Installation and Update Failures
        • Route IPv6 Networks without NAT
        • Schedule Recurring Maintenance
        • Plan a Docker Workload Migration to OpenBSD
        • Build a Mail Server with OpenSMTPD, Dovecot, and Rspamd
        • Build a Simple Router and Firewall
        • Monitor an OpenBSD System
        • Back Up and Restore an OpenBSD System
        • Configure softraid RAID1
        • Recover an OpenBSD System That Does Not Boot
        • Install Z shell (zsh)
      • OpenBSD for Linux Users
      • OpenBSD for FreeBSD Users
      • OpenBSD for macOS Users
    • OpenBSD FAQ
    • OpenBSD Architectures
      • OpenBSD Package Search

        syncthing-2.1.5

        Package search / Categories / Current snapshot
        โ† Back to search
        OpenBSD branch
        OpenBSD 8.0 releaseCurrent snapshot

        Current snapshot ยท amd64

        open decentralized synchronization utility

        Project homepage: https://syncthing.net/

        Description

        Syncthing is an application that lets you synchronize your files across multiple devices. This means the creation, modification or deletion of files on one machine will automatically be replicated to your other devices. We believe your data is your data alone and you deserve to choose where it is stored. Therefore Syncthing does not upload your data to the cloud but exchanges your data across your machines as soon as they are online at the same time.

        Package information

        Ports path
        net/syncthing
        Package architecture
        amd64
        Maintainer
        Edd Barrett <edd@openbsd.org>, Klemens Nanni <kn@openbsd.org>
        Categories
        net, lang/go
        Available flavors
        None listed
        Only for architectures
        aarch64, amd64, arm, i386, riscv64

        Ports list build and test dependencies as well as runtime dependencies. pkg_add selects those needed for installation.

        Direct dependencies

        Build

        • lang/go
        OpenBSD README

        This README contains unresolved ports variables; replace them before using its commands.

        +-----------------------------------------------------------------------
        | Running syncthing on OpenBSD
        +-----------------------------------------------------------------------
        
        Compatibility
        =============
        
        Please note that not all versions of Syncthing are compatible. The
        second number in the release string must match. E.g. 0.12.x is not
        compatible with 0.13.x. If you mismatch the versions, hosts will fail to
        discover each other.
        
        Starting Syncthing
        ==================
        
        There are a couple of different ways to invoke Syncthing. Which is best
        for you will depend upon how many users will run Syncthing concurrently.
        
        Starting via RC script
        ----------------------
        
        Syncthing can be started via the included RC script, thus running
        Syncthing as a system service. This is fine for single user
        configurations. Under this mode of operation, Syncthing runs as the
        _syncthing user, and the default location for folders is
        ${LOCALSTATEDIR}/syncthing.
        
        Starting Manually
        -----------------
        
        The other way is to simply invoke ${TRUEPREFIX}/bin/syncthing manually.
        This is a better choice for situations where several users all want to
        run their own instances of Syncthing. Under this mode, the default
        location for folders is the user's home directory. Users will
        have to configure Syncthing to listen on different TCP ports for this
        method to work.
        
        It might be desirable to have Syncthing executed on system reboot for
        each user individually. To achieve this a crontab entry can be created
        on per-user basis:
        
        @reboot tmux new-session -d '${TRUEPREFIX}/bin/syncthing'
        
        This will result in a new tmux(1) session being spawned each system
        boot. The user can later use `tmux attach` to view and control their
        Syncthing process.
        
        File Descriptor Limits
        ======================
        
        Syncthing is fairly hungry for file descriptors and the default limits may be
        insufficient. On OpenBSD, Syncthing uses kqueue(2) to "watch" files, and since
        kqueue(2) doesn't support recursive watching, each file has be watched
        individually. The upshot of this is that each file in a watched folder will use
        one file descriptor.
        
        If you run Syncthing via the rc.d(8) script, then you can give
        Syncthing more file descriptors by adding the following to login.conf(5):
        
               syncthing:\
                        :openfiles-cur=4096:\
                        :openfiles-max=4096:\
                        :tc=daemon:
        
        If you run Syncthing manually, you can add the following to the appropriate
        login class. If you're in the staff login class, you can add the following
        lines under the staff section:
        
               staff:\
                        [...]
                        :openfiles-cur=4096:\
                        :openfiles-max=4096:\
                        [...]
        
        Don't forget to rebuild the login.conf.db file (if necessary):
        
               # [ -f /etc/login.conf.db ] && cap_mkdb /etc/login.conf
        
        Note that in addition to ulimits, there is a kernel-level file descriptor limit
        which may also need to be adjusted. This limit is managed through the
        kern.maxfiles sysctl(8):
        
               # sysctl kern.maxfiles=4096
               # echo "kern.maxfiles=4096" >> /etc/sysctl.conf
        
        Another option is to turn off the file watcher and use only periodic scans.
        This will result in much reduced file descriptor usage at the cost of a
        (configurable) latency. See "watch for changes" and "full rescan interval" in
        the "advanced" tab in a folder's settings (on the web UI).
        

        Package guides

        • Installing and updating packages

        Package details as JSON

        Report a bug