mirror of
https://github.com/fw876/helloworld.git
synced 2026-12-06 08:02:17 +00:00
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.
This commit is contained in:
1 parent
2d9199beb9
commit
1f0849ec06
2 files changed
+2
-1
No files matched your search
@@ -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 \
|
||||
|
||||
@@ -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" ;;
|
||||
|
||||
Reference in new issue
Block a user