Gotchas
etemenanki-app is strict about its configuration file. An unknown key, a misspelt protocol or an unknown security value stops --test and a real start. A few behaviours are deliberate but still catch people out, especially people who come from Xray.
This page collects those cases. Each entry says what happens, why, and what to do instead. Read it when a config does not behave the way you expected, or before you carry a config over from Xray.
At a glance
Section titled “At a glance”| Gotcha | What you see | Fix |
|---|---|---|
| TLS over TCP | security = "tls" is not valid with network = "tcp" |
Write network = "tls" |
ca_file adds trust |
A publicly trusted certificate still verifies | Expect system roots plus your CA |
| UDP defaults | Hysteria 2 clients get no UDP, or a SOCKS inbound in TLS is refused | Set udp = true on the Hysteria 2 inbound, udp = false on the SOCKS one |
| Users need a name | users[0] has no email |
Give every user a unique email |
| The legacy Shadowsocks password | Clients with the top-level password cannot connect | Give each client one of the users passwords |
| Relative paths | --test passes in one directory and fails in another |
Use absolute paths |
| Changes that need a restart | reload refused, keeping the running config: … |
Restart the process |
[log].level on reload |
A new level has no effect | Restart the process |
| Certificate rotation | Old certificate still served | Change the config file, or restart |
| The default route | Unmatched traffic goes to an unexpected outbound | Set [route].default |
direct and blackhole |
A route to direct works without a direct outbound |
Nothing, unless you meant another outbound |
| Rule matchers | A rule catches far more than intended | One condition per rule, most specific first |
| With a subscribe file | Your [[route.rule]] entries or [dns] have no effect |
Change the subscribe file or your picks instead |
| IPv6 syntax | IPv6 written the wrong way for the key | Brackets optional in server and endpoint, none in listen, required in [dns].server |
TLS over TCP is network = "tls"
Section titled “TLS over TCP is network = "tls"”Xray spells TLS over plain TCP as network = "tcp" plus security = "tls". etemenanki-app refuses that pair, including a security = "tls" written without any network, since network defaults to tcp:
inbound trojan-in: security = "tls" is not valid with network = "tcp"; use network = "tls" for TLS over plain TCP (security = "tls" layers TLS under network = "ws" or "grpc")The refusal is deliberate. Silently building a plaintext listener or dialer here would send a Trojan password hash or a VLESS UUID in clear text before the mistake became visible.
[inbound.stream]network = "tcp"security = "tls"[inbound.stream]network = "tls"How network and security combine:
network |
security absent or "none" |
security = "tls" |
|---|---|---|
tcp |
plain TCP | refused |
tls |
TLS over TCP | TLS over TCP |
ws |
plaintext WebSocket | WebSocket over TLS |
grpc |
plaintext gRPC | gRPC over TLS |
Under ws or grpc, TLS is on only with security = "tls". network = "tls" is always TLS, even with security = "none" beside it. Any security value other than tls, none, reality or an empty string is refused, including a different case: security = "TLS" fails with unknown stream security "TLS" (expected "tls" or "none").
REALITY keeps Xray’s spelling: network = "tcp" with security = "reality", on a VLESS inbound or outbound only. It is refused under any other network (security = "reality" needs network = "tcp") and under any other protocol (reality is for vless only). See REALITY.
ca_file adds to the system roots
Section titled “ca_file adds to the system roots”Every ca_file that verifies a server adds its certificates to the system’s default trust store. It does not replace the store. This holds for all three places the key appears:
[outbound.stream.tls] ca_file;ca_filein a Hysteria 2 outbound’s[outbound.settings];[dns] ca_file.
A server with a publicly trusted certificate for the right name still verifies when ca_file is set, and there is no key that restricts trust to the file alone. Use ca_file to make a certificate from your own CA verify, not to pin one.
ca_file and allow_insecure = true cannot be combined. The check fails with outbound <tag>: tls.allow_insecure and tls.ca_file cannot both be set, or outbound <tag>: allow_insecure and ca_file cannot both be set for Hysteria 2.
UDP defaults differ between inbounds
Section titled “UDP defaults differ between inbounds”Three inbounds have a switch for relaying UDP, and they do not agree on its default. The trojan, vless, vmess, anytls and sss inbounds carry UDP without a switch.
| Inbound | Key | Default |
|---|---|---|
socks |
settings.udp |
true |
tun |
settings.udp |
true |
hysteria2 |
settings.udp |
false |
A Hysteria 2 server without udp = true accepts TCP streams only, so UDP from its clients (DNS, QUIC, games, voice calls) does not reach any outbound. Turn it on explicitly:
[inbound.settings]cert_file = "/etc/etemenanki/cert.pem"key_file = "/etc/etemenanki/key.pem"password = "replace-with-a-long-random-password"udp = trueudp_idle_timeout on a Hysteria 2 inbound needs udp = true. Without it, the check fails with udp_idle_timeout is set but udp is not enabled rather than ignoring the timeout.
The SOCKS default works the other way inside a transport. A SOCKS inbound over TLS, WebSocket or gRPC must say udp = false, because its UDP relay would travel outside the transport, in the clear. Leaving the default fails with socks serves udp associate over plain tcp only; turn udp off to wrap it in a transport. See SOCKS.
The http and shadowsocks inbounds carry no UDP at all, with or without a transport. On the outbound side, http and shadowsocks cannot carry UDP either: a UDP flow routed to them fails with http carries no datagrams (or shadowsocks, shadowsocks-2022). See Hysteria 2 and Outbounds.
Every user needs a name
Section titled “Every user needs a name”Xray lets a user be a bare UUID or password. In etemenanki-app every user of a Trojan, VLESS, VMess, AnyTLS, sss or multi-user Shadowsocks inbound needs an email, and it must be unique within the inbound:
inbound vless-in: users[0] has no email; a user of this inbound is named by its emailThe email is only a name. It never goes on the wire and need not be an e-mail address. SOCKS and HTTP accounts are named by their user, and Hysteria 2 users by email when it is set, otherwise by user. Two users may not present the same password, UUID or key either. See Inbounds.
The legacy Shadowsocks password with users
Section titled “The legacy Shadowsocks password with users”A legacy (AEAD) Shadowsocks inbound always requires password: leaving it out fails with inbound ss-in: invalid settings: missing field `password` . As soon as users is not empty, though, only the users’ passwords are accepted: clients configured with the top-level password fail to connect. Give each client one of the users passwords.
A Shadowsocks 2022 inbound is different: with users, the top-level password is the server’s identity key and is required by the protocol. See Shadowsocks.
Relative paths follow the working directory
Section titled “Relative paths follow the working directory”etemenanki-app opens every file named in the config as written. A relative path is resolved against the process’s current working directory, not against the directory that holds the config file. That applies to:
cert_file,key_fileandca_filein[stream.tls];cert_file,key_fileandca_filein Hysteria 2 settings;[dns] ca_file;[route] geoipandgeosite;[subscribe] path;- the
-cpath itself, which defaults toconfig.tomlin the working directory.
A config that passes --test in /etc/etemenanki can fail with No such file or directory (os error 2) when a service manager starts it from /.
A Unix socket listen is the one path that cannot be relative. etemenanki-app treats a listen value as a socket path only when it starts with /. A relative path such as run/proxy.sock is taken as a host to bind with a TCP port, so --test fails with inbound <tag>: port is required. Write the full path, for example listen = "/run/etemenanki/proxy.sock".
Use absolute paths throughout. If you must use relative ones, set the service’s working directory to match (WorkingDirectory= in a systemd unit), and run --test from that same directory.
Reloads
Section titled “Reloads”etemenanki-app watches the directory that holds its config file, and reloads when the file changes. A reload changes only what the file changed, and keeps connections through everything else. Hot reload describes it in full.
flowchart TB
A["the config file changes"] --> B["read and check it, as --test does"]
B -->|fails| F["log the error, keep the running config"]
B -->|passes| C{"would it end an inbound's live connections?"}
C -->|yes| R["refuse: restart to apply"]
C -->|no| G["build and bind what changed, keep the rest"]
G -->|fails| F
Some changes need a restart
Section titled “Some changes need a restart”Two kinds of change would end every connection of an inbound, so a reload refuses them and keeps running the old configuration:
- any change to a
tuninbound; - a change to a Hysteria 2 inbound’s
obfsorobfs_password, which connected clients cannot follow.
reload refused, keeping the running config: inbound hy2-in: the hysteria2 obfuscation changed; connected clients cannot follow the new key, which would end its live connections; restart to apply itRestart the process to apply such a change.
[log].level is read once
Section titled “[log].level is read once”The log level is set when the process starts and is not changed by a reload. Restart the process to apply a new level.
Two related details:
- The
RUST_LOGenvironment variable, when it is set to a filter that parses, overrides[log].levelentirely. - The level is not validated. A value that is not a level, such as
level = "verbose", is taken as a filter for a module of that name, which lets no log line through. Useerror,warn,info,debugortrace.
Rotating a certificate needs a config change
Section titled “Rotating a certificate needs a config change”Certificate, key and CA files are read at startup and on each reload. After you renew a certificate, do one of these:
- change the config file, for example a comment line such as
# reload-stamp: 2026-09-24. The reload reads the new files; the inbound keeps its listener and drops nothing, and new connections get the new certificate; - restart the process.
A certificate renewal hook can do either. After you update the geodata files that [route] names, restart the process.
Routing
Section titled “Routing”The first outbound is the default route
Section titled “The first outbound is the default route”Traffic that no rule matches goes to [route].default. When default is not set, it goes to the first [[outbound]] in the file. Reordering the outbounds, or adding a new one at the top, changes where unmatched traffic goes. A blackhole outbound written first drops everything that no rule sends elsewhere.
Name the default explicitly so the order of the file does not matter:
[route]default = "direct"default may name an outbound or a balancer. A tag that does not exist fails with route references unknown outbound <tag>.
direct and blackhole need no outbound block
Section titled “direct and blackhole need no outbound block”When a rule or [route].default names direct or blackhole and no outbound or balancer has that tag, etemenanki-app adds one: a freedom outbound for direct, a blackhole outbound for blackhole. The example above therefore works even in a file with no [[outbound]] called direct. If you have an outbound of your own with that tag, it is used instead, whatever its protocol, so do not call a proxy outbound direct. With a subscribe file, such a mismatch is refused.
A rule matches when any of its matchers matches
Section titled “A rule matches when any of its matchers matches”A [[route.rule]] can list several matchers, but they are combined with OR, not AND: the rule applies as soon as one of them matches. This is the opposite of Xray, where the conditions of one rule must all hold.
# Matches every flow to example.com, and also every flow to# port 443 anywhere, not only example.com on port 443.[[route.rule]]domain_suffix = ["example.com"]port = ["443"]outbound = "proxy"Rules are tried in file order and the first match wins, so there is no way to require two conditions in one rule. Write one kind of condition per rule and put the most specific rules first.
Two more details of matching:
- A rule with no matchers at all never matches.
cidrandgeoipmatch only flows whose destination is an IP address. A flow addressed by domain name is not resolved for routing, so an IP rule never matches it. Domain rules, in turn, see the requested name and a name found by sniffing.
See Routing for every matcher.
With a subscribe file
Section titled “With a subscribe file”A config with [subscribe] takes its client side from the subscribe file, and three things you may have written yourself stop applying:
- Your
[[route.rule]]entries are ignored. The subscribe file’s route groups become the rules, and a warning says so:[subscribe] is set, so the config's <n> [[route.rule]] entries are ignored; routing comes from the route groups in <file>. Change routing with your picks in[subscribe.routes]. - Your
[dns]is ignored when the subscribe file has one, with the warning<file> has a [dns] section, so the config's [dns] is ignored. - Applications’ DNS is answered locally. With the subscribe file’s
[dns], every connection to port 53, on any inbound, is answered by etemenanki-app with the subscribe file’s DNS setup instead of being routed.
See Subscribe files.
IPv6 addresses in server, endpoint and listen
Section titled “IPv6 addresses in server, endpoint and listen”An outbound’s server and a WireGuard outbound’s settings.endpoint take an IPv6 address bare or in square brackets, and brackets around anything else are refused when the config loads. An inbound’s listen takes it bare. [dns] server is different: it is parsed as a socket address, so an IPv6 address there needs brackets, and anything else is refused by --test.
| Key | Write |
|---|---|
server |
"2001:db8::10" or "[2001:db8::10]" |
settings.endpoint (WireGuard) |
"[2001:db8::10]:51820" or "2001:db8::10:51820" |
listen |
"::" |
[dns] server |
"[2001:db8::53]:53"; "2001:db8::53:53" fails with dns: invalid server address: invalid socket address syntax |
| A subscribe file’s DNS server | "udp://[2001:db8::53]:53" |
A subscribe file’s server |
"2001:db8::10" |
A WireGuard endpoint in brackets is read as [address]:port, the form wg-quick writes. Without brackets it is split at its last colon: everything before the last : is the address and everything after it is the port.
Common errors
Section titled “Common errors”The errors on this page that --test reports:
| Message | Cause | Fix |
|---|---|---|
security = "tls" is not valid with network = "tcp"; … |
Xray-style TLS over TCP, or security = "tls" without network |
network = "tls" |
unknown stream security "…" (expected "tls" or "none") |
A typo or a different case | security = "tls" |
protocol <protocol> does not support stream network "…" / stream security "…" |
A [stream] block on a protocol without a transport |
Remove the [stream] block |
users[<n>] has no email; a user of this inbound is named by its email |
A user without email |
Give every user a unique email |
… No such file or directory (os error 2) |
A file in the config is missing, often a relative path | Use absolute paths |
tls.allow_insecure and tls.ca_file cannot both be set |
Both verification options on one outbound | Keep one |
udp_idle_timeout is set but udp is not enabled |
A Hysteria 2 timeout without udp = true |
Add udp = true, or remove the timeout |
socks serves udp associate over plain tcp only; turn udp off to wrap it in a transport |
A SOCKS inbound in a transport with the default udp = true |
Add udp = false |
security = "reality" needs network = "tcp" |
REALITY under tls, ws or grpc |
network = "tcp" |
invalid settings: missing field `password` |
A legacy Shadowsocks inbound with users but no password |
Add a password; it is not used for users |
dns: invalid server address: invalid socket address syntax |
A host name, or an IPv6 address without brackets, in [dns] server |
Write an IP socket address, IPv6 in brackets |
outbound <tag>: invalid host "…": brackets hold only an IPv6 literal |
Brackets around a name or an IPv4 address, or a stray bracket, in server or settings.endpoint |
Write the name or IPv4 address without brackets |
route references unknown outbound <tag> |
[route].default or a rule names a missing outbound |
Fix the tag |