mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-10-15 16:00:43 +00:00
fix(firewall): improve whitelist management and rule lifecycle (#13826)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user