From d0b8a6f100dbba4a2e446a6e90a1c1dcc9d94370 Mon Sep 17 00:00:00 2001 From: local Date: Sun, 14 Apr 2024 18:16:06 +0800 Subject: [PATCH] do not apply transparent to socket mod on ipv6 --- root/etc/init.d/luci_v2ray | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/root/etc/init.d/luci_v2ray b/root/etc/init.d/luci_v2ray index d28403d..2591913 100755 --- a/root/etc/init.d/luci_v2ray +++ b/root/etc/init.d/luci_v2ray @@ -705,10 +705,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 --transparent -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 -j V2RAY_DIVERT COMMIT EOF