Skip to content
GitHubSupport

Protocol presets

The Protocols section holds the protocols clients use to reach your nodes. Add a new one from a preset with the Add button: keys, passwords and certificates are created for you, and all you pick is the node and, if you like, the port.

Preset Default port Notes
VLESS · REALITY · XHTTP 443/tcp the main one for Russia: looks like ordinary HTTPS and holds few connections
VLESS · REALITY · Vision 8443/tcp for older clients without XHTTP
VLESS · REALITY · gRPC 2053/tcp
VLESS · REALITY · XHTTP · PQ 2096/tcp post-quantum VLESS encryption, needs a recent mihomo or Xray
Trojan · REALITY 2087/tcp
VLESS · TLS · XHTTP 2443/tcp plain TLS on a real certificate, answers strangers as a web server
VLESS · TLS · Vision 3443/tcp works in almost every app
VLESS · TLS · WebSocket 2053/tcp gets through on operators where only WS works, and through a CDN, see behind a proxy
CDN · VLESS · XHTTP 2083/tcp through a CDN (Cloudflare, Yandex and others), since 0.5.2.0, see Behind a CDN
CDN · VLESS · XHTTP · GET 2087/tcp for CDNs that do not pass POST to the origin: data in a header, since 0.5.2.0
Hysteria2 443/udp QUIC, a port range can be set
Hysteria2 · Gecko 2443/udp Hysteria2 with Gecko obfuscation, Clash apps only
TUIC v5 8443/udp
AnyTLS 2083/tcp
TrustTunnel 4443/tcp Clash apps only; answers a request without a key with 407, so a scanner can tell it is a proxy
ShadowQUIC 4443/udp Clash apps only
Mieru 5443/tcp Clash apps only
Shadowsocks-2022 6443/tcp a key per client (AES methods), UDP inside TCP
Sudoku 7443/tcp one key for everyone, Clash apps only
Snell 9443/tcp one key for everyone, Clash apps only
Own config a mihomo listener template in YAML

The subscription detects the app and sends it only what it can run. The connection form shows this on the “Delivered to” line.

Protocol Clash apps (mihomo) Happ, v2RayTun, INCY (Xray) Hiddify, Karing (sing-box)
VLESS · REALITY · Vision yes yes yes
VLESS · REALITY · XHTTP yes yes
VLESS · REALITY · gRPC yes yes yes
VLESS PQ yes yes
Trojan · REALITY yes yes yes
VLESS · TLS · WebSocket yes yes yes
CDN · VLESS · XHTTP (and GET) yes yes
Hysteria2 yes yes yes
TUIC v5 yes yes
AnyTLS yes Karing
TrustTunnel, ShadowQUIC, Mieru yes
Shadowsocks-2022 yes yes yes
Sudoku, Snell yes

A Clash app gets the newer protocols only if it reports a recent enough core version: for example, Gecko needs mihomo 1.19.26+ and ShadowQUIC 1.19.29+. If the app doesn’t report a version, these protocols are not sent to it.

The Configure button opens the tabs “Main”, “Masking” (XHTTP only) and “Config (YAML)”.

  • Name in the subscription: how the connection is named in apps.
  • Port. For Hysteria2 you can set a range, for example 20000-30000: clients hop between ports, so blocking a single port is pointless. Open the whole range for UDP in the firewall.
  • Camouflage site (REALITY): www.microsoft.com:443 by default. The buttons are “Check” and “Find near the server” (looks for sites in the same /24 network as the node). If the panel has a domain, you can pick your own domain. If an IP is given instead of a name, the “Site domain (SNI)” field is required.
  • Obfuscation for Hysteria2: Salamander or Gecko. Gecko cuts the QUIC handshake into pieces of random size with padding, against DPI that recognizes QUIC by packet sizes. Only Clash apps on mihomo 1.19.26+ receive it, so keep a plain Hysteria2 next to it.
  • TLS fingerprint: as in the settings (Chrome by default), Chrome, Firefox, Safari, iOS, Android, Edge, 360, QQ, a random browser, or “Own…” with any uTLS profile name, for example chrome120. The shared default is set in Settings → Subscription. Hysteria2 and TUIC have no fingerprint.
  • Way out to the internet: direct, WARP or via a node.
  • Server group: the group decides which traffic the protocol spends: the main one, a limit of its own, none, or it is not included in the plan. A protocol in no group spends the main traffic. See Server groups and traffic packages.
  • Behind a proxy (nginx, HAProxy): see Behind a proxy.
  • Behind a CDN (since 0.5.2.0): the CDN’s address for clients and the client’s real IP from a header, only for VLESS and Trojan on the node’s certificate over XHTTP, WebSocket and gRPC, see Behind a CDN.
  • Through shared 443 (since 0.5.2.0): the protocol shares the node’s port 443 with others by TLS name, see Shared port 443.
  • Automatic fixes: switches for moving the port and changing the site, see Automatic fixes.

The Copy button in a protocol’s row makes one more like it: the same settings with keys of its own, and clients get the copy as one more connection. In the window pick:

  • To which node: the same one or another. A copy on the same node listens on another port.
  • Port: empty means the same port, or the first free one if it is taken.
  • Camouflage site, for REALITY: keep it or pick another.

The address for clients, the CDN and the path are copied as they are. If the other node has its own, fix them in the copy’s settings.

Tick several protocols in the list (or “Choose all”) and a Way out to the internet button appears above the list. It sets the exit for everything ticked at once:

  • Direct: sites see the server’s IP;
  • Through its node’s WARP: the node must have WARP set up;
  • Via a node: pick another node, see Cascades.

It is the same “Way out to the internet” field from a protocol’s settings, only for many protocols at once.

The “Own config” preset opens a YAML editor with a mihomo listener of type vless, trojan, hysteria2, tuic or anytls. mikan fills in the name, port, address, users and certificate itself. The “Check” button validates the config before saving.

arikan inbound list
arikan inbound add # shows the list of presets
arikan inbound add hysteria2 --port 20000-20100 --node 2
arikan inbound set vless-xhttp --port 2443

On the panel server the new port is opened in ufw automatically, and the node picks up the changes within 30 seconds.

arikan targets scan # find suitable sites near the server
arikan targets check --dest www.example.com:443
arikan targets apply --dest www.example.com:443 --all