Configure Safe Firewall (UFW)
configure_firewallConfigures UFW firewall rules by adding allow rules for Nginx and custom ports, while verifying OpenSSH port 22 is permitted to prevent SSH lockout.
Instructions
Configures UFW firewall rules safely. CRITICAL SAFETY: Always verifies OpenSSH (port 22) is allowed BEFORE enabling firewall to prevent SSH lockout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| allow_nginx | No | Set to true to allow 'Nginx Full' (HTTP 80 / HTTPS 443) through UFW | |
| custom_ports | No | Optional additional port numbers to allow through firewall |