Skip to content

Protocols and transports

Every katana node serves one inbound on one port. (A stream node with handoff_dir set also takes handed-over connections on a Unix socket, served the same way.) On UniProxy panels, two things decide what it speaks: node_type in [node.api] picks the protocol family, and the panel’s answer to katana’s node-info request fills in the rest: the port, the transport, whether TLS is on, and the protocol details such as the Shadowsocks cipher. On helium the panel’s node config alone describes the whole inbound, its protocol included, and the node sets no node_type. katana then builds the node from that answer, or refuses it when the answer asks for something it does not implement. A UniProxy answer is first converted into the same node config helium sends, and whatever katana cannot serve is refused there, by name, as katana reads the answer.

Read this page when you set up a node in the panel and want to know which settings katana will honour, or when a node does not start and the log says node requests kernel-unsupported feature. The panel pages (Xboard and V2board, helium) cover the panel API itself.

Node type Protocol Transports TLS UDP relay Multiplexing Panels
V2ray VMess, AEAD only (alterId 0) TCP, WebSocket, gRPC Optional Yes mux.cool and XUDP UniProxy, helium (vmess)
V2ray with enable_vless = true VLESS, with the flow xtls-rprx-vision over REALITY TCP, WebSocket, gRPC; REALITY on TCP Optional, or REALITY Yes mux.cool and XUDP UniProxy, helium (vless)
Trojan Trojan, password = the user’s UUID UniProxy: TCP. helium: TCP, WebSocket, gRPC Always Yes mux.cool and XUDP UniProxy, helium (trojan)
Shadowsocks AEAD (SIP004) or 2022 multi-user (SIP022) TCP, WebSocket, gRPC Optional No No UniProxy, helium (shadowsocks)
AnyTLS AnyTLS, password = the user’s UUID, the panel’s padding scheme TCP Always Yes, as UDP-over-TCP AnyTLS streams UniProxy, helium (anytls)
Socks SOCKS5, account = the user’s UUID as name and password TCP, WebSocket, gRPC Required No No UniProxy, helium (socks)
Http HTTP proxy, account = the user’s UUID as name and password TCP, WebSocket, gRPC Required No No UniProxy, helium (http)
sss sss, ID = the user’s UUID TCP, WebSocket, gRPC Optional Yes No helium (sss) only
Hysteria2 Hysteria 2 QUIC over UDP Always, inside QUIC When [node.hysteria].udp = true; on helium, when the panel sends udp Not applicable UniProxy, or local settings; helium (hysteria2)

The first column is the node_type you write in [node.api] for a UniProxy node. A helium node sets no node_type: the protocol of its node config, shown in brackets in the last column, names the protocol, and the same config describes the rest of the inbound. “UniProxy” means the newV2board API that Xboard and V2board serve (panel_type = "NewV2board", or its alias "V2board"). helium speaks its own node API v2, whose node config is typed per protocol; helium covers the API. katana 6 serves no SSPanel node: panel_type = "SSpanel" is refused (see Upgrading to katana 6). Hysteria 2 has its own page, Hysteria 2 nodes; the rest of this page is about the stream node types, which serve TCP.

katana checks everything that can fail before it binds the port, so a refused node never half-starts:

flowchart TB
  P["Panel node info"] --> N["Read it as a node config"]
  N -->|"a feature katana does not serve, a port outside 1 to 65535, a setting it cannot use, a helium config that does not parse"| E1["node_info failed"]
  N --> T["Build the transport with this host's certificate settings"]
  T -->|"ACME, reject_unknown_sni, missing certificate"| E2["initial start failed"]
  T --> R["Build the protocol"]
  R -->|"an sss chain that does not parse"| E2
  R --> U["Admit the users, skipping any that cannot be admitted"]
  U --> B["Check the whole node, bind the TCP port and serve"]
  B -->|"a padding scheme line the kernel cannot read, port in use"| E2

Most of what the panel describes is checked as katana reads the answer, so a node the panel describes wrongly is usually refused before katana looks at the certificate, which it reads in the transport step. A REALITY node reads no certificate.

On UniProxy panels, node_type is set in katana’s config file, not in the panel. The value is case-insensitive:

You write Node type Notes
V2ray, vmess, vless V2ray Serves VMess, or VLESS when enable_vless = true.
Trojan Trojan
Shadowsocks Shadowsocks UniProxy panels.
AnyTLS AnyTLS UniProxy panels.
Socks, socks5 SOCKS5 UniProxy panels. katana sends socks5 to a UniProxy panel as written, and Xboard does not accept that type, so write Socks there.
Http HTTP proxy UniProxy panels.
sss sss Refused on UniProxy panels: an sss node is served from helium alone. See sss.
Hysteria2, hysteria, hy2 Hysteria 2 See Hysteria 2 nodes. katana sends hy2 to a UniProxy panel as written, and Xboard does not accept that type, so write Hysteria2 there.

