From 9faef6a9696ae5bbcdd5cb214e021ebce8eaac68 Mon Sep 17 00:00:00 2001 From: local Date: Mon, 8 Apr 2024 03:25:44 +0800 Subject: [PATCH] add DIVERT back according to https://github.com/XTLS/Xray-core/issues/3215 --- root/etc/init.d/luci_v2ray | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/root/etc/init.d/luci_v2ray b/root/etc/init.d/luci_v2ray index 8b803bf..6c2a957 100755 --- a/root/etc/init.d/luci_v2ray +++ b/root/etc/init.d/luci_v2ray @@ -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 @@ -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