firewall api and FE
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 9s

This commit is contained in:
2026-02-11 20:39:43 +01:00
parent d92c168e5c
commit c34b71f5d7
5 changed files with 357 additions and 59 deletions

View 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[];
}

View 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;
};