Skip to content

LISTENERS

1
2
3
4
5
6
7
8
listeners:
- name: in-name
  type: shadowsocks
  port: 10000
  listen: 0.0.0.0
  routing-mark: 0
  rule: sub-rule-1
  proxy: proxy

name

Inbound name. It can be matched by an inbound rule.

type

Inbound type.

listen

Listening address.

port

Listening port. Supports the ports format described in Port ranges.

routing-mark

Sets the routing mark for the listening socket. Linux only.

rule

Uses a sub-rule as the matching rules for this inbound. When empty, rules is used by default. If the sub-rule is not found, rules is used directly.

proxy

Uses an outbound proxy or proxy group directly. When empty, rules is used by default.

When proxy is non-empty, its value must be a valid proxy name or an error will occur.