On these panels any other value, including an empty one, is refused. katana --test prints:

configuration error: node 1: unknown node_type "Tuic"

At startup katana logs node 1: unknown node_type "Tuic" and skips that node. The other nodes still start.

A hot reload of a file that contains such a node is refused as a whole: katana applies none of the new file and every node keeps running as it was. The log names the node by its panel, host, ID and, on a UniProxy panel, the type it is asked for:

reload: node newv2board@https://panel.example.com#1/tuic: unknown node_type "Tuic"; keeping current config

A VLESS node on a UniProxy panel looks like this:

config.toml
[[node]]
panel_type = "NewV2board"
[node.api]
host = "https://panel.example.com"
node_id = 1
key = "replace-with-the-panel-key"
node_type = "V2ray"
enable_vless = true
[node.controller.cert]
mode = "file"
cert_file = "/etc/katana/fullchain.pem"
key_file = "/etc/katana/privkey.pem"

On a UniProxy panel the node type is also part of every request: katana sends node_type=vless for a V2ray node with enable_vless = true, and the lowercased node_type otherwise. Xboard finds a node by its ID and this type, so the same node_id asked as vless and as v2ray names two different panel nodes. An edit that changes the type katana asks for, such as turning on enable_vless for a V2ray node, therefore restarts the node on a hot reload, with empty traffic counters; see Node identity and reload.

A helium node sets no node_type or enable_vless: its node config names the protocol, and katana serves what it names. A helium node whose [node.api] sets either is refused by --test, at startup and by a reload, with the key named:

configuration error: node 1: [node.api] node_type is set, but a helium node's protocol is described by the panel; remove it (of [node.hysteria], only congestion is this host's to choose)

Xboard’s node config names the node’s protocol in a protocol field. When a UniProxy panel sends the field, katana reads it with the same names as node_type, in any case, and holds it to the configured node type, because serving one protocol where the panel hands its users another would lock every one of them out:

  • A protocol of another family, such as trojan on a node configured as V2ray, or a protocol katana does not serve, refuses the node config, with the panel's node is protocol "trojan", but this node is configured as V2ray or the panel's node is protocol "tuic", which katana does not serve. The node does not come up, or keeps its last settings if it is already up, until the panel or node_type is fixed.

  • Within the V2ray family the tag only warns. enable_vless decides between VMess and VLESS, and katana logs, for example:

    WARN katana::api::newv2board: the panel's node is protocol "vmess", but enable_vless is true; serving VLESS as configured
  • A node config without the field is taken as node_type says.

On helium the protocol is not a tag beside node_type but what types the whole node config, and there is no node_type to hold it to.

On UniProxy panels, the panel’s network value picks the transport. katana lowercases it before matching:

Panel network Transport Behaviour
empty, tcp, raw TCP The protocol runs directly on the TCP connection, or on TLS over it. V2Ray’s TCP header obfuscation is refused; see TCP header obfuscation.
ws, websocket WebSocket Accepts the upgrade only on the configured path. An empty path means /. A path must start with /, and its one query may be ?ed=N, which is stripped because it configures early data, which katana accepts through Sec-WebSocket-Protocol (up to 16 KiB; more is answered with HTTP 413); any other query is refused, since an upgrade never carries one. When the panel gives a host, the request’s Host header must match it (case-insensitive, port ignored), so a host written with a port is refused, and an empty one is no host. A wrong path or host is answered with HTTP 404. Behind a reverse proxy, the node can take each client’s address from a header of the upgrade, with real_ip_header and real_ip_from; see Device limits and IP bans.
grpc, gun gRPC Serves the gun tunnel on /<serviceName>/Tun and the multi-hunk tunnel on /<serviceName>/TunMulti, with the service name used exactly as the panel gives it. An empty service name is refused. A stream on any other path is reset. Each HTTP/2 stream is one proxied connection, so one TCP connection can carry many.
httpupgrade Refused node requests kernel-unsupported feature: httpupgrade transport
splithttp, xhttp Refused node requests kernel-unsupported feature: splithttp transport
anything else Refused node requests kernel-unsupported feature: transport "quic", naming the value

V2ray, Shadowsocks, SOCKS and HTTP nodes read network and its transport settings. A UniProxy Trojan node is always TCP, and an AnyTLS node is always TLS directly over TCP, whatever the panel’s network and tls say.

