Commit graph

273 commits

Author SHA1 Message Date
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
0340ab8ffa chore: adjust the case of Program names and HttpRequest UA 2023-01-14 16:17:10 +08:00
gVisor bot
ace55047ab chore: Refine process code 2023-01-14 16:16:59 +08:00
gVisor bot
ec0136af1b chore: rebuild relay 2022-12-19 21:34:07 +08:00
gVisor bot
f09afc8d8a chore: support relay native udp when using ss and ssr protocol 2022-12-19 17:02:04 +08:00
gVisor bot
07519a2344 fix: reorder metadata 2022-12-06 08:23:30 +08:00
gVisor bot
6885d8593c chore: listeners support shadowsocks/vmess 2022-12-05 10:12:53 +08:00
gVisor bot
37703c5e8f chore: rebuild add adapter/inbound.Addition to simply Listener.New apis 2022-12-05 00:20:50 +08:00
gVisor bot
75af900fc5 fix: correct C.Metadata 2022-12-04 22:08:20 +08:00
gVisor bot
3b1b077f80 chore: rebuild InboundListener 2022-12-04 21:53:13 +08:00
gVisor bot
e01cfc5627 chore: support skip the same config Listeners' Close and Listen 2022-12-04 17:20:24 +08:00
gVisor bot
1bcd6cac83 fix: close linstener 2022-12-04 15:15:23 +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
4f1c2dfbaa chore: restful api display fast-open for tuic and hysteria 2022-11-29 00:56:27 +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
0f4a0a7275 chore: add tuic outbound
close #133
2022-11-25 08:08:14 +08:00
gVisor bot
44e8aad7eb Feature: add tunnels 2022-11-20 21:30:55 +08:00
gVisor bot
722e8a6c27 Merge branch 'dev' of https://github.com/Dreamacro/clash into Alpha 2022-11-12 20:43:48 +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
a6e05e040b chore: support IN-PORT rule 2022-11-11 23:36:06 +08:00
gVisor bot
e4d211d0df chore: shadowsocks listener support old cipher 2022-11-11 22:44:44 +08:00
gVisor bot
4abbe8ce65 chore: add vmess, shadowsocks, tcptun and udptun listener 2022-11-11 20:56:08 +08:00
gVisor bot
d5d5dc2303 chore: remove AddrType on Metadata 2022-11-11 09:19:50 +08:00
gVisor bot
fb54c3b589 chore: support wireguard outbound 2022-11-09 18:44:06 +08:00
gVisor bot
350fe79865 Fix: a shared fastSingle.Do() may cause providers untouched (#2378) 2022-11-04 13:11:01 +08:00
gVisor bot
a07205739f fix: UrlTest's torch not work
close #232
2022-10-31 16:45:14 +08:00
gVisor bot
744c058932 fix: lazy check 2022-10-30 23:08:18 +08:00
gVisor bot
cac6e6cc7e chore: parse user's hosts before remoteDial 2022-10-29 09:03:00 +08:00
gVisor bot
5574d8e688 fix: tun stack shown 2022-10-10 19:02:57 +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
2022605546 feat: add ip-version param 2022-08-28 13:41:43 +08:00
gVisor bot
65d543329e Fix: nil pointer 2022-08-12 12:49:35 +08:00
gVisor bot
40cab0094e Merge remote-tracking branch 'origin/Alpha' into Alpha 2022-08-12 03:36:15 +08:00
gVisor bot
2f09805ea6 Chore: clean code 2022-08-12 03:04:58 +08:00
gVisor bot
0b00214ace Chore: Migration 1.19 2022-08-12 00:07:13 +08:00
gVisor bot
04910ba4a0 fix: remove extra and the actual original IDNA domain name is no longer stored, for reduce memory 2022-08-11 21:50:16 +08:00
gVisor bot
e96e586a37 Migration: go1.19 2022-08-07 21:45:50 +08:00
gVisor bot
2c10af7b1d support ebpf 2022-07-29 09:08:35 +08:00
gVisor bot
054641f8c1 refactor: optimize nodes caching 2022-07-20 08:53:54 +08:00
gVisor bot
5b51b8f727 Change: remove AddrType on Metadata (#2199) 2022-07-05 20:26:43 +08:00
gVisor bot
41d0aac5ec fix: group filter touch provider 2022-06-07 17:19:25 +08:00
gVisor bot
3c5b69b884 feat: add hysteria 2022-06-07 13:46:54 +08:00
gVisor bot
5cefface6b chore: 启动参数v,查看版本同时打印使用的tags 2022-06-03 20:23:53 +08:00
gVisor bot
2ef1163f3d feat: IP-SUFFIX
eg. IP-SUFFIX,0.0.0.124/6,匹配ip二进制后四位(IP-CIDR的倒序),支持ipv6
2022-06-02 12:53:19 +08:00
gVisor bot
b0f7b9e4e0 feat: proxies group URLTest api 2022-05-30 22:07:09 +08:00
gVisor bot
f30721e3bf refactor: 优化UDP远程目标获取 2022-05-26 23:41:09 +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
ba7e0887bd feat: IN-TYPE rule support
eg. IN-TYPE,SOCKS/REDIR/INNER,Proxy
support list: HTTP HTTPS SOCKS SOCKS4 SOCKS5 REDIR TPROXY TUN INNER
2022-05-20 23:17:16 +08:00
gVisor bot
cae1e23735 chore: 暴露数据给前端 2022-05-17 16:47:21 +08:00
gVisor bot
c260affd46 refactor: 重构StickySessions 2022-05-17 13:28:54 +08:00
gVisor bot
c3e7173187 chore: remove Script mode residual code. 2022-05-14 13:00:33 +08:00
gVisor bot
319884469d feat: Expose remote destination (udp proxy maybe domain of node) 2022-05-04 16:57:08 +08:00
gVisor bot
4eeb935da7 style: uid log tidy 2022-05-02 19:52:34 +08:00
gVisor bot
41f430e981 chore: adjust sniffer constant 2022-05-02 08:49:18 +08:00
gVisor bot
5ddc0165f1 fix code mistake 2022-05-02 05:34:20 +08:00
gVisor bot
5041191a44 feat: sniffer support http 2022-05-02 05:10:18 +08:00
gVisor bot
e2c75161b1 support udp in relay if last proxy could udp-over-tcp 2022-04-30 11:36:42 +08:00
gVisor bot
265fb0dabd refactor: field name 2022-04-28 23:10:08 +08:00
gVisor bot
e86ab75bb0 refactor: optimize the performance of filter in proxy-group 2022-04-28 19:01:13 +08:00
gVisor bot
f8c4b53620 fix: problems caused when uid is 0 2022-04-28 11:51:40 +08:00
gVisor bot
62dcfed9c2 pref: uid style in log 2022-04-23 17:37:50 +08:00
gVisor bot
162dcd56e6 feat: cache uid 2022-04-23 12:11:26 +08:00
gVisor bot
a317531428 Revert: "fix: proxy-groups filter logic"
This reverts commit 8a85c63b08.
2022-04-22 18:56:35 +08:00
gVisor bot
5386a5f00e fix: proxy-groups filter logic 2022-04-22 17:27:55 +08:00
gVisor bot
8054749b40 feat: support uid rule
eg. UID,1000/5000-6000,Proxy
2022-04-22 16:27:51 +08:00
gVisor bot
c450c09e92 Merge remote-tracking branch 'origin/Alpha' into Alpha 2022-04-22 15:58:57 +08:00
gVisor bot
751f3e8abd Chore: fix typos 2022-04-22 12:42:20 +08:00
gVisor bot
4ea3422e5f [fix] logic 2022-04-21 18:56:33 +08:00
gVisor bot
e2dbbb7cfe Refactor: metadata use netip.Addr 2022-04-20 22:52:05 +08:00
gVisor bot
b6ea3eac16 Update metadata.go
revet commit 13012a9
2022-04-10 00:47:22 +08:00
gVisor bot
b2becaffe3 feat: sniffer support
sniffer:
  enable: true
  force: false # Overwrite domain
  sniffing:
    - tls
2022-04-09 22:30:36 +08:00
gVisor bot
e9a5be05a4 Merge remote-tracking branch 'yaling888/with-tun' into Alpha 2022-04-05 14:44:40 +08:00
gVisor bot
3a6569aca2 fix: when ssh connect to a ip, if this ip map to a domain in clash, change ip to host may redirect to a diffrent ip 2022-04-05 03:26:23 +08:00
gVisor bot
eea2e3def9 [commit]
[Feat] add Pass type for support temporary skip rule set
2022-03-27 23:44:51 +08:00
gVisor bot
d9a308072a Update version.go
[BUILD TEST]
2022-03-22 01:39:00 +08:00
gVisor bot
db31cfbd7f Merge remote-tracking branch 'yaling888/with-tun' into Alpha
# Conflicts:
#	.github/workflows/codeql-analysis.yml
#	.github/workflows/linter.yml
#	.github/workflows/release.yml
#	Makefile
#	README.md
#	adapter/outbound/vless.go
#	component/geodata/memconservative/cache.go
#	component/geodata/router/condition.go
#	component/geodata/router/condition_geoip.go
#	component/geodata/standard/standard.go
#	component/geodata/utils.go
#	config/config.go
#	config/initial.go
#	constant/metadata.go
#	constant/path.go
#	constant/rule.go
#	constant/rule_extra.go
#	dns/client.go
#	dns/filters.go
#	dns/resolver.go
#	go.mod
#	go.sum
#	hub/executor/executor.go
#	hub/route/configs.go
#	listener/listener.go
#	listener/tproxy/tproxy_linux_iptables.go
#	listener/tun/dev/dev.go
#	listener/tun/dev/dev_darwin.go
#	listener/tun/dev/dev_linux.go
#	listener/tun/dev/dev_windows.go
#	listener/tun/dev/wintun/config.go
#	listener/tun/dev/wintun/dll_windows.go
#	listener/tun/dev/wintun/session_windows.go
#	listener/tun/dev/wintun/wintun_windows.go
#	listener/tun/ipstack/commons/dns.go
#	listener/tun/ipstack/gvisor/tun.go
#	listener/tun/ipstack/gvisor/tundns.go
#	listener/tun/ipstack/gvisor/utils.go
#	listener/tun/ipstack/stack_adapter.go
#	listener/tun/ipstack/system/dns.go
#	listener/tun/ipstack/system/tcp.go
#	listener/tun/ipstack/system/tun.go
#	listener/tun/tun_adapter.go
#	main.go
#	rule/common/base.go
#	rule/common/domain.go
#	rule/common/domain_keyword.go
#	rule/common/domain_suffix.go
#	rule/common/final.go
#	rule/common/geoip.go
#	rule/common/geosite.go
#	rule/common/ipcidr.go
#	rule/common/port.go
#	rule/parser.go
#	rule/process.go
#	test/go.mod
#	test/go.sum
#	transport/vless/xtls.go
#	tunnel/tunnel.go
2022-03-17 17:41:02 +08:00
gVisor bot
50ab57c72e Merge remote-tracking branch 'clash/dev' into Alpha
# Conflicts:
#	.github/workflows/docker.yml
#	adapter/outboundgroup/fallback.go
#	adapter/outboundgroup/loadbalance.go
#	adapter/outboundgroup/relay.go
#	adapter/outboundgroup/selector.go
#	adapter/outboundgroup/urltest.go
#	config/config.go
#	go.mod
#	go.sum
#	main.go
#	test/go.mod
#	test/go.sum
2022-03-17 01:41:51 +08:00
gVisor bot
aead96abb3 [Build test] 1.18 2022-03-16 23:30:29 +08:00
gVisor bot
6a735b10d7 Migration: go 1.18 2022-03-16 22:00:20 +08:00
gVisor bot
446fd99436 Chore: Merge branch 'ogn-dev' into with-tun 2022-03-16 20:16:30 +08:00
gVisor bot
7a3a4413c9 [build test] 2022-03-16 17:29:09 +08:00
gVisor bot
907c68c9cb Migration: go 1.18 2022-03-16 12:10:13 +08:00
gVisor bot
f7759c1468 Merge remote-tracking branch 'clash/dev' into Alpha
# Conflicts:
#	.github/workflows/codeql-analysis.yml
#	.github/workflows/docker.yml
#	.github/workflows/linter.yml
#	.github/workflows/stale.yml
#	Makefile
#	component/dialer/dialer.go
#	config/config.go
#	constant/metadata.go
#	constant/rule.go
#	rule/common/domain.go
#	rule/common/domain_keyword.go
#	rule/common/domain_suffix.go
#	rule/common/final.go
#	rule/common/ipcidr.go
#	rule/geoip.go
#	rule/parser.go
#	rule/port.go
#	rule/process.go
2022-03-15 23:13:41 +08:00
gVisor bot
fb7ba942c7 Style: code style 2022-03-15 02:55:06 +08:00
gVisor bot
e855cefc13 [Skip CI] 2022-03-15 02:20:19 +08:00
gVisor bot
64bf2454b6 [Skip CI] 2022-03-15 02:06:57 +08:00
gVisor bot
dc0339e399 Chore: embed the RuleExtra into Base 2022-03-13 01:22:05 +08:00
gVisor bot
14b581cd8d Chore: move find connection process to tunnel (#2016) 2022-03-12 19:07:53 +08:00
gVisor bot
0175b103d0 Chore: refactor TUN 2022-03-09 05:08:35 +08:00
gVisor bot
187c3607af Fix the filter under proxy-group to filter other groups 2022-02-23 16:17:29 +08:00
gVisor bot
13db80b23a Feature: process condition for rules 2022-02-23 14:01:53 +08:00
gVisor bot
e5358cd03a Feature: resolve ip with a proxy adapter 2022-02-23 02:38:50 +08:00
gVisor bot
7f0de1861a Merge from remote branch 2022-02-23 01:00:27 +08:00
gVisor bot
f5933b91f1 [build] 2022-02-06 01:59:35 +08:00
gVisor bot
cdc8baf44e Merge branch 'Dev' into Feature
# Conflicts:
#	Makefile
2022-02-04 18:44:35 +08:00