Skip to content

Commit

Permalink
at ipv6, DIVERT/socket mod has bug
Browse files Browse the repository at this point in the history
  • Loading branch information
local committed Apr 14, 2024
1 parent f1f1c35 commit 4c23881
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions root/etc/init.d/luci_v2ray
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ add_v2ray_tproxy_rules() {
-A V2RAY_MASK -j RETURN -m mark --mark 0x2/0x3
-A V2RAY_MASK -j RETURN -m set --match-set $ipset_src_direct src
-A V2RAY_MASK -j RETURN -m set --match-set $ipset_dst_direct dst
-A V2RAY_MASK -p tcp $ext_args -j MARK --set-mark 0x2/0x3
-A V2RAY_MASK -p tcp $ext_args -j MARK --set-mark 0x1/0x3
$(
if [ -n "$addition" ]; then
if [ "$addition" = "dns" ]; then
Expand Down Expand Up @@ -704,10 +704,11 @@ add_v2ray_tproxy_rules() {
)
-A OUTPUT -j V2RAY_MASK
:V2RAY_DIVERT -
-A V2RAY_DIVERT -j MARK --set-mark 0x1/0x3
-A V2RAY_DIVERT -j ACCEPT
-I PREROUTING -p tcp -m socket --transparent -j V2RAY_DIVERT
# look like divert has bug
# :V2RAY_DIVERT -
# -A V2RAY_DIVERT -j MARK --set-mark 0x1/0x3
# -A V2RAY_DIVERT -j ACCEPT
# -I PREROUTING -p tcp -m socket --transparent -j V2RAY_DIVERT
COMMIT
EOF

Expand Down

0 comments on commit 4c23881

Please sign in to comment.