Skip to content

Instantly share code, notes, and snippets.

@kikyous
Last active March 31, 2025 07:26
Show Gist options
  • Save kikyous/d79c88b834ffc7fe763b14b4b6230d18 to your computer and use it in GitHub Desktop.
Save kikyous/d79c88b834ffc7fe763b14b4b6230d18 to your computer and use it in GitHub Desktop.
clash-config
port: 7890
# Port of SOCKS5 proxy server on the local end
socks-port: 7891
# Transparent proxy server port for Linux and macOS (Redirect TCP and TProxy UDP)
# redir-port: 7892
# Transparent proxy server port for Linux (TProxy TCP and TProxy UDP)
# tproxy-port: 7893
# HTTP(S) and SOCKS5 server on the same port
# mixed-port: 7890
# authentication of local SOCKS5/HTTP(S) server
# authentication:
# - "user1:pass1"
# - "user2:pass2"
# Set to true to allow connections to the local-end server from
# other LAN IP addresses
allow-lan: false
# This is only applicable when `allow-lan` is `true`
# '*': bind all IP addresses
# 192.168.122.11: bind a single IPv4 address
# "[aaaa::a8aa:ff:fe09:57d8]": bind a single IPv6 address
bind-address: '*'
# Clash router working mode
# rule: rule-based packet routing
# global: all packets will be forwarded to a single endpoint
# direct: directly forward the packets to the Internet
mode: rule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment