Inbound
Device traffic is captured through TUN / Network Extension. Add local proxy ports when software needs to connect explicitly using HTTP or SOCKS.
Local proxy ports
mixed-port: 7890
allow-lan: false
bind-address: 127.0.0.1In the software's proxy settings, enter host 127.0.0.1, port 7890, and HTTP or SOCKS5. This address refers to the same device, not a remote proxy server.
| Field | Purpose |
|---|---|
port | HTTP proxy port |
socks-port | SOCKS proxy port |
mixed-port | HTTP and SOCKS on one port |
allow-lan | Request LAN access; the app must also allow sharing |
bind-address | Binding address; use 127.0.0.1 for local-only access |
authentication | Credentials list, such as ["user:YOUR_PASSWORD"] |
skip-auth-prefixes | Source ranges allowed to bypass entry authentication, only when needed |
lan-allowed-ips / lan-disallowed-ips | Allowed or denied source IP ranges |
Custom listeners
This creates another local mixed entry with a separate port to avoid conflicting with 7890 above:
listeners:
- name: Local-Proxy
type: mixed
listen: 127.0.0.1
port: 7891
users:
- username: user
password: YOUR_PASSWORDname identifies the entry, type selects its protocol, listen is the local address, and port is the listening port. users configures this entry's credentials. Normal device capture does not require listeners. Custom services must also meet protocol certificate, authentication, and system listening requirements.
Platform behavior and field status
redir-port, tproxy-port, and Linux iptables settings do not operate on Apple platforms. Proxy authentication and allow-lan do not uniformly protect DNS or controllers; see Security.
Some TUN settings vary by version. TUN guide and version notes.
34 fields shown
| Field | Type | iOS | macOS | tvOS | Platform notes |
|---|---|---|---|---|---|
allow-lan | Boolean | Managed / limited | Managed / limited | Managed / limited | YAML true is kept only when the app permits LAN sharing; this does not control DNS or controller access globally. |
authentication | List | Advanced | Advanced | Advanced | Sets credentials for applicable local proxy listeners, not DNS or controller credentials. |
bind-address | String | Advanced | Advanced | Advanced | Sets binding or source restrictions for applicable local proxy listeners, not all other services. |
inbound-mptcp | Boolean | Advanced | Advanced | Advanced | Requests the feature for inbound connections; actual use depends on the system and connection negotiation. |
inbound-tfo | Boolean | Advanced | Advanced | Advanced | Requests the feature for inbound connections; actual use depends on the system and connection negotiation. |
interface-name | String | Unsupported | Unsupported | Unsupported | The requested interface is not used; Clash manages the physical outbound interface. |
iptables.bypass | List | Not applicable | Not applicable | Not applicable | Linux iptables setting; no effect on Apple platforms. |
iptables.dns-redirect | Boolean | Not applicable | Not applicable | Not applicable | Linux iptables setting; no effect on Apple platforms. |
iptables.enable | Boolean | Not applicable | Not applicable | Not applicable | Linux iptables setting; no effect on Apple platforms. |
iptables.inbound-interface | String | Not applicable | Not applicable | Not applicable | Linux iptables setting; no effect on Apple platforms. |
lan-allowed-ips | List | Advanced | Advanced | Advanced | Sets binding or source restrictions for applicable local proxy listeners, not all other services. |
lan-disallowed-ips | List | Advanced | Advanced | Advanced | Sets binding or source restrictions for applicable local proxy listeners, not all other services. |
listeners | List | Advanced | Advanced | Advanced | Configures custom listeners or forwarding; use protocol-specific binding and authentication. Availability also depends on system constraints. |
mixed-port | Integer | Advanced | Advanced | Advanced | Sets a local proxy port; access depends on binding, sharing permission, and listener authentication. |
port | Integer | Advanced | Advanced | Advanced | Sets a local proxy port; access depends on binding, sharing permission, and listener authentication. |
redir-port | Integer | Unsupported | Unsupported | Unsupported | No effect; this top-level listening port is not created. |
routing-mark | Integer | Unsupported | Unsupported | Unsupported | No effect; this routing mark is not used on Apple platforms. |
skip-auth-prefixes | List | Advanced | Advanced | Advanced | Skips authentication for the specified source ranges on applicable proxy listeners. |
socks-port | Integer | Advanced | Advanced | Advanced | Sets a local proxy port; access depends on binding, sharing permission, and listener authentication. |
ss-config | String | Advanced | Advanced | Advanced | Configures custom listeners or forwarding; use protocol-specific binding and authentication. Availability also depends on system constraints. |
tproxy-port | Integer | Unsupported | Unsupported | Unsupported | No effect; this top-level listening port is not created. |
tuic-server.alpn | List | Advanced | Advanced | Advanced | Sets TUIC server TLS; certificates/keys may be valid content or readable files. These are not outbound-node settings. |
tuic-server.authentication-timeout | Integer | Advanced | Advanced | Advanced | Sets the relevant TUIC server timeout in milliseconds; zero uses default handling. |
tuic-server.certificate | String | Advanced | Advanced | Advanced | Sets TUIC server TLS; certificates/keys may be valid content or readable files. These are not outbound-node settings. |
tuic-server.congestion-controller | String | Advanced | Advanced | Advanced | Sets TUIC server parameters; effective values depend on defaults, bounds, and negotiation. |
tuic-server.cwnd | Integer | Advanced | Advanced | Advanced | Sets TUIC server parameters; effective values depend on defaults, bounds, and negotiation. |
tuic-server.enable | Boolean | Advanced | Advanced | Advanced | Enables the TUIC server or sets its UDP address, subject to system port and permission constraints. |
tuic-server.listen | String | Advanced | Advanced | Advanced | Enables the TUIC server or sets its UDP address, subject to system port and permission constraints. |
tuic-server.max-idle-time | Integer | Advanced | Advanced | Advanced | Sets the relevant TUIC server timeout in milliseconds; zero uses default handling. |
tuic-server.max-udp-relay-packet-size | Integer | Advanced | Advanced | Advanced | Sets TUIC server parameters; effective values depend on defaults, bounds, and negotiation. |
tuic-server.private-key | String | Advanced | Advanced | Advanced | Sets TUIC server TLS; certificates/keys may be valid content or readable files. These are not outbound-node settings. |
tuic-server.token | List | Advanced | Advanced | Advanced | Sets TUIC server credentials separately from top-level authentication. |
tuic-server.users | Mapping | Advanced | Advanced | Advanced | Sets TUIC server credentials separately from top-level authentication. |
vmess-config | String | Advanced | Advanced | Advanced | Configures custom listeners or forwarding; use protocol-specific binding and authentication. Availability also depends on system constraints. |
Reference: mihomo.