Nodevisor Docs
Packages

@nodevisor/firewall

High-level firewall abstraction (delegates to UFW).

Install

npm install @nodevisor/firewall

Status

This package is a high-level abstraction layer for firewall management. Currently delegates to @nodevisor/ufw.

For firewall functionality, use @nodevisor/ufw directly:

import $ from '@nodevisor/shell';
import UFW from '@nodevisor/ufw';
import { endpoints } from '@nodevisor/endpoint';

const ufw = $(UFW);
await ufw.install();
await ufw.allow([endpoints.ssh, endpoints.web, endpoints.webSecure]);
await ufw.start();

On this page