helium’s node config names the transport in transport, on every protocol but AnyTLS and Hysteria 2, Trojan included: {"type": "tcp"}, {"type": "ws", "path": "/ws"} with an optional "host", or {"type": "grpc", "service_name": "tunnel"}. They behave as the TCP, WebSocket and gRPC rows above. The field is required wherever the protocol has one, so katana never reads a missing transport as plain TCP: a config without it fails with parse helium config response.

Xray can disguise a TCP stream as HTTP with a header of type http in the transport settings. katana does not implement that. On a UniProxy V2ray, Shadowsocks, SOCKS or HTTP node whose transport is TCP, REALITY included, katana reads header from the network settings and accepts only a header that asks for none: no header, null, an object without type or with type set to null, or a type of none in any case. That is bare TCP, as the panels’ subscriptions read it. Every other header refuses the node as katana reads the answer:

Panel header Error
A type other than none, such as http, or an empty one node requests kernel-unsupported feature: tcp header type "http", naming the type
A type that is not a string tcp header type is not a string
A header that is not an object tcp header is not an object

Clients set up for HTTP header obfuscation open their connections with an HTTP request, which a bare TCP node could not authenticate, so katana refuses the node instead of serving it. A WebSocket or gRPC node does not read header, and helium’s transport has no such field.

Whether a node uses TLS depends on its type and, for most types, on the panel:

Node type TLS
V2ray On when the panel says so: UniProxy tls = 1, or helium security of type tls. UniProxy tls = 2 and helium security of type reality are REALITY, for VLESS only; see REALITY and Vision.
Trojan Always, whatever the panel says. helium’s Trojan config has no security.
Shadowsocks, sss On when the panel says tls = 1, or helium’s security is of type tls. UniProxy tls = 2 is refused.
AnyTLS Always, whatever the panel says.
SOCKS, HTTP Required. On UniProxy the panel must say tls = 1, or the node is refused; see SOCKS and HTTP. helium’s SOCKS and HTTP configs have no security: they are always TLS.
Hysteria 2 Always; the TLS handshake is part of QUIC.

On helium, security is required wherever the protocol has one, so katana never reads a missing one as plaintext: a config without it fails with parse helium config response.

The certificate never comes from the panel. katana reads it from [node.controller.cert], and the panel’s certificate settings and server_name are not used. On a REALITY node, the panel’s REALITY settings (UniProxy’s tls_settings, helium’s security) take the certificate’s place, and the node needs no certificate:

KeyTypeRequiredDefaultDescription
modestring (enum)depends"none""none" (no certificate) or "file" (read cert_file and key_file). Case-sensitive. "file" is required for every node that uses TLS; without it a stream node fails with TLS node requires cert.mode = "file" and a Hysteria 2 node with hysteria2 node requires cert.mode = "file". The ACME modes "dns", "http" and "tls" are refused on every stream node, TLS or not: node requests kernel-unsupported feature: ACME cert mode "dns"; on a Hysteria 2 node they fail like any value other than "file". Any other value behaves like "none" on a stream node. A REALITY node reads nothing from this table: it needs no certificate, and none of these checks apply to it.
cert_filepathdepends""PEM certificate chain: the server certificate first, then any intermediates (a fullchain.pem). Required with mode = "file"; if it or key_file is empty, a TLS or Hysteria 2 node fails with TLS node requires cert.cert_file and cert.key_file. katana reads it when the node starts and again at every poll, so a renewed certificate reaches new connections at the next poll.
key_filepathdepends""PEM private key matching cert_file. Required with mode = "file". Read at the same moments as cert_file; a key that does not match the certificate fails the node's build.
reject_unknown_sniboolnofalseNot implemented, so true is refused rather than silently ignored: the node fails with node requests kernel-unsupported feature: cert.reject_unknown_sni. Leave it false.

Details of the TLS server:

  • Versions: TLS 1.2 and 1.3. Older versions are refused.
  • Certificate: the first certificate in cert_file is the server certificate, and the rest are sent as the chain.
  • ALPN: a gRPC node selects h2 and a WebSocket node http/1.1; a node with TLS directly over TCP configures none. A client that offers no protocol the node knows still completes the handshake, without ALPN.
  • SNI: not checked. Any server name gets the one certificate. reject_unknown_sni = true is refused, as the table says.

The fields below shape a stream node’s listener (the Hysteria 2 fields are on the Hysteria 2 nodes page). katana reads Xboard’s tls_settings only on a REALITY node, and does not read multiplex or decryption, so a setting that exists only there has no effect on a katana node.

