Skip to content

SOCKS5 ​

Write type: socks5, not socks. Remove both credential fields if the server requires no authentication.

Node example ​

Merge this node into the configuration’s proxies list. Replace example addresses, identities, and credentials. If you rename Node, update group references too.

yaml
proxies:
  - name: Node
    type: socks5
    server: proxy.example.com
    port: 443
    username: YOUR_USERNAME
    password: YOUR_PASSWORD
    udp: true

Protocol fields ​

FieldHow to configure it
username / passwordSupply credentials when the server requires authentication.
udpEnable UDP forwarding only with server support for UDP ASSOCIATE.
tlsEnable only for TLS-wrapped SOCKS5. The TLS name uses server; this type has no sni field.

Groups and rules · Common fields · TLS · Transports

Reference: mihomo.