Skip to content

Plugover 0.6.0

Choose a tag to compare

@wiktorekdev wiktorekdev released this 05 Nov 16:53
· 23 commits to main since this release

Everything between the relay and the host is now encrypted, releases are signed, and Plugover recovers from a dropped link in about a second.

Install

Linux:

curl -fsSL https://github.com/wiktorekdev/plugover/releases/latest/download/installer.sh | sh

Windows, in PowerShell:

irm https://github.com/wiktorekdev/plugover/releases/latest/download/installer.ps1 | iex

Or download the binary for your system below and run plugover setup (double-click the .exe on Windows). The .deb packages install only the plugover command; run plugover setup afterwards.

Upgrading from 0.5

  • Update the relay and the host together, with plugover update on each. Pairings and settings are kept.
  • A 0.6 host connects a relay's devices only encrypted. A relay still on 0.5 shows "cannot encrypt" in the console, and its devices stay off until you update it, or allow it with Connect without encryption (plugover unencrypted <relay> on).
  • A 0.5 host keeps working with a 0.6 relay, unencrypted, until you update it.
  • On Linux the update also has the kernel's tls module load at every boot, so the kernel does the encrypting.

Changelog

Added

  • Encryption of the device list and all USB traffic: AES-128-GCM in TLS 1.3 records, with keys of their own for every connection, derived from the pairing key. On Linux the kernel encrypts USB traffic when it has the tls module, which setup now loads; otherwise, and on Windows, Plugover does it. A changed record ends the connection. A relay that encrypted once is never accepted unencrypted again.
  • Signed releases. plugover update installs only a release whose SHA256SUMS is signed with the key in packaging/release-key.pem (see SHA256SUMS.sig).
  • Devices that come back with another product id on the same port, such as a Logitech wheel switching modes, are connected again.
  • Device history: how often a device dropped out and its last error, in the console's device details, plugover status and plugover doctor.
  • The link latency to each relay in the console and plugover status, with a warning when it is slow or uneven.
  • Why a device could not connect, on its row in the console and in plugover status and plugover doctor.
  • plugover setup --uninstall --relay and --uninstall --host remove only one role.
  • --lan takes several networks, separated by commas; on Windows it narrows the firewall rule too.
  • 32 more devices in the catalog: older Logitech wheels and the G29 in PlayStation 4 mode, HOTAS Warthog, TWCS, rudder pedals, the X-55, Logitech gamepads, Xbox Elite controllers and more.

Changed

  • A dead link is noticed within about 5 seconds, also while data is in flight, and the host reconnects to a restarted relay in under a second; a dropped device is plugged in again within half a second.
  • USB packets are marked for low latency (DSCP EF), which Wi-Fi access points with WMM honour.
  • plugover and plugover help list only the commands for this computer's role.
  • plugover doctor says where USB traffic is encrypted.
  • The README and SECURITY.md are rewritten, and issues use plain Markdown templates.

Fixed

  • A device that fails to unplug stays listed, so it can be unplugged again; forgetting a relay unplugs its devices.
  • plugover status and doctor told you to update the wrong machine when the relay was newer.
  • Removing one role on a computer that is both relay and host no longer drops the other role's kernel module.
  • Setup's firewall rules for nftables go only into the inet filter table, and uninstalling removes them completely.
  • Settings files with keys are private from the moment they are written.
  • Removing the Debian package also removes the relay service it set up.
  • A Windows relay no longer fails on devices without a description, and gives a device back more reliably.
  • The console page no longer piles up requests when the daemon is slow.