Skip to content
Runs privately in your browser

Free Online UFW Rule Generator

Generate an allow or deny rule for a TCP or UDP port. It is text output only and never changes this server firewall.

Your input stays on this device. Processing is bounded; regex runs in a worker with a two-second timeout.

Result

How to use UFW Rule Generator

Generate an allow or deny rule for a TCP or UDP port. It is text output only and never changes this server firewall.

  1. Set Action.
  2. Set Port.
  3. Set Protocol.
  4. Run the tool, review the result and its stated limitations, then copy or download if needed.

Example & practical use

Generate an allow or deny rule for a TCP or UDP port. It is text output only and never changes this server firewall. The example below demonstrates Action; Port; Protocol.

Example input:
{
  "action": "allow",
  "port": 443,
  "protocol": "tcp"
}
Expected result (relevant fields):
"ufw allow 443/tcp"

Features & result limitations

Generate an allow or deny rule for a TCP or UDP port. It is text output only and never changes this server firewall.

Frequently asked questions

What inputs does UFW Rule Generator accept?

Action; Port; Protocol

How should I interpret the UFW Rule Generator result?

Generate an allow or deny rule for a TCP or UDP port. It is text output only and never changes this server firewall.

Where does UFW Rule Generator process my data?

Inputs are processed locally in your browser. Submitted text is not sent to external services. A successful-run event increments an aggregate tool counter without your input.