Field Node types Use
protocol all The node’s protocol, when the panel sends it (Xboard does). See The panel’s protocol tag.
server_port all The port to listen on, 1 to 65535. Any other value, 0 and a missing one included, refuses the node: server_port 0 is not a port (1 to 65535).
network V2ray, Shadowsocks, SOCKS, HTTP The transport, from the table above.
network settings V2ray, Shadowsocks, SOCKS, HTTP path (WebSocket), headers.Host (WebSocket host check), serviceName (gRPC), header (TCP, which must ask for none; see TCP header obfuscation).
tls V2ray, Shadowsocks, SOCKS, HTTP 0 or missing: no TLS. 1: TLS. 2: REALITY, served on a VLESS node and refused on the others.
tls_settings VLESS with tls = 2 The REALITY settings. See REALITY and Vision.
flow V2ray Empty, or xtls-rprx-vision on a VLESS node over REALITY. Any other value is refused.
cipher Shadowsocks The cipher, from the Shadowsocks table below.
server_key Shadowsocks The server PSK of a 2022 cipher, base64.
obfs Shadowsocks Empty, plain or none (exactly, in lowercase). Anything else is refused.
padding_scheme AnyTLS The padding scheme, one line per entry. See AnyTLS.

UniProxy panels describe no sss node: node_type = "sss" is refused before katana asks the panel anything. See sss.

A V2ray node without enable_vless serves VMess, and so does a helium node whose protocol is vmess.

  • AEAD headers only. The legacy MD5 header that goes with alterId greater than 0 is not implemented, so clients must use alterId: 0.
  • Body security: aes-128-gcm or chacha20-poly1305. A client set to auto picks one of these. none and zero are not accepted, and the connection is closed during the handshake.
  • Clock: a VMess header carries a timestamp, and katana accepts it only within 120 seconds of its own clock. Keep the server’s clock synchronised. For clients whose clocks are wrong, [node.controller] disable_vmess_clock_check = true accepts any plausible timestamp; the cost is that a handshake replayed more than 240 seconds after it first arrived is served again. At debug level a refused client shows why: vmess: auth id stamped <N> s behind the server clock (or ahead of), vmess: replayed auth id, or vmess: unknown user or invalid auth id for a UUID no user has.
  • Users: the account ID is the user’s UUID. A user who cannot be admitted is skipped with a warning, and the others are served: skipping user 7: uuid is not a valid UUID, skipping user 7: uuid is empty, skipping user 7: listed twice, or skipping user 8: shares its credential with user 7 for a UUID another user already has. The first two do not arise on helium, whose users answer carries a well-formed UUID for every user.
  • Commands: TCP, UDP, and mux (see Multiplexing).

The Etemenanki page on VMess describes the protocol implementation in more detail.

A V2ray node with enable_vless = true serves VLESS, and so does a helium node whose protocol is vless.

  • Flow: empty, or xtls-rprx-vision (Vision) on a node with REALITY; see REALITY and Vision. The flow comes from the panel’s flow. On a node without a flow, a client that sends one fails its handshake.
  • Encryption: clients must use encryption: "none".
  • Users: the ID is the user’s UUID. Users who cannot be admitted are skipped, as for VMess.
  • Commands: TCP, UDP, and mux.

See VLESS for the protocol implementation.

A VLESS node serves REALITY when a UniProxy panel sets tls = 2, or when helium’s security is of type reality. REALITY answers clients that hold the node’s key with a TLS 1.3 of its own and no certificate, and passes every other connection on to a real site, the cover site, so a probe sees that site. REALITY explains the mechanism. katana takes the settings from the node config’s tls_settings on a UniProxy panel, and from security on helium, under the same four keys:

Key Use
server_name The one server name the node answers as REALITY, which clients send as their SNI, and the host of the cover site. It is a host name or IPv4 address of ASCII letters, digits, -, _ and ., at most 253 bytes, not ending in a dot; a wildcard such as *.example.com is refused.
server_port The cover site’s port. katana dials server_name:server_port for every connection that does not authenticate.
private_key The X25519 private key, as unpadded base64url of 32 bytes, the form Xray writes.
short_id The one shortId clients present, an even number of hex digits, at most 16. Empty admits the empty shortId. A UniProxy panel may leave it out, with the same effect; helium always sends it.

Xboard sends its REALITY settings under the same keys. server_port must be a JSON number: a node config that carries it as a string, such as "443", is refused. katana never writes the key or the shortId to a log line. A helium VLESS node with REALITY and Vision:

