Linux Firewall Rule Generator

Write your allow rules once, get the equivalent commands for UFW, iptables, and nftables — the three you actually run into across Debian/Ubuntu, older RHEL-family systems, and Rocky 10's modern default.

Format: port/protocol source — use any for the source to allow from everywhere.
Enter your rules and press Generate.