fix(firewall): improve whitelist management and rule lifecycle (#13826)

This commit is contained in:
ssongliu
2026-09-15 23:55:01 +08:00
committed by GitHub
parent 9a5bd9bcba
commit fe742b9f41
45 changed files with 2111 additions and 1229 deletions
+12 -1
View File
@@ -33,8 +33,19 @@ export namespace Firewall {
forwarding: BackendGroup;
docker: BackendGroup;
pingStatus: string;
portWhiteList: string;
portWhiteList: PortWhitelist[];
}
export interface PortWhitelist {
port?: string;
protocol?: 'tcp' | 'udp';
type?: 'panel' | 'ssh';
sources: string[];
}
export interface PortWhitelistUpdate {
oldRule: PortWhitelist;
rule: PortWhitelist;
}
export interface BackendOperateRequest {
subsystem: BackendSubsystem;
backend: Provider;