Commit graph

317 commits

Author SHA1 Message Date
gVisor bot
54434df43f fix: RESTful API empty tun device name 2022-11-03 18:04:37 +08:00
gVisor bot
0fdcd0f5d4 fix: try to support android hotspot when using tun 2022-11-03 12:58:21 +08:00
gVisor bot
9f2fb858c3 chore: netlink duplicate contains 2022-11-02 23:58:51 +08:00
gVisor bot
846c2978fd chore: retrying for "Cannot create a file when that file already exists." 2022-10-14 08:27:34 +08:00
gVisor bot
5aea89f2fd chore: add sing-tun's custom route support 2022-10-13 19:26:14 +08:00
gVisor bot
53afe73875 fix: set default tun udp timeout to 5 minutes 2022-10-10 22:10:36 +08:00
gVisor bot
5574d8e688 fix: tun stack shown 2022-10-10 19:02:57 +08:00
gVisor bot
9ca325bc13 fix: flush default interface when tun config hasn't change 2022-10-10 09:32:42 +08:00
gVisor bot
339176b4dc fix: correct sing-tun's rAddr 2022-10-09 13:16:13 +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
1bd6a4c4c2 fix: macos's tunName 2022-10-07 06:57:03 +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
7e67fb2f58 fix: dns tcp hijack not working 2022-10-05 13:29:10 +08:00
gVisor bot
86b86c69d0 adjust: routes for windows 2022-10-01 23:30:41 +08:00
gVisor bot
48f30b01ef fix: ebpf support 2022-08-22 23:17:41 +08:00
gVisor bot
08f414e9c7 Chore: remove old cache implementation 2022-08-17 11:43:20 +08:00
gVisor bot
42c3611715 Fix: no_gviosr tags 2022-08-12 12:53:11 +08:00
gVisor bot
40cab0094e Merge remote-tracking branch 'origin/Alpha' into Alpha 2022-08-12 03:36:15 +08:00
gVisor bot
8f690aef03 Chore: clean code 2022-08-12 03:35:49 +08:00
gVisor bot
3de41fb309 Fixed: gViosr func 2022-08-12 03:34:59 +08:00
gVisor bot
4c0ef4ee45 Chore: gVisor use bufferv2 2022-08-11 23:47:45 +08:00
gVisor bot
c1bd1de57e rm EBpf tun && disable android ebpf 2022-08-08 10:21:16 +08:00
gVisor bot
2c10af7b1d support ebpf 2022-07-29 09:08:35 +08:00
gVisor bot
9daef5bf44 inbound tfo 2022-07-22 15:16:09 +08:00
gVisor bot
c768ae8b54 fix: no_gvisor compile failed for target linux 2022-07-16 19:35:52 +08:00
gVisor bot
19441f5e4d Fix: try to unmap lAddr on tproxy udp listener 2022-06-29 23:36:45 +08:00
gVisor bot
0d18fcef82 Chore: update tproxy udp packet read logic 2022-06-12 19:37:51 +08:00
gVisor bot
11834c4592 fix: fix upgrade header detect (#2134) 2022-06-09 17:57:48 +08:00
gVisor bot
739502ae30 refactor: 添加no_gvisor 编译tag, 剔除gvisor stack支持, 方便在arm设备上debug 2022-06-03 20:07:30 +08:00
gVisor bot
f7009e7f0b fix: OpenClash 回环 2022-06-01 12:32:45 +08:00
gVisor bot
ba5113ad16 chore: 调整内置winTun.dll部分 2022-06-01 12:01:08 +08:00
gVisor bot
fb97733d55 fix: TUN file exists 2022-05-31 10:34:13 +08:00
gVisor bot
abf999d80f fix: compile 2022-05-29 20:02:30 +08:00
gVisor bot
54c131e558 refactor: 使用 netlink 获取默认网卡 2022-05-29 15:35:08 +08:00
gVisor bot
32d332b873 refactor: 使用 netlink 配置 ip rule 2022-05-29 15:03:27 +08:00
gVisor bot
0c3071f85c fix: route on android 2022-05-28 23:29:22 +08:00
gVisor bot
b44848c8dc fix: npe 2022-05-28 23:29:03 +08:00
gVisor bot
1cfae4aba8 refactor: 合并部分android代码入linux && ip 使用netlink配置路由 2022-05-28 21:58:29 +08:00
gVisor bot
09690122e4 feat: RESTful API support disable sniffer 2022-05-24 13:44:52 +08:00
gVisor bot
fa70694e4d refactor: new way to get interface change even for linux 2022-05-20 21:44:19 +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
27606d2ad2 chore: remove noisy log 2022-05-16 18:20:13 +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
470cf14251 Fix: fix upgrade header detect (#2134) 2022-05-15 09:12:53 +08:00
gVisor bot
4ccedb34e8 fix: provider auto update 2022-05-08 00:04:16 +08:00
gVisor bot
d149ba688f fix: wrong parameters 2022-05-04 01:04:43 +08:00
gVisor bot
079a830209 Merge remote-tracking branch 'Meta/Alpha' into Alpha
# Conflicts:
#	listener/tun/ipstack/commons/router_linux.go
2022-05-04 01:04:11 +08:00
gVisor bot
e9bd2d8d68 fix: default router with fakeIP when tun enable 2022-05-04 00:59:04 +08:00
gVisor bot
6ab536c431 fix: default router with fakeIP when tun enable 2022-05-04 00:36:44 +08:00
gVisor bot
29f1787a4d chore: add default router when tun enable 2022-05-03 23:58:11 +08:00
gVisor bot
4d8ba83abe fix: patch update support tun 2022-05-03 19:31:00 +08:00
gVisor bot
f1b3ce54be chore: workflow 2022-05-02 00:59:41 +08:00
gVisor bot
2b4b759f63 fix: auto-route priority wlan0 in Android 2022-04-30 17:43:37 +08:00
gVisor bot
b15e47c580 fixup! chore: system err log 2022-04-28 12:37:53 +08:00
gVisor bot
dd1e7078c7 chore: system err log 2022-04-27 22:54:12 +08:00
gVisor bot
746e1382b5 chore: Adjust the tcp-concurrent and sniffer log 2022-04-27 15:22:42 +08:00
gVisor bot
94e101033c fix: undefined parameter 2022-04-27 14:42:58 +08:00
gVisor bot
b2a2d2ca75 Chore: http 2022-04-27 12:52:11 +08:00
gVisor bot
4aaa9f8ca8 Fix: http proxy Upgrade behavior (#2097) 2022-04-27 12:38:31 +08:00
gVisor bot
eaca213ea7 Fix: http proxy Upgrade behavior (#2097) 2022-04-25 19:50:20 +08:00
gVisor bot
7421c5f70a fix: gvisor panic 2022-04-25 18:39:45 +08:00
gVisor bot
ed45c53179 Chore: increase nattable capacity 2022-04-25 13:18:41 +08:00
gVisor bot
ad67a1c34c Chore: use generics as possible 2022-04-25 13:18:30 +08:00
gVisor bot
086772b721 fix: logic of auto-detect-interface 2022-04-23 23:42:42 +08:00
gVisor bot
42601721a6 refactor: tidy auto-route code 2022-04-23 17:31:16 +08:00
gVisor bot
61491c8627 fix: hotspot for android 2022-04-22 22:25:45 +08:00
gVisor bot
ba507fc5e0 Chore: wait for system stack to close 2022-04-22 12:44:51 +08:00
gVisor bot
751f3e8abd Chore: fix typos 2022-04-22 12:42:20 +08:00
gVisor bot
113d84b438 [fix] auto-route for android 2022-04-21 17:47:04 +08:00
gVisor bot
e2dbbb7cfe Refactor: metadata use netip.Addr 2022-04-20 22:52:05 +08:00
gVisor bot
915f40e71b Chore: IpToAddr 2022-04-20 22:09:16 +08:00
gVisor bot
a4654d30d5 chore: upgrade dependencies 2022-04-20 01:31:33 +08:00
gVisor bot
e54d403a1e Chore: adjust ipstack 2022-04-13 02:20:53 +08:00
gVisor bot
bc33cd5630 Refactor: fakeip pool use netip.Prefix, supports ipv6 range 2022-04-12 20:32:08 +08:00
gVisor bot
950e638222 Chore: fix typos 2022-04-12 19:08:13 +08:00
gVisor bot
58c7157f71 Refactor: cache use generics 2022-04-12 18:44:10 +08:00
gVisor bot
a4bff632bc revert:the name of tun device on mac 2022-04-05 23:04:59 +08:00
gVisor bot
40ee33f062 refactor: Some adjustments 2022-04-03 19:15:16 +08:00
gVisor bot
b523e9e927 Merge remote-tracking branch 'Meta/Alpha' into Alpha 2022-03-30 13:19:05 +08:00
gVisor bot
05125430dd Merge remote-tracking branch 'Pro-Plus/with-tun' into Alpha
# Conflicts:
#	README.md
#	adapter/outbound/trojan.go
#	adapter/outbound/vless.go
#	transport/trojan/trojan.go
2022-03-30 13:15:45 +08:00
gVisor bot
7df4799623 Merge remote-tracking branch 'Clash-dev/dev' into Alpha 2022-03-30 12:41:16 +08:00
gVisor bot
5911d62fba Chore: adjust VLESS 2022-03-29 23:50:41 +08:00
gVisor bot
cad1484707 Chore: adjust tun_wireguard cache buffer 2022-03-29 07:24:11 +08:00
gVisor bot
06def71944 Chore: merge branch 'ogn-dev' into with-tun 2022-03-29 07:22:52 +08:00
gVisor bot
4fe3b781b0 [Chore]升级项目依赖
[Chore]隐藏TUN模式在system堆栈启动时弹窗
2022-03-28 19:48:32 +08:00
gVisor bot
6dc80f4b93 Fix: convert size to unit32 in getoridst to solve some mips64 devices cannot get redirect origin dst (#2041)
Change-Id: I40aa73dcea692132e38db980320a8a07ed427fe6

Co-authored-by: Zhao Guowei <zhaoguowei@bytedance.com>
2022-03-28 14:48:51 +08:00
gVisor bot
7b4e06816f Merge remote-tracking branch 'tun/with-tun' into Alpha 2022-03-28 10:51:59 +08:00
gVisor bot
323dea4352 Chore: adjust gVisor stack 2022-03-28 03:25:55 +08:00
gVisor bot
3fd2aa1832 Merge remote-tracking branch 'tun/with-tun' into Alpha 2022-03-25 14:20:05 +08:00
gVisor bot
cd7aad233e Chore: adjust tun RelayDnsPacket 2022-03-25 04:09:11 +08:00
gVisor bot
e16bc7f69a Fix: udp 4In6 of tun system stack 2022-03-25 03:42:46 +08:00
gVisor bot
a52743bd28 [SKIP CI]
Merge remote-tracking branch 'Pro-Plus/with-tun' into Alpha

# Conflicts:
#	README.md
#	hub/route/server.go
2022-03-23 13:23:34 +08:00
gVisor bot
6addcc260f bypass support for auto-iptables 2022-03-23 11:36:13 +08:00
gVisor bot
22db48dd37 [skip ci]
# Conflicts:
#	.github/workflows/linter.yml
#	.github/workflows/release.yml
#	config/config.go
#	go.mod
#	go.sum
#	hub/executor/executor.go
2022-03-23 01:41:42 +08:00
gVisor bot
b7798b8c9d Chore: adjust the signal 2022-03-22 18:40:33 +08:00
gVisor bot
56dc81ea73 Refactor: iptables auto config, disabled by default 2022-03-22 05:38:42 +08:00
gVisor bot
e773595e33 auto change interface for tproxy 2022-03-21 19:51:27 +08:00
gVisor bot
6218abbacc Fix: retry create TUN on Windows 2022-03-20 21:27:33 +08:00
gVisor bot
e07c3a7fe0 Fix: wintun dns address 2022-03-20 04:19:48 +08:00
gVisor bot
29b8076c75 Merge remote-tracking branch 'yaling888/with-tun' into Alpha
# Conflicts:
#	listener/tun/tun_adapter.go
2022-03-19 22:37:51 +08:00
gVisor bot
e1d1a27ca8 [内容]
1.wintun.dll 0.14.1
2022-03-19 01:54:21 +08:00
gVisor bot
f18800de42 [内容]
1.autoIptables 开关
2.go.mod 调整
3.processName 调整
4.makefile 调整
5.Tun模块 部分代码调整
2022-03-19 01:11:27 +08:00
gVisor bot
f3304cf245 Feature: auto detect interface if switch network 2022-03-18 17:03:50 +08:00
gVisor bot
6d4942e90b Fix: build 2022-03-18 05:21:28 +08:00
gVisor bot
598ec35701 Chore: make fake ip pool start with the third ip 2022-03-18 05:17:47 +08:00
gVisor bot
b8c9a1bf6d update 2022-03-17 23:24:07 +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
9ef90782ce Chore: use gateway address of fake ip pool as the TUN device address 2022-03-17 07:41:18 +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
6cddf49d6e [Build test] 1.18
[Updata] wintun.dll
2022-03-17 00:12:11 +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
9e3260a172 Fix: should keep alive in tcp relay 2022-03-16 18:17:28 +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
d3658311d1 [Skip CI] 2022-03-15 11:47:42 +08:00
gVisor bot
e252d96095 Chore: use slice instead of map for system stack udp receiver queue 2022-03-15 05:19:29 +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
00fdc33c3a [Fixed] memory leak 2022-03-13 18:35:55 +08:00
gVisor bot
b76d0e2109 [Fixed] handle network protocol[0] panic (not pretty) 2022-03-13 18:34:49 +08:00
gVisor bot
cb7e7fa23f Fix: should use the correct gateway for TUN system stack 2022-03-13 17:48:43 +08:00
gVisor bot
dc0339e399 Chore: embed the RuleExtra into Base 2022-03-13 01:22:05 +08:00
gVisor bot
c8861d83f8 Chore: bump to go1.18rc1, use netip.Addr to replace net.IP with system TUN stack 2022-03-12 02:16:13 +08:00
gVisor bot
0175b103d0 Chore: refactor TUN 2022-03-09 05:08:35 +08:00
gVisor bot
f8e9902530 Chore: code style 2022-03-09 00:32:21 +08:00
gVisor bot
4389f8918e [Fixed] skip maybe invaild ip data packet 2022-03-04 22:32:33 +08:00
gVisor bot
802c412939 Merge branch 'ogn-dev' into with-tun 2022-03-03 04:17:00 +08:00
gVisor bot
e488aaff9d Chore: use SIMD for AMD64 and ARM64 system stack checksum 2022-02-23 14:51:04 +08:00
gVisor bot
e04b6de377 Chore: use "-m mark --mark" instead of "-m owner --uid-owner" 2022-02-23 14:19:59 +08:00
gVisor bot
32db97450b Fix: listener tcp keepalive & reuse net.BufferedConn (#1987) 2022-02-23 11:22:46 +08:00
gVisor bot
7f0de1861a Merge from remote branch 2022-02-23 01:00:27 +08:00
gVisor bot
2a9b3e6447 Chore: upgrade gvisor 2022-02-22 22:30:41 +08:00
gVisor bot
940f442478 [FEAT]
1.Add geodata loader mode switch
yaml   geodata-loader: memconservative / standard
2.Add AutoIptables mode switch
yaml   auto-iptables: true
3.support trojan xtls
4.update gvisor
5.Fix process
6.Fix darwin autoRoute
2022-02-05 21:33:49 +08:00
gVisor bot
0aead76a23 [Feat]
update gvisor
Chore: use "-m mark --mark" instead of "-m owner --uid-owner"
2022-02-04 06:11:24 +08:00
gVisor bot
15ed2ca588 Merge remote-tracking branch 'pro-plus/plus-pro' into Feature
# Conflicts:
#	.github/workflows/Alpha.yml
#	.github/workflows/codeql-analysis.yml
#	.github/workflows/docker.yml
#	.github/workflows/linter.yml
#	.github/workflows/stale.yml
#	Makefile
#	README.md
#	adapter/outbound/vless.go
#	component/dialer/dialer.go
#	component/geodata/geodata.go
#	component/geodata/router/condition.go
#	config/config.go
#	config/initial.go
#	constant/metadata.go
#	constant/path.go
#	constant/rule.go
#	constant/rule_extra.go
#	dns/filters.go
#	go.mod
#	go.sum
#	hub/executor/executor.go
#	hub/route/configs.go
#	listener/listener.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/dev_windows_extra.go
#	listener/tun/dev/wintun/dll_windows.go
#	listener/tun/dev/wintun/session_windows.go
#	listener/tun/ipstack/gvisor/tun.go
#	listener/tun/ipstack/gvisor/tundns.go
#	listener/tun/ipstack/stack_adapter.go
#	listener/tun/ipstack/system/tun.go
#	listener/tun/tun_adapter.go
#	main.go
#	rule/base.go
#	rule/common/process.go
#	rule/geoip.go
#	rule/parser.go
#	rule/port.go
#	test/go.mod
#	test/go.sum
#	test/vless_test.go
#	transport/vless/xtls.go
#	tunnel/tunnel.go
2022-02-04 05:30:21 +08:00
gVisor bot
aa9f8bf28e [Feat]
update gvisor
Chore: use "-m mark --mark" instead of "-m owner --uid-owner"
2022-02-04 04:47:40 +08:00
gVisor bot
fdb0a3f5a8 Chore: use "-m mark --mark" instead of "-m owner --uid-owner" 2022-02-02 21:59:44 +08:00
gVisor bot
a27851ae17 Chore: upgrade gvisor 2022-02-01 02:00:10 +08:00
gVisor bot
917c1cd699 Revert "Chore: upgrade gvisor version"
This reverts commit d633e3d96e.
2022-01-30 00:45:02 +08:00
gVisor bot
18e0f75e9e Chore: upgrade gvisor version 2022-01-28 22:42:58 +08:00
gVisor bot
0867bb8b8a [Fixed] auto-route support use ip route 2022-01-22 13:24:31 +08:00
gVisor bot
3c645b4f54 [Refactor]
1.allow maybe empty group
2.use COMPATIBLE(DIRECT alias) when proxy group is empty
3.http provider pass through tunnel
2022-01-18 21:09:36 +08:00
gVisor bot
0a96994452 [Refactor] gvisor support hijack dns list
dns-hijack:
 - 1.1.1.1
 - 8.8.8.8:53
 - tcp://1.1.1.1:53
 - udp://223.5.5.5
 - 10.0.0.1:5353
2022-01-09 00:35:45 +08:00
gVisor bot
1c1eb6bdfb [Fixed] Remove the Linux automatic routing configuration Change the name of the Linux network card to utun 2022-01-08 16:57:59 +08:00
gVisor bot
28d8bf17cb [Style] Adjust delete routes on macos 2022-01-08 16:55:02 +08:00
gVisor bot
27f0f65bfb [Style] Adjust the routing table of tun on mac 2022-01-07 22:40:05 +08:00