{"protocol":"vless","port":443,"transport":{"type":"tcp"},"security":{"type":"reality","server_name":"www.example.com","server_port":443,"private_key":"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","short_id":"0123456789abcdef"},"flow":"xtls-rprx-vision"}
  • VLESS over TCP only. REALITY runs directly on TCP: on a UniProxy panel, with any other network, the node is refused with security reality runs over transport tcp only. On any other protocol it is refused too: see Refused features. helium’s node config has REALITY in VLESS’s security alone, and a VLESS config that pairs it with another transport fails with parse helium config response.
  • No certificate. The node reads nothing from [node.controller.cert].
  • Clients. katana sets no limit on clock skew or client version, and does not require a post-quantum key share, so sing-box and mihomo clients, which send an X25519 key share alone, connect as Xray clients do.
  • Errors. On a UniProxy panel, katana refuses settings it cannot use as it reads the answer, and the node logs node_info failed: parse UniProxy config response: with one of these reasons: a REALITY node (tls = 2) carries no tls_settings; the REALITY tls_settings: … for settings not of REALITY’s shape, such as a missing key or a server_port written as a string; REALITY needs a server_name; REALITY needs the cover site's port; security.server_name must be a host name of ASCII letters, digits, -, _ and ., at most 253 bytes, with no wildcard and not ending in a dot; REALITY private_key: invalid REALITY private key: expected 32 bytes of unpadded base64url; or REALITY short_id: invalid REALITY shortId: expected an even number of hex digits, at most 16. None of them repeats the key or the shortId. On helium, REALITY settings of the wrong form, such as a key that is not 32 bytes, make the whole node config fail with parse helium config response.
  • Changes. A new key, shortId, server name or port drops every connection on the node, since clients that hold the old values can no longer get in.
  • Cover-site connections belong to no user: they are not billed and never count toward an IP ban.

With REALITY, the panel’s flow can be xtls-rprx-vision, and the node then serves XTLS Vision: Vision pads the VLESS body and, when the traffic inside the tunnel is itself TLS, lets both ends switch to the raw socket. The flow is refused everywhere else:

Panel setting Result
xtls-rprx-vision without REALITY flow xtls-rprx-vision needs security reality
Another flow on a VLESS node, such as xtls-rprx-direct node requests kernel-unsupported feature: VLESS flow "xtls-rprx-direct"
Any flow on a node that does not serve VLESS node requests kernel-unsupported feature: an XTLS flow off VLESS

On helium, a VLESS config whose flow is anything but xtls-rprx-vision, or that asks for Vision without REALITY, fails with parse helium config response. A change of flow drops every connection on the node.

  • Password: the user’s UUID from the panel, exactly as the panel lists it. This is the XrayR convention, and it is the password Xboard gives Trojan clients.
  • TLS: always on, so a Trojan node needs [node.controller.cert] with mode = "file".
  • Transports: on helium, TCP, WebSocket or gRPC, as transport says; on a UniProxy panel, TCP.
  • UDP: served through Trojan’s UDP associate command.
  • Mux: a client signals mux.cool by connecting to v1.mux.cool, and katana treats that connection as a mux carrier.

See Trojan for the protocol implementation.

A Shadowsocks node is available on UniProxy panels and helium. It rides the transport the panel names, with network, its transport settings and tls on a UniProxy panel, or with transport and security on helium, as Xray serves it: plain TCP when the panel names none, or TLS, WebSocket or gRPC, with or without TLS. REALITY is refused. Whatever the transport, the node relays TCP only: Shadowsocks UDP never rides a transport, as in Xray, and katana binds no UDP socket for it, so a client’s UDP relay does not work through a katana Shadowsocks node.

On a UniProxy panel, the panel’s cipher decides between the two Shadowsocks generations:

cipher Family User’s key
aes-128-gcm, aes-256-gcm AEAD (SIP004) The user’s UUID, as the password
chacha20-ietf-poly1305 (also chacha20-poly1305) AEAD (SIP004) The user’s UUID, as the password
xchacha20-ietf-poly1305 (also xchacha20-poly1305) AEAD (SIP004) The user’s UUID, as the password
2022-blake3-aes-128-gcm 2022 multi-user (SIP022) The first 16 characters of the UUID
2022-blake3-aes-256-gcm 2022 multi-user (SIP022) The first 32 characters of the UUID
2022-blake3-chacha20-poly1305 Not served Refused with node requests kernel-unsupported feature: shadowsocks cipher "2022-blake3-chacha20-poly1305": the 2022 spec defines multiple users only for the AES ciphers
anything else Refused node requests kernel-unsupported feature: shadowsocks cipher "rc4-md5"

The four AEAD ciphers in the table are the only legacy ciphers a UniProxy node may use; any other, such as aes-192-gcm or a stream cipher like rc4-md5, is refused. The AEAD names are matched case-insensitively, and aead_aes_128_gcm, aead_aes_256_gcm and aead_chacha20_poly1305 are accepted as aliases. The 2022 names must be written exactly as shown, in lowercase.

