firewall api and FE
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 9s
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 9s
This commit is contained in:
24
frontend/src/types/firewall.ts
Normal file
24
frontend/src/types/firewall.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
export type Expr = any; // raw nft expr JSON (opaque to frontend)
|
||||
|
||||
export interface RuleOut {
|
||||
handle?: number | null;
|
||||
expr: Expr;
|
||||
text: string;
|
||||
position?: any;
|
||||
comment?: string | null;
|
||||
}
|
||||
|
||||
export interface ChainOut {
|
||||
name: string;
|
||||
rules: RuleOut[];
|
||||
}
|
||||
|
||||
export interface TableOut {
|
||||
family: string;
|
||||
name: string;
|
||||
chains: ChainOut[];
|
||||
}
|
||||
|
||||
export interface RulesetModel {
|
||||
tables: TableOut[];
|
||||
}
|
||||
11
frontend/src/types/scripting.ts
Normal file
11
frontend/src/types/scripting.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export type ScriptInfo = {
|
||||
name: string;
|
||||
path: string;
|
||||
};
|
||||
|
||||
export type EnableRequest = {
|
||||
qnum: number;
|
||||
service_name?: string | null;
|
||||
extra_args?: string | null;
|
||||
enable_at_boot?: boolean | null;
|
||||
};
|
||||
Reference in New Issue
Block a user