From 5f141763880b1e73fcaf8013126cda750d023c48 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Mon, 25 Mar 2024 11:13:21 +0100 Subject: [PATCH] Change proxy firewall priority --- shadowsocks-libev/files/nft-rules/chain.uc | 2 +- shadowsocks-rust/files/nft-rules/chain.uc | 2 +- v2ray-core/files/usr/share/v2ray-rules/chain.uc | 2 +- xray-core/files/usr/share/xray-rules/chain.uc | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/shadowsocks-libev/files/nft-rules/chain.uc b/shadowsocks-libev/files/nft-rules/chain.uc index 3b2cc0813..9da09f27a 100644 --- a/shadowsocks-libev/files/nft-rules/chain.uc +++ b/shadowsocks-libev/files/nft-rules/chain.uc @@ -43,7 +43,7 @@ let type, hook, priority, redir_port; if (proto == "tcp") { type = "nat"; hook = "prerouting"; - priority = -1; + priority = 1; redir_port = o_redir_tcp_port; } else if (proto == "udp") { type = "filter"; diff --git a/shadowsocks-rust/files/nft-rules/chain.uc b/shadowsocks-rust/files/nft-rules/chain.uc index 3b2cc0813..9da09f27a 100644 --- a/shadowsocks-rust/files/nft-rules/chain.uc +++ b/shadowsocks-rust/files/nft-rules/chain.uc @@ -43,7 +43,7 @@ let type, hook, priority, redir_port; if (proto == "tcp") { type = "nat"; hook = "prerouting"; - priority = -1; + priority = 1; redir_port = o_redir_tcp_port; } else if (proto == "udp") { type = "filter"; diff --git a/v2ray-core/files/usr/share/v2ray-rules/chain.uc b/v2ray-core/files/usr/share/v2ray-rules/chain.uc index c0855c674..34075d9c8 100644 --- a/v2ray-core/files/usr/share/v2ray-rules/chain.uc +++ b/v2ray-core/files/usr/share/v2ray-rules/chain.uc @@ -43,7 +43,7 @@ let type, hook, priority, redir_port; if (proto == "tcp") { type = "nat"; hook = "prerouting"; - priority = -1; + priority = 1; redir_port = o_redir_tcp_port; } else if (proto == "udp") { type = "filter"; diff --git a/xray-core/files/usr/share/xray-rules/chain.uc b/xray-core/files/usr/share/xray-rules/chain.uc index cb46ba5e8..be456b014 100644 --- a/xray-core/files/usr/share/xray-rules/chain.uc +++ b/xray-core/files/usr/share/xray-rules/chain.uc @@ -43,7 +43,7 @@ let type, hook, priority, redir_port; if (proto == "tcp") { type = "nat"; hook = "prerouting"; - priority = -1; + priority = 1; redir_port = o_redir_tcp_port; } else if (proto == "udp") { type = "filter";