You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
655 B
29 lines
655 B
declare const nodeUfw: {
|
|
name: string;
|
|
|
|
version: string;
|
|
|
|
disable: Promise<Boolean>;
|
|
|
|
enable: Promise<Boolean>;
|
|
|
|
status: (raw?: boolean) => Promise<string | Array<ParsedStatus>>;
|
|
|
|
allow: {
|
|
port: (port: number, protocol?: "udp" | "tcp") => Promise<Boolean>;
|
|
address: (address: string, port?: number, protocol?: "udp" | "tcp") => Promise<Boolean>;
|
|
};
|
|
|
|
deny: {
|
|
port: (port: number, protocol?: "udp" | "tcp") => Promise<Boolean>;
|
|
address: (address: string, port?: number, protocol?: "udp" | "tcp") => Promise<Boolean>;
|
|
};
|
|
};
|
|
|
|
interface ParsedStatus {
|
|
to: string;
|
|
action: string;
|
|
from: string;
|
|
}
|
|
|
|
export default nodeUfw;
|