Skip to content

v2.4.2

Latest

Choose a tag to compare

@mosajjal mosajjal released this 03 Oct 23:09
· 8 commits to master since this release
1429d6d

Bug-fix release. No config changes are required to upgrade.

Fragmented ClientHellos are now proxied (#210, #211)

sniproxy read the TLS ClientHello with a single socket read. If the ClientHello arrived in more than one TCP segment, the SNI parser saw a partial record and dropped the connection, logging extension looks bonkers or not enough bytes for the cipher list.

This used to be rare. Current browsers and OpenSSL 3.5+ send a post-quantum key share (X25519MLKEM768), which pushes the ClientHello to about 1.7-1.9 KB, past one segment. Busy instances saw hundreds of these failures per minute, and each one was a client that could not connect.

sniproxy now reads the record header and then the whole record before parsing. The 10 s read deadline still bounds slow clients. One case is still not handled: a ClientHello split across several TLS records.

Thanks to @hamedafra for the report and reproduction script, and to @alz, who proposed the same fix in #181.

Fresh installs start without manual fixes (#189, #212)

  • IPv4-only hosts. A failed public IPv6 lookup was fatal unless preferred_version was ipv4only, so the default config crashed on hosts without IPv6. sniproxy now logs a warning and runs IPv4 only. Startup still fails if neither address family has an address.
  • DoT and DoQ without a certificate. Leaving tls_cert and tls_key empty is supposed to generate a self-signed pair, but config validation rejected DoT/DoQ before that step ran. It now starts. Setting only one of the two is still an error.

Additional listener ports (#209, #212)

bind_http_additional and bind_https_additional only worked as a YAML list. The comma-separated form shown in the default config, a single bare port, and the SNIPROXY_GENERAL__BIND_HTTPS_ADDITIONAL environment variable were all silently ignored. All of these work now:

bind_https_additional: "8443,8444-8446"
bind_https_additional: [8443, "8444-8446"]
bind_https_additional: 8443

Installer (#191, #213)

The install script is fetched from master, so these fixes are already live:

  • The latest release is found through the github.com release redirect instead of the GitHub API, whose 60-requests-per-hour limit shared VPS addresses often exhausted.
  • Custom TLS certificate paths are written correctly; they were saved as the literal text $certPath.
  • Entering a domain list URL no longer breaks the config step.
  • arm64 hosts get the arm64 build of yq.

Full changelog: v2.4.1...v2.4.2