-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add wireguard outbound support (#214)
* WIP * WIP * up * TCP working * stack * speed * add udp * up * fix build * todo DNS * wg remote dns * add allowed_ips check * readme * add wg dns timeout
- Loading branch information
Showing
37 changed files
with
1,914 additions
and
42 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
--- | ||
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 | ||
|
||
allow-lan: true | ||
mode: rule | ||
log-level: debug | ||
external-controller: 127.0.0.1:6170 | ||
experimental: | ||
ignore-resolve-fail: true | ||
|
||
proxies: | ||
- name: "wg" | ||
type: wireguard | ||
server: 10.0.0.17 | ||
port: 51820 | ||
private-key: 2AS8PSccSenWrws5ExglmpwjVBub9Oy9X3zOlk6heHU= | ||
ip: 192.168.2.2 | ||
public-key: MAZPwQBniuXmQf5w8BwM3owlO7Kw07rzyZUXxOvsF3w= | ||
allowed-ips: ['0.0.0.0/0'] | ||
remote-dns-resolve: true | ||
dns: | ||
- 8.8.8.8 | ||
udp: true | ||
|
||
|
||
rules: | ||
- MATCH, wg | ||
... |
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
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.