![]() Specify IP addresses only default-nameserver: – 114.114.114.114 – 8.8.8.8 enhanced-mode: redir-host # or fake-ip fake-ip-range: 198.18.0.1/16 # Fake IP addresses pool CIDR use-hosts: true # lookup hosts and return IP record Hostnames in this list will not be resolved with fake IPs i.e. dns: enable: false listen: 0.0.0.0:53 ipv6: false # when the false, response to AAAA questions will be empty These nameservers are used to resolve the DNS nameserver hostnames below. When not present, the DNS server will be disabled. v’: 127.0.0.1 ‘.dev’: 127.0.0.1 ‘’: ‘::1’ profile: Store the select results in $HOME/.config/clash/.cache set false If you don’t want this behavior when two different configurations have groups with the same name, the selected values are shared store-selected: false persistence fakeip store-fake-ip: true DNS server settings This section is optional. Non-wildcard domain names have a higher priority than wildcard domain namesĮ.g. Static hosts for DNS server and connection establishment (like /etc/hosts) Clash core will thenĪuthenticate by spedifying HTTP header Authorization: Bearer $ĪLWAYS set a secret if RESTful API is listening on 0.0.0.0 When set to false, resolver won’t translate hostnames to IPv6 addressesĪ relative path to the configuration directory or an absolute path to aĭirectory in which you put some static web resource. Global: all packets will be forwarded to a single endpointĭirect: directly forward the packets to the Internet ‘ ‘: bind all IP addresses 192.168.122.11: bind a single IPv4 address “”: bind a single IPv6 address bind-address: ‘‘ This is only applicable when allow-lan is true Set to true to allow connections to the local-end server from HTTP(S) and SOCKS4(A)/SOCKS5 server on the same portĪuthentication of local SOCKS5/HTTP(S) server Transparent proxy server port for Linux (TProxy TCP and TProxy UDP) Transparent proxy server port for Linux and macOS (Redirect TCP and TProxy UDP) Port of SOCKS5 proxy server on the local end Port of HTTP(S) proxy server on the local end When a request, or say packet, comes in, Clash routes the packet to different remote servers (“nodes”) with either VMess, Shadowsocks, Snell, Trojan, SOCKS5 or HTTP protocol. In this chapter, we’ll cover the common features of Clash and how they should be used and configured.Ĭlash works by opening HTTP, SOCKS5, or the transparent proxy server on the local end. YAML is designed to be easy to be read, be written, and be interpreted by computers, and is commonly used for exact configuration files. You can now move forward to the next chapters of this wiki in which we’ll cover the configuration syntax of ClashĬlash uses YAML, YAML Ain’t Markup Language, for configuration files. ![]() $ go install binary is built under $GOPATH/bin You can either grab the pre-built binaries of Clash from or build locally.Ĭlash requires Golang 1.17 or a higher version. While we strive to improve it and keep it accurate, This documentation is still in the works. This wiki will cover both versions of Clash.
0 Comments
Leave a Reply. |