Direct/Freedom outbound: Add finalRules (matches network, port and ip, then action)

This commit is contained in:
Meow
2026-04-29 00:57:08 +08:00
parent 09e8463c74
commit 122a055eb4
6 changed files with 201 additions and 27 deletions
+12 -2
View File
@@ -135,8 +135,18 @@ outbound:
"protocol": "freedom",
"settings": {
"redirect": "127.0.0.1:80",
// 解除默认安全策略后,仅放行 127.0.0.1
"ipsBlocked": ["!127.0.0.1/32"]
// 仅放行 TCP 127.0.0.1:80,阻止其它目标
"finalRules": [
{
"action": "allow",
"network": "tcp",
"port": 80,
"ip": ["127.0.0.1/32"]
},
{
"action": "block"
}
]
}
}
```