helium’s cipher is one of the same six, written exactly as 2022-blake3-aes-128-gcm, 2022-blake3-aes-256-gcm, aes-128-gcm, aes-256-gcm, chacha20-ietf-poly1305 or xchacha20-ietf-poly1305, without aliases. A 2022 cipher comes with server_key and an AEAD cipher without one. A config with any other cipher, an AEAD cipher with a server_key or a 2022 cipher without one fails with parse helium config response.

A 2022 node always runs in multi-user mode, with one port for every user. Each client connection carries an identity header that tells katana which user it is. Two keys are involved:

  • The server key is the panel’s server_key, a base64 PSK of 16 bytes for 2022-blake3-aes-128-gcm and 32 bytes for 2022-blake3-aes-256-gcm. On a UniProxy panel, a shorter one is refused with shadowsocks-2022: PSK too short (16 < 32), a missing one with shadowsocks-2022: PSK too short (0 < 32), and one that is not base64 with shadowsocks server_key is not base64, which does not repeat the key. helium writes the key in padded standard base64, such as AAAAAAAAAAAAAAAAAAAAAA== for 16 bytes, and a key whose length does not match the cipher fails with parse helium config response instead.
  • The user key is the first 16 or 32 characters of the user’s UUID string, used as raw bytes. A user whose UUID is shorter than that is skipped: skipping user 7: shadowsocks-2022 key too short (< 32). On helium, katana writes every UUID in its lowercase hyphenated form, so the key is the first 16 or 32 characters of that text, and no user is skipped for it.

This is the same derivation Xboard uses when it builds the client’s password: base64(first N characters of the UUID), joined to the server key with a colon. For the UUID 11111111-2222-3333-4444-555555555555 on a 2022-blake3-aes-128-gcm node:

user key bytes: 11111111-2222-33
client password: <server_key>:MTExMTExMTEtMjIyMi0zMw==

You do not configure any of this in katana. It only has to agree with the panel, and with Xboard it does.

On a UniProxy panel, katana accepts obfs values of empty, plain and none. Any other value refuses the node config when katana reads the node info, before anything is built, with newV2board: shadowsocks obfs "http" is not supported, naming the value, and the node keeps retrying as described in When a node is refused. helium’s Shadowsocks config has no obfs.

See Shadowsocks for the protocol implementation.

An AnyTLS node is available on UniProxy panels, with node_type = "AnyTLS", and on helium, whose node config says anytls.

  • TLS: always, directly over TCP, with the certificate in [node.controller.cert], which needs mode = "file". The panel’s network, tls and server_name change nothing.
  • Password: the user’s UUID, exactly as the panel lists it, as for Trojan.
  • Padding scheme: the panel’s padding_scheme, a list with one line of the scheme per entry, such as ["stop=2", "0=30-30", "1=100-400"]. From a UniProxy panel, a missing, null or empty list means the default scheme; a helium config that leaves the field out means it too. From a UniProxy panel, a list with an empty line, a line with a line break in it, or more than 2048 bytes once its lines are joined is refused as katana reads it, for example with padding_scheme[1] is empty. A line the kernel cannot read stops the node with initial start failed: inbound <tag>: padding scheme line <n> …, such as padding scheme line 2 is not key=value. A new scheme reaches the connections that start after it, and open connections keep theirs without being dropped.
  • Streams: one TLS connection is one AnyTLS session, which carries up to 256 streams at once.
  • UDP: carried inside a stream, as sing-box’s UDP-over-TCP.

See AnyTLS for the protocol implementation.

SOCKS and HTTP nodes are available on UniProxy panels and helium. Each serves a proxy whose account is the user’s UUID, used both as the name and as the password: SOCKS5 username and password authentication, or an HTTP Proxy-Authorization: Basic header.

  • TLS only. A UniProxy panel must set tls = 1, over TCP, WebSocket or gRPC. katana refuses a plain one with node requests kernel-unsupported feature: socks without TLS (or http without TLS): in the clear, the account and everything the node relays would cross the network readable, and a plain proxy on a public port is the first step to an open proxy. helium’s SOCKS and HTTP configs have a transport and no security: they are always TLS.
  • SOCKS relays TCP only. Its UDP would leave the transport for a socket of its own, in the clear, so katana answers UDP ASSOCIATE with “command not supported”.
  • REALITY is refused on both: node requests kernel-unsupported feature: socks over REALITY (or http over REALITY).

See SOCKS and HTTP for the protocol implementations.

Since katana 5.0.0, sss nodes are served from helium alone, whose node config says sss. The node rides the panel’s transport, with security none or tls; REALITY cannot be written there. Users are admitted by their UUID. helium describes sss’s transform chains and datagram limit beside the transport; the flush delay, header time and reject keep their defaults. sss: katana nodes lists them. A change to any of them drops every connection on the node.

