From 1f0849ec0668e59865c30ab7d89bb2139c270d00 Mon Sep 17 00:00:00 2001 From: zxlhhyccc Date: Wed, 14 Oct 2026 20:08:26 +0800 Subject: [PATCH] luci-app-ssr-plus: fix(ipv6): add missing @gmlan6 rule in nftables backend Problem: ipv6_policy_rules() in ipv6.sh (nftables backend) is missing the gmlan6 match that the iptables backend already has. In router mode, traffic sourced from the game-mode LAN set is not routed through the proxy on IPv6, while IPv4 handles it correctly via the equivalent gmlan rule. Fix: Add add rule inet ss_spec $chain ip6 saddr @gmlan6 ip6 daddr != @CHINA6 goto $target to the router branch of ipv6_policy_rules(), mirroring the IPv4 behaviour in ipset_nft(). Notes: - The rule is placed after "china6 return" and before the unconditional "goto $target" so that China destinations stay direct while non-China gmlan6 sources go through the proxy. - The gfw and all branches are unchanged: gfw already has its own gmlan6 rule, and all routes everything through the proxy anyway. --- luci-app-ssr-plus/Makefile | 2 +- luci-app-ssr-plus/root/usr/share/shadowsocksr/ipv6.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/luci-app-ssr-plus/Makefile b/luci-app-ssr-plus/Makefile index a0b0f839..a619a8ff 100644 --- a/luci-app-ssr-plus/Makefile +++ b/luci-app-ssr-plus/Makefile @@ -31,7 +31,7 @@ LUCI_TITLE:=SS/SSR/V2Ray/Trojan/NaiveProxy/Tuic/ShadowTLS/Hysteria/AnyTLS/Socks5 LUCI_PKGARCH:=all LUCI_DEPENDS:= \ +libuci-lua +lua +luci-compat +dns2tcp +dnsmasq-full \ - +jq +ip-full +lua-neturl +libuci-lua +microsocks +ipt2socks +lyaml \ + +ip-full +lua-neturl +libuci-lua +microsocks +ipt2socks +lyaml \ +resolveip +curl +nping \ +PACKAGE_$(PKG_NAME)_INCLUDE_ChinaDNS_NG:chinadns-ng \ +PACKAGE_$(PKG_NAME)_INCLUDE_MosDNS:mosdns \ diff --git a/luci-app-ssr-plus/root/usr/share/shadowsocksr/ipv6.sh b/luci-app-ssr-plus/root/usr/share/shadowsocksr/ipv6.sh index 896591c8..69db70fe 100755 --- a/luci-app-ssr-plus/root/usr/share/shadowsocksr/ipv6.sh +++ b/luci-app-ssr-plus/root/usr/share/shadowsocksr/ipv6.sh @@ -62,6 +62,7 @@ ipv6_policy_rules() { ;; router) echo "add rule inet ss_spec $chain ip6 daddr @china6 return" + echo "add rule inet ss_spec $chain ip6 saddr @gmlan6 ip6 daddr != @china6 goto $target" echo "add rule inet ss_spec $chain goto $target" ;; all) echo "add rule inet ss_spec $chain goto $target" ;;