-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
234 additions
and
173 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,2 @@ | ||
--- | ||
port: 8888 | ||
socks-port: 8889 | ||
mixed-port: 8899 | ||
|
||
|
||
dns: | ||
enable: true | ||
listen: 127.0.0.1:53533 | ||
# ipv6: false # when the false, response to AAAA questions will be empty | ||
|
||
# These nameservers are used to resolve the DNS nameserver hostnames below. | ||
# Specify IP addresses only | ||
default-nameserver: | ||
- 114.114.114.114 | ||
- 8.8.8.8 | ||
enhanced-mode: fake-ip # 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. questions to these domain names will always be answered with their | ||
# real IP addresses | ||
# fake-ip-filter: | ||
# - '*.lan' | ||
# - localhost.ptlogin2.qq.com | ||
|
||
# Supports UDP, TCP, DoT, DoH. You can specify the port to connect to. | ||
# All DNS questions are sent directly to the nameserver, without proxies | ||
# involved. Clash answers the DNS question with the first result gathered. | ||
nameserver: | ||
- 114.114.114.114 # default value | ||
- 8.8.8.8 # default value | ||
- tls://dns.google:853 # DNS over TLS | ||
- https://1.1.1.1/dns-query # DNS over HTTPS | ||
- dhcp://en0 # dns from dhcp | ||
|
||
allow-lan: true | ||
mode: rule | ||
log-level: debug | ||
external-controller: 127.0.0.1:6170 | ||
experimental: | ||
ignore-resolve-fail: true | ||
|
||
rules: | ||
- MATCH, DIRECT | ||
... | ||
port: 8080 | ||
external-controller: 127.0.0.1:9090 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.