UniProxy panels describe no sss node. A newV2board node with node_type = "sss" is refused by --test, at startup and by a reload:

configuration error: node 1: newV2board: no UniProxy panel describes an sss node; sss is Helium's own protocol, served with panel_type = "Helium"

VMess, VLESS and Trojan nodes accept mux.cool connections from Xray-compatible clients. There is no setting to turn this on: katana recognises the mux command (VMess and VLESS) or the v1.mux.cool destination (Trojan) on every connection.

  • Each sub-connection inside a mux carrier is its own flow: it is routed, audited and rate-limited like a separate connection, and its traffic counts toward the authenticated user.
  • UDP sub-connections are supported, including XUDP, where each packet carries its own address.
  • A carrier holds up to 256 sub-connections at once. A client that opens another is refused that one sub-connection; the carrier and its other sub-connections continue.
  • Only mux.cool is implemented. sing-box multiplexing (Xboard’s multiplex setting) is neither read nor supported.

katana fails closed: when a panel asks for something it cannot deliver, the node does not start, rather than starting without the feature the clients expect. This table lists every refusal and the message katana logs. A refusal of what a UniProxy panel describes is logged after node_info failed: parse UniProxy config response: ; one of the host’s own settings, such as the certificate, after initial start failed: . When a node is refused shows both.

The PROXY protocol is not among them: every TCP node reads a PROXY protocol v2 header when a connection starts with one, with no setting. Device limits and IP bans describes it.

Feature Where it comes from Error
Another protocol A UniProxy panel’s protocol names another family than node_type, or a protocol katana does not serve the panel's node is protocol "trojan", but this node is configured as V2ray, or the panel's node is protocol "tuic", which katana does not serve
A port outside 1 to 65535 A UniProxy server_port of 0, missing, negative or above 65535 server_port 0 is not a port (1 to 65535), naming the value
SSPanel panel_type = "SSpanel", in any case; see Upgrading to katana 6 panel_type "SSpanel" is not supported: katana serves the NewV2board and Helium panels, quoting panel_type as the file spells it
A local protocol key on a helium node node_type, enable_vless, or a [node.hysteria] key other than congestion, with panel_type = "Helium" [node.api] node_type is set, but a helium node's protocol is described by the panel; remove it (of [node.hysteria], only congestion is this host's to choose), naming the key
A helium node config katana cannot read Anything the types of the helium-node-api crate do not accept, such as REALITY over WebSocket or a missing security parse helium config response, while the node config is read
sss on a UniProxy panel node_type = "sss" with panel_type = "NewV2board" or "V2board" newV2board: no UniProxy panel describes an sss node; sss is Helium's own protocol, served with panel_type = "Helium"
REALITY on VMess UniProxy tls = 2 on a VMess node node requests kernel-unsupported feature: REALITY on a VMess node
REALITY on SOCKS or HTTP UniProxy tls = 2 on those nodes node requests kernel-unsupported feature: socks over REALITY, or http over REALITY
REALITY on Shadowsocks UniProxy tls = 2 on a Shadowsocks node newV2board: shadowsocks over REALITY is not supported
REALITY without settings UniProxy tls = 2 on a VLESS node whose tls_settings are missing or not REALITY’s shape a REALITY node (tls = 2) carries no tls_settings, or the REALITY tls_settings: …
REALITY settings katana cannot use A server name, cover-site port, key or shortId of the wrong form; see REALITY and Vision REALITY needs a server_name, security.server_name must be a host name of …, REALITY private_key: … and the others listed there
REALITY over a stream transport UniProxy tls = 2 with network other than TCP security reality runs over transport tcp only
Vision off REALITY Flow xtls-rprx-vision without tls = 2 flow xtls-rprx-vision needs security reality
Other XTLS flows Panel flow other than xtls-rprx-vision node requests kernel-unsupported feature: VLESS flow "xtls-rprx-direct"
A flow off VLESS A flow on a VMess node node requests kernel-unsupported feature: an XTLS flow off VLESS
SOCKS or HTTP without TLS tls = 0 or missing on a SOCKS or HTTP node node requests kernel-unsupported feature: socks without TLS, or http without TLS
TCP header obfuscation A UniProxy TCP node whose network settings carry a header of a type other than none; see TCP header obfuscation node requests kernel-unsupported feature: tcp header type "http"
HTTPUpgrade network = "httpupgrade" node requests kernel-unsupported feature: httpupgrade transport
SplitHTTP, XHTTP network = "splithttp" or "xhttp" node requests kernel-unsupported feature: splithttp transport
Other transports network values such as quic, kcp, h2 node requests kernel-unsupported feature: transport "quic"
WebSocket or gRPC settings no client could match A WebSocket path that does not start with / or has a query other than ?ed=N, a WebSocket host with a port, an empty gRPC service name transport.path must start with /, transport.path must have no query but ?ed=N; …, transport.host must not have a port; …, transport.service_name must not be empty
ACME certificates [node.controller.cert].mode of dns, http or tls node requests kernel-unsupported feature: ACME cert mode "dns"
SNI enforcement [node.controller.cert].reject_unknown_sni = true node requests kernel-unsupported feature: cert.reject_unknown_sni
Unknown Shadowsocks cipher Panel cipher node requests kernel-unsupported feature: shadowsocks cipher "rc4-md5"
A Shadowsocks 2022 server key katana cannot use UniProxy server_key shadowsocks server_key is not base64, or shadowsocks-2022: PSK too short (16 < 32)
Shadowsocks obfs UniProxy obfs other than plain or none newV2board: shadowsocks obfs "http" is not supported
AnyTLS padding scheme A panel padding_scheme with an empty line, a line break or more than 2048 bytes, or a line the kernel cannot read padding_scheme[1] is empty and the like, or inbound AnyTLS_0.0.0.0_443: padding scheme line 1 …
sss transforms A helium transform katana cannot parse; see sss: katana nodes Refused when the node is built
TLS without a file certificate A TLS node whose mode is not "file", including the default "none" TLS node requires cert.mode = "file"
TLS without paths mode = "file" with an empty cert_file or key_file TLS node requires cert.cert_file and cert.key_file

