2023-11-16 14:40:08 +08:00
|
|
|
export namespace Toolbox {
|
2023-11-20 15:28:09 +08:00
|
|
|
export interface DeviceBaseInfo {
|
|
|
|
dns: Array<string>;
|
|
|
|
hosts: Array<HostHelper>;
|
|
|
|
hostname: string;
|
|
|
|
ntp: string;
|
|
|
|
user: string;
|
|
|
|
timeZone: string;
|
|
|
|
localTime: string;
|
2023-11-27 12:02:08 +08:00
|
|
|
|
|
|
|
swapMemoryTotal: number;
|
|
|
|
swapMemoryAvailable: number;
|
|
|
|
swapMemoryUsed: number;
|
|
|
|
|
|
|
|
swapDetails: Array<SwapHelper>;
|
|
|
|
}
|
|
|
|
export interface SwapHelper {
|
|
|
|
path: string;
|
|
|
|
size: number;
|
|
|
|
used: string;
|
|
|
|
|
|
|
|
isNew: boolean;
|
2023-11-20 15:28:09 +08:00
|
|
|
}
|
|
|
|
export interface HostHelper {
|
|
|
|
ip: string;
|
|
|
|
host: string;
|
|
|
|
}
|
|
|
|
export interface TimeZoneOptions {
|
|
|
|
from: string;
|
|
|
|
zones: Array<string>;
|
|
|
|
}
|
|
|
|
|
2023-11-16 14:40:08 +08:00
|
|
|
export interface Fail2banBaseInfo {
|
|
|
|
isEnable: boolean;
|
|
|
|
isActive: boolean;
|
|
|
|
isExist: boolean;
|
|
|
|
version: string;
|
|
|
|
|
|
|
|
port: number;
|
|
|
|
maxRetry: number;
|
|
|
|
banTime: string;
|
|
|
|
findTime: string;
|
|
|
|
banAction: string;
|
|
|
|
logPath: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Fail2banSearch {
|
|
|
|
status: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Fail2banUpdate {
|
|
|
|
key: string;
|
|
|
|
value: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Fail2banSet {
|
|
|
|
ips: Array<string>;
|
|
|
|
operate: string;
|
|
|
|
}
|
|
|
|
}
|