Allow incoming requests through specific port.
await nodeUfw.allow.port(6379);
nodeUfw.allow.port(6379, "udp");
returns
Promise<Boolean>
Allow incoming requests through specific (IP) address.
await nodeUfw.allow.address("192.168.0.1");
nodeUfw.allow.address("192.168.0.1", 6379);
returns
Promise<Boolean>
Deny incoming requests through specific port.
await nodeUfw.deny.port(6379);
nodeUfw.deny.port(6379, "udp");
returns
Promise<Boolean>
Deny incoming requests through specific (IP) address.
await nodeUfw.deny.address("192.168.0.1");
nodeUfw.deny.address("192.168.0.1", 6379);
returns
Promise<Boolean>
Delete ufw rule. The number rule starts from number 1. See sudo ufw status numbered
for more information.
returns
Promise<Boolean>
Disable UFW.
returns
Promise<Boolean>
Enable UFW.
returns
Promise<Boolean>
Reloads firewall.
returns
Promise<Boolean>
Disables and resets firewall to installation defaults. No prompt. Use this wisely.
returns
Promise<Boolean>
List of currently activated UFW.
returns
Promise<string | {to: string, action: string, from: string }[]>
Set/toggle UFW logging.
returns
Promise<Boolean>