Skip to content

Commit

Permalink
add DIVERT back
Browse files Browse the repository at this point in the history
  • Loading branch information
local committed Apr 7, 2024
1 parent bc4c6be commit b406ea2
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions root/etc/init.d/luci_v2ray
Original file line number Diff line number Diff line change
Expand Up @@ -646,11 +646,10 @@ add_v2ray_tproxy_rules() {
)
-A OUTPUT -j V2RAY_MASK
# looks 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 -j V2RAY_DIVERT
: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 Expand Up @@ -705,11 +704,10 @@ add_v2ray_tproxy_rules() {
)
-A OUTPUT -j V2RAY_MASK
# 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 -j V2RAY_DIVERT
: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 b406ea2

Please sign in to comment.