Commit graph

346 commits

Author SHA1 Message Date
gVisor bot
020ed8bc96 fix: rand ip error and clash remove loopback ip 2023-03-12 18:44:30 +08:00
gVisor bot
4f23cda7c8 feat: nameserver-policy support multiple keys
e.g.,
  nameserver-policy: #   'www.baidu.com': '114.114.114.114'
    #   '+.internal.crop.com': '10.0.0.1'
    "geosite:cn,private,apple":
      - https://doh.pub/dns-query
      - https://dns.alidns.com/dns-query
    "www.baidu.com,+.google.cn":
      - 223.5.5.5
      - 1.1.1.1
2023-03-12 16:56:29 +08:00
gVisor bot
e5eab112d0 feta: add hosts support domain and mulitple ip (#439)
* feat: host support domain and multiple ips

* chore: append local address via `clash`

* chore: update hosts demo

* chore: unified parse mixed string and array

* fix: flatten cname

* chore: adjust logic

* chore: reuse code

* chore: use cname in tunnel

* chore: try use domain mapping when normal dns

* chore: format code
2023-03-12 15:00:59 +08:00
gVisor bot
e7ce046d0b fix: global-client-fingerprint is now work 2023-03-12 13:35:59 +08:00
gVisor bot
7ef83f5131 chore: exposure ipv6 wait time 2023-03-10 23:38:16 +08:00
gVisor bot
302ef3c6f7 chore: adjust log 2023-03-10 20:48:18 +08:00
gVisor bot
ec50d65e22 chore: change default geo* url 2023-03-08 00:19:20 +08:00
gVisor bot
1432dd4e97 chore: add custom ca trust 2023-02-25 22:01:20 +08:00
gVisor bot
656225bf3a fix: incorrect time to set interface name 2023-02-22 21:08:08 +08:00
gVisor bot
00f554fad3 fix: parsing ipv6 doh error 2023-02-17 23:30:38 +08:00
gVisor bot
f723300ff5 chore: add log 2023-02-17 13:48:29 +08:00
gVisor bot
57279cd971 chore: move global-utls-client snippets to components\tls 2023-02-07 17:24:14 +08:00
gVisor bot
5cab8afec7 feat: add global-client-fingerprint.
* Available: "chrome","firefox","safari","ios","random","none".
* global-client-fingerprint will NOT overwrite the proxy's client-fingerprint setting when "client-fingerprint: none".
2023-02-07 01:26:56 +08:00
gVisor bot
601a40d068 chore: override-destination default value is true 2023-02-06 17:48:49 +08:00
gVisor bot
4055f72f48 feat: nameserver policy support multiple server 2023-02-03 21:40:05 +08:00
gVisor bot
05436374b5 fix: parse error 2023-01-28 16:09:14 +08:00
gVisor bot
b2c7c989e0 chore: clear code 2023-01-27 17:10:15 +08:00
gVisor bot
f64f1b787f chore: better parsing pure UDP DNS 2023-01-27 17:02:58 +08:00
gVisor bot
cb0e7b71da Chore: Better parsing pure IPv6 UDP DNS 2023-01-27 15:08:05 +08:00
gVisor bot
1c2c9e7368 chore: better parse udp dns 2023-01-27 13:07:52 +08:00
gVisor bot
9d9d4565e3 feat: add override-destination for sniffer 2023-01-23 14:08:11 +08:00
gVisor bot
86ad74a0ae feat: better config for sniffer 2023-01-23 13:16:25 +08:00
gVisor bot
bc34532418 Fix: Remove EnableProcess from config.go and enable-process from config.yaml.
Fix: FindProcess is now enabled by default when the rule set contains process-name rules.
2023-01-20 16:29:08 +08:00
gVisor bot
bb68939b56 fix: config parse error 2023-01-14 22:34:54 +08:00
gVisor bot
8ec6c87a2b refactor: replace experimental.fingerprints with custom-certificates and Change the fingerprint verification logic to SSL pinning 2023-01-14 21:08:06 +08:00
gVisor bot
4a0413a33d fix #322: add option general.find-process-mode, user can turn off findProcess feature in router
findProcess slow down connection due to repeat call to FindProcessName in router environment
this option has 3 values: always, strict, off
- always, equal to enable-process: true. Just try to merge all process related option into one
- strict, as default value, behavior remains unchanged
- off, turn off findProcess, useful in router environment
2023-01-09 19:48:39 +08:00
gVisor bot
f59d3e1c6d fix: parse DoH url 2022-12-08 12:46:46 +08:00
gVisor bot
2a1eb085a5 fix: let any type of dns server can use remote proxy 2022-12-07 13:00:45 +08:00
gVisor bot
d6a20af8b7 fix: config code merge 2022-12-06 10:13:05 +08:00
gVisor bot
2df61cdaa0 fix: config crash 2022-12-06 09:04:30 +08:00
gVisor bot
b414d0ef10 chore: cleanup rule parse code 2022-12-05 22:29:52 +08:00
gVisor bot
cfce7d4838 chore: listeners support tun 2022-12-05 17:43:50 +08:00
gVisor bot
3b1b077f80 chore: rebuild InboundListener 2022-12-04 21:53:13 +08:00
gVisor bot
9c9ff4dc5e chore: change C.PacketAdapter from a struct to an interface 2022-12-04 14:37:52 +08:00
gVisor bot
ae17141588 feat: add linsters 2022-12-04 13:37:14 +08:00
gVisor bot
f459018eae refactor: adjust config 2022-12-03 14:14:15 +08:00
gVisor bot
ad73c505bb feat: add tls port for RESTful api and external controller 2022-12-03 12:25:10 +08:00
gVisor bot
146f05f903 fix: a temporary solution for error reporting when enabling tun for devices that do not have an ipv6 environment. 2022-12-03 00:10:50 +08:00
gVisor bot
b48387d9f4 chore: optimize DomainTrie for only one child 2022-11-30 19:42:05 +08:00
gVisor bot
537035ffa8 chore: decrease DomainTrie's memory use 2022-11-30 18:50:46 +08:00
gVisor bot
cc1f051d99 Chore: allow tunnels don't set special proxy 2022-11-28 20:31:32 +08:00
gVisor bot
c24bb51cc1 Merge branch 'dev' of https://github.com/Dreamacro/clash into Alpha 2022-11-28 20:04:56 +08:00
gVisor bot
dbe9c4ba47 chore: add tuic-server listener 2022-11-28 17:09:25 +08:00
gVisor bot
44e8aad7eb Feature: add tunnels 2022-11-20 21:30:55 +08:00
gVisor bot
70c6e586ca Merge pull request #256 from Skimmle/Alpha
featrue: DoH and DoQ are implemented using AdGuardTeam/dnsProxy
2022-11-12 11:19:04 +08:00
gVisor bot
34ec07f589 featrue: DoH and DoQ are implemented using AdGuardTeam/dnsProxy, DoH support perfer and force http3 2022-11-12 11:14:51 +08:00
gVisor bot
4abbe8ce65 chore: add vmess, shadowsocks, tcptun and udptun listener 2022-11-11 20:56:08 +08:00
gVisor bot
3d4ad0d317 fix: when host's ip in fakeip's range, don't send to remote server 2022-11-10 21:08:06 +08:00
gVisor bot
31f6c66e70 fix: correct yaml config name 2022-11-04 17:38:24 +08:00
gVisor bot
2d7f4a52af chore: try to let tun's restful patch api work 2022-11-04 08:52:30 +08:00
gVisor bot
99a1561cd4 chore: trie.DomainTrie will not depend on zero value 2022-11-02 22:28:18 +08:00
gVisor bot
560862d4e2 chore: add parse-pure-ip in sniffer 2022-10-14 08:42:28 +08:00
gVisor bot
02dd19e311 chore: add force-dns-mapping in sniffer 2022-10-14 07:46:33 +08:00
gVisor bot
5aea89f2fd chore: add sing-tun's custom route support 2022-10-13 19:26:14 +08:00
gVisor bot
5574d8e688 fix: tun stack shown 2022-10-10 19:02:57 +08:00
gVisor bot
b4d4dc251d fix: try let fakeip mode get real destination ip 2022-10-09 10:48:26 +08:00
gVisor bot
a73f1f0b37 fix: don't set auto detect interface with tun name 2022-10-07 16:54:08 +08:00
gVisor bot
110e0014d1 chore: fix sing-tun's BuildAndroidRules 2022-10-06 22:18:49 +08:00
gVisor bot
afd5e48adc chore: use sing-tun to replace old tun_adapter 2022-10-06 19:23:38 +08:00
gVisor bot
d6dc5ba19c feat: support sub-rule, eg.
rules:
  - SUB-RULE,(AND,((NETWORK,TCP),(DOMAIN-KEYWORD,google))),TEST2
  - SUB-RULE,(GEOIP,!CN),TEST1
  - MATCH,DIRECT

sub-rules:
  TEST2:
    - MATCH,Proxy
  TEST1:
    - RULE-SET,Local,DIRECT,no-resolve
    - GEOSITE,CN,Domestic
    - GEOIP,CN,Domestic
    - MATCH,Proxy
2022-09-06 17:30:35 +08:00
gVisor bot
f2d7db4a41 Merge remote-tracking branch 'origin/Alpha' into Alpha
# Conflicts:
#	component/sniffer/http_sniffer.go
2022-08-22 23:22:26 +08:00
gVisor bot
48f30b01ef fix: ebpf support 2022-08-22 23:17:41 +08:00
gVisor bot
be49fcfd12 Chore: the default sniffing is changed to a standard port, and the sniffing result is only used for this connection. 2022-08-21 08:43:57 +08:00
gVisor bot
2c10af7b1d support ebpf 2022-07-29 09:08:35 +08:00
gVisor bot
100b6b7f9b Merge pull request #129 from zhudan/Alpha
入站增加TFO支持(默认不开启)
2022-07-22 06:32:34 -04:00
gVisor bot
9daef5bf44 inbound tfo 2022-07-22 15:16:09 +08:00
gVisor bot
21d44fa391 refactor: DoH use fragment setting params 2022-07-21 21:40:28 +08:00
gVisor bot
2943e3982c fix: default nameserver cannot use doh of pure IP 2022-07-12 13:05:59 +08:00
gVisor bot
32843596e1 fix: default nameserver cannot use non-standard port of doh 2022-07-11 22:05:37 +08:00
gVisor bot
91e1649822 feat: add fingerprint for tls verify 2022-07-10 20:44:24 +08:00
gVisor bot
29254c6afd Merge branch 'h3' into Alpha 2022-07-06 20:54:10 +08:00
gVisor bot
db4fb69b10 refactor: h3 for doh 2022-07-06 20:53:34 +08:00
gVisor bot
6ceb2eb505 chore: clash.mini hack. 2022-07-04 18:53:24 +08:00
gVisor bot
12338f285b feat: try h3 connect DOH, failed will fall back h2; turn on with dns.prefer-h3: true 2022-07-03 21:59:47 +08:00
gVisor bot
14dafb2d5c feat: add param general.enable-process, it will always find process or uid, default value is false 2022-06-14 23:08:07 +08:00
gVisor bot
17769e1a8f fix: udp listen use udp4 when general.ipv6 is false; general.ipv6 default value is true 2022-06-14 12:36:05 +08:00
gVisor bot
40c33e8fce chore: doq default port change to 853, ALPN use doq 2022-06-12 17:53:11 +08:00
gVisor bot
7e4d679da6 refactor: clear linkname,reduce cycle dependencies,transport init geosite function 2022-06-10 13:38:19 +08:00
gVisor bot
e488342451 fix: upgrade to yaml v3 2022-06-09 17:59:17 +08:00
gVisor bot
d072d06e49 chore: 调整目录与包名一致 2022-06-04 03:25:33 +08:00
gVisor bot
a049744438 chore: 优化GeoSite初始化代码 2022-06-04 02:58:14 +08:00
gVisor bot
bbf0f1af4b Feature: can set custom interface for dns nameserver (#2126) 2022-06-01 10:50:54 +08:00
gVisor bot
b44848c8dc fix: npe 2022-05-28 23:29:03 +08:00
gVisor bot
050a47b15e chore: 更换GeoData下载地址
Signed-off-by: Meta <maze.y2b@gmail.com>
2022-05-27 18:32:23 +08:00
gVisor bot
649177855a Chore: upgrade to yaml v3 2022-05-26 17:47:05 +08:00
gVisor bot
6f2dc0336f feat: RESTful API support update Geo file
and can set update url by user, eg.
geox-url:
  geoip: "http://xxxx/gepip.dat"
  mmdb: "http://xxxx/country.mmdb"
  geosite: "http://xxxx/geosite.dat"
2022-05-24 15:04:13 +08:00
gVisor bot
09690122e4 feat: RESTful API support disable sniffer 2022-05-24 13:44:52 +08:00
gVisor bot
2a00f57fd9 feat: 安卓恢复进程规则,可通过enable-process开关,默认true 2022-05-19 20:44:09 +08:00
gVisor bot
d3e20a87de fix: 热重载Tun配置 2022-05-19 19:19:19 +08:00
gVisor bot
18ee3ceac5 chore: Android auto-detect-interface plus 2022-05-18 12:00:57 +08:00
gVisor bot
0eecb03bfa refactor: remove useless code 2022-05-16 17:29:08 +08:00
gVisor bot
d86deea7f1 refactor: new way to get interface for android 2022-05-16 17:06:44 +08:00
gVisor bot
7facfc5486 revert: yaml v2 2022-05-14 23:36:19 +08:00
gVisor bot
c3e7173187 chore: remove Script mode residual code. 2022-05-14 13:00:33 +08:00
gVisor bot
9d0b06a173 chore: update dependencies 2022-05-08 00:47:01 +08:00
gVisor bot
29f1787a4d chore: add default router when tun enable 2022-05-03 23:58:11 +08:00
gVisor bot
cb06de7d15 chore: sniffer param skip-sni renamed to ship-domain, old param will be removed in the release version 2022-05-03 23:10:59 +08:00
gVisor bot
4d8ba83abe fix: patch update support tun 2022-05-03 19:31:00 +08:00
gVisor bot
41f430e981 chore: adjust sniffer constant 2022-05-02 08:49:18 +08:00
gVisor bot
683198dcfe fix: dns specified interface does not change 2022-04-28 22:40:06 +08:00