services.sslh.settings.protocols

NixOS option

List of protocols sslh will probe for and redirect. Each protocol entry consists of: name: name of the probe. service: libwrap service name (see hosts_access(5)), host, port: where to connect when this probe succeeds, log_level: to log incoming connections, transparent: proxy this protocol transparently, etc. See the documentation for all options, including probe-specific ones.

type: list of attribute set of (libconfig value)
Default
[
  {
    host = "localhost";
    name = "ssh";
    port = "22";
    service = "ssh";
  }
  {
    host = "localhost";
    name = "openvpn";
    port = "1194";
  }
  {
    host = "localhost";
    name = "xmpp";
    port = "5222";
  }
  {
    host = "localhost";
    name = "http";
    port = "80";
  }
  {
    host = "localhost";
    name = "tls";
    port = "443";
  }
  {
    host = "localhost";
    name = "anyprot";
    port = "443";
  }
]
declared in: nixos/modules/services/networking/sslh.nixView source on NixOS/nixpkgs →