Skip to content

Commit d840e05

Browse files
author
local
committed
DIVERT only match transparent socket
1 parent 2045b60 commit d840e05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zh_CN/app/tproxy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,9 @@ iptables -t mangle -A OUTPUT -j V2RAY_MASK
280280
281281
# 新建 DIVERT 规则,避免已有连接的包二次通过 TPROXY,理论上有一定的性能提升
282282
iptables -t mangle -N DIVERT
283-
iptables -t mangle -A DIVERT -j MARK --set-xmark 0x1/0x3
283+
iptables -t mangle -A DIVERT -j MARK --set-mark 0x1/0x3
284284
iptables -t mangle -A DIVERT -j ACCEPT
285-
iptables -t mangle -I PREROUTING -p tcp -m socket -j DIVERT
285+
iptables -t mangle -I PREROUTING -p tcp -m socket --transparent -j DIVERT
286286
```
287287

288288
执行了以上 ip 和 iptables 命令后,局域网同网段的设备以及网关本身就可以直接翻墙了。

0 commit comments

Comments
 (0)