Most of these settings come from the panel, so katana --test cannot see them: it checks the config file and builds each node’s panel client (which refuses panel_type = "SSpanel", a helium node’s local protocol keys and a UniProxy sss node), outbounds, [dns] and routing table. It checks [node.hysteria] congestion on every node, and builds the listener of a node whose node_type is Hysteria 2, but it does not contact the panel. A config for a node whose panel asks for the httpupgrade transport passes --test and fails at startup.

The error appears in the log with the node’s ID. A refusal of what a UniProxy panel describes is found as katana reads the answer, and names its reason after parse UniProxy config response::

ERROR katana::manager::node: node 1: node_info failed: parse UniProxy config response: node requests kernel-unsupported feature: httpupgrade transport; retrying in 1s

If the panel’s answer changes to a refused one later, on a poll, katana logs a warning and keeps serving the settings it already has:

WARN katana::manager::node: node 1: node_info: parse UniProxy config response: node requests kernel-unsupported feature: httpupgrade transport

A helium node config katana cannot read is logged the same way, after parse helium config response:. A refusal of the host’s own settings, such as an ACME cert.mode, is found while katana builds the node, and is logged as node 1: initial start failed: followed by the message and the same ; retrying in note, or, on a node that is already up, as node 1: cannot build the node, keeping the running one: …. Other nodes in the same file are not affected.

A node that has not come up keeps trying. katana waits 1 second after the first failed attempt and doubles the wait after each further failure, up to 60 seconds, or up to update_periodic when that is shorter. Every attempt reads the node info and the user list from the panel afresh, so once you fix the node in the panel it comes up at the next attempt, without a restart of katana. Saving a change to the node’s [[node]] table in the config file starts the next attempt at once.

If a running node’s settings change in the panel to something refused, katana does not apply them and logs the reason. It tries again at every poll, so the change takes effect once the panel is fixed. Troubleshooting covers the other startup errors.

katana’s integration tests run the real katana binary against a fake panel and connect with independent client implementations. Every test sends a payload through the node and checks the echoed bytes. The Xray tests also check that the panel received a traffic report for the user.

Client Protocol Transport TLS Mux
Xray-core VMess TCP, WebSocket, gRPC No TCP only
Xray-core VMess TCP Yes No
Xray-core VLESS WebSocket Yes Yes
Xray-core VLESS gRPC Yes No
Xray-core Trojan TCP Yes Yes
Official Hysteria 2 client Hysteria 2 QUIC Yes Not applicable

The Xray clients use VMess security auto and VLESS encryption none, and verify katana’s certificate by pinning its hash. The Xray mux tests use a concurrency of 8. The Hysteria 2 client authenticates with nothing but the user’s UUID, skips certificate verification, and opens two streams on one connection; its node takes its port from [node.hysteria] rather than from the panel.

No test in katana drives a Shadowsocks, AnyTLS, SOCKS, HTTP or REALITY node with an external client. An sss node is tested end to end against a fake helium panel with Etemenanki’s own sss client, through transform chains in both directions, including the traffic report.