mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-10-02 00:00:06 +00:00
feat: support iptables firewall control (#10903)
This commit is contained in:
@@ -68,6 +68,8 @@ export namespace Host {
|
||||
name: string;
|
||||
isExist: boolean;
|
||||
isActive: boolean;
|
||||
isInit: boolean;
|
||||
isBind: boolean;
|
||||
version: string;
|
||||
pingStatus: string;
|
||||
}
|
||||
@@ -263,4 +265,41 @@ export namespace Host {
|
||||
path: string;
|
||||
error: string;
|
||||
}
|
||||
|
||||
// Iptables Filter
|
||||
export interface IptablesFilterRuleSearch extends ReqPage {
|
||||
info: string;
|
||||
type: string;
|
||||
}
|
||||
export interface IptablesData {
|
||||
items: IptablesRules[];
|
||||
total: number;
|
||||
defaultStrategy: string;
|
||||
}
|
||||
export interface IptablesRules {
|
||||
id: number;
|
||||
protocol: string;
|
||||
srcPort: number;
|
||||
dstPort: number;
|
||||
srcIP: string;
|
||||
dstIP: string;
|
||||
strategy: string;
|
||||
description: string;
|
||||
}
|
||||
export interface ChainStatus {
|
||||
isBind: boolean;
|
||||
defaultStrategy: string;
|
||||
}
|
||||
export interface IptablesFilterRuleOp {
|
||||
operation: string;
|
||||
id?: number;
|
||||
chain: string;
|
||||
protocol: string;
|
||||
srcIP?: string;
|
||||
srcPort?: number;
|
||||
dstIP?: string;
|
||||
dstPort?: number;
|
||||
strategy: string;
|
||||
description?: string;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user