Skip to content

Troubleshooting and FAQ ​

Where to start ​

  1. ours check -c config.yaml — a configuration error is printed as a single FATAL line with the line and column in the file (Exit codes).
  2. Keep info for normal operation. For one attempt, set log: {level: debug} and reload the configuration. Under systemd, find that attempt with journalctl -u ours --since "5 minutes ago". Find the inbound line and follow its connection number, for example [12]. A message such as [12] match[3] … => … gives the matched rule's zero-based index and its action. Messages before routing can have no connection number. Restore the normal log level afterwards.
  3. Use ours explain with the same inbound and destination to see each rule's result and the chosen outbound. For a config change, use ours check -c current.yaml --diff proposed.yaml to preview the reload.
  4. Test the outbound on its own with ours tools fetch -c config.yaml -o proxy https://example.com/, substituting the outbound tag and a destination you expect it to reach. This starts DNS and the outbounds without opening inbounds. Live connection and group state is available in the dashboard.
Log fragmentWhat to check
rejected by rule[3]Read the rule at index 3 in route.rules and check its conditions with ours explain.
lookup …: dns rule[2]: dns/udp[upstream]: no answerThe rule (numbered as ours explain --dns prints it), dns.final or an outbound's resolver chose the named upstream. Check its address, transport and reachability; Connection refused means nothing listens on its port.
connection to … via server … closed before any replyCompare credentials, transport and TLS settings on both sides, then check whether the server can reach the destination.
unknown VLESS user UUIDCheck that the client uses the UUID of a configured VLESS user.

The process does not start ​

Permission denied on listen with a port below 1024. Ports 80 and 443 require root or CAP_NET_BIND_SERVICE: sudo setcap cap_net_bind_service=+ep /usr/local/bin/ours. The systemd unit from dist/systemd runs the process as root.

Address already in use. The port is taken by another process (often a second instance of ours, or dnsmasq on port 53): ss -lntup | grep :<port>.

An nftables or netlink error from tproxy, tun, auto_nft. The kernel modules are not loaded or CAP_NET_ADMIN is missing. Which modules each feature needs is in Kernel requirements.

... is not built in (feature ...). The binary was built without this protocol or feature; ours version prints what is built in. Rebuild with the feature you need (Installation).

Connections do not go through ​

closed before any reply: check the credentials ... in the log. The server accepted the connection and closed it without answering anything. This is almost always a mismatch between the two sides' settings: password, UUID, flow, REALITY keys and short_id, sni, the transport or its path. Compare them value by value; with REALITY, the client's public_key is the pair of the server's private_key, not the key itself.

REALITY: the server answers as an ordinary site, the proxy does not work. This is how REALITY answers those it does not recognize: a wrong public_key, a short_id not in the server's list, a client sni not among the server's sni, or the client's and server's clocks differ by more than the server's max_time_difference allows (if it is set). Check the clock difference with date -u on both sides; without system time synchronization the ntp section helps.

Shadowsocks 2022 does not connect although the password is right. The protocol drops requests whose timestamp is more than 30 seconds away from the server's clock: check the time on both sides.

Hysteria 2 and TUIC do not connect, while TCP protocols work. UDP is closed by the server's firewall or cut by the client's network. Open the port for UDP on the server; if the network cuts QUIC, what remains is a protocol over TCP.

UDP (games, calls) does not go through the server. The log shows packet connection ... got no reply. The server does not let UDP through: check that the server's inbound accepts UDP (the network field of many protocols), that UDP is not closed by the server's firewall, and, for a SOCKS server, that it supports UDP ASSOCIATE.

Subscriptions and groups ​

subscription ...: not downloaded yet, the group is empty. The subscription has not been downloaded yet: under check this is normal; under run, look at the next log line for the reason. ours check -c config.yaml --fetch downloads the subscription and shows how many servers were read from it and what was skipped.

The panel returns an empty or unintelligible answer. Many panels choose the format by User-Agent: set the User-Agent of a client whose format can be read (Subscriptions).

The subscription has fewer servers than the provider lists. Unsupported protocols (VMess and others) are skipped; the reason is in the log and in check --fetch (What is skipped).

The group picks the wrong server. delay takes whoever answered the last probe fastest; a member outside the choice displaces the chosen one only if it is faster by tolerance. Probe results are visible in the dashboard (Groups).

Router and transparent proxy ​

After a crash the LAN devices have no network. The nftables table and the routing rules of auto_nft/tun were left behind after SIGKILL or OOM and steer traffic into a closed port. Remove them with ours clean or with the next ours run; the systemd unit does this by itself (ExecStopPost).

A site opens by address but not by name. The device asks DNS bypassing ours (its own DNS in the browser, DNS over HTTPS, a hard-coded server). With auto_nft.dns: true only DNS to port 53 is intercepted; turn off DNS over HTTPS in the browser or point it to the router.

Some traffic bypasses the proxy. With capture: rules fakeip addresses and the addresses of rules that lead somewhere other than directly are intercepted; connections by IP without DNS go directly. To intercept everything, use capture: all (tproxy).

FAQ ​

Can I use a sing-box configuration? No, the format is its own; the protocols and fields correspond, and the move is described in Migrating from sing-box.

Is ours compatible with sing-box and Xray servers? Yes, on the wire: the client and the server can be any of the three with the same settings. What is not implemented is in Limitations.

How do I report a bug? Include ours version, steps to reproduce, the smallest relevant configuration from ours check -c config.yaml --view, and the log lines for one attempt. Review both excerpts before posting. Replace private IP addresses, hostnames and usernames with consistent placeholders, and remove any credentials, subscription URLs and dashboard #token=… fragments. Keep connection IDs and rule indices so readers can follow the log. See CONTRIBUTING. Report vulnerabilities privately as described in SECURITY.md.

GPL-3.0-or-later