Get your free beta license ↗
CMDCommand · run as root on the server · firewall family

urbestack-firewall-ports-set

First published 14 Oct 20260.2.0Unchanged since publication

Usage

# urbestack-firewall-ports-set --ports "8080, 9000/udp, 30000-31000"

Description

From the command's --help output
Replaces the firewall's list of extra open ports. The command requires --ports, a
comma-separated list of ports or ranges. Entries can be single ports such as 8080 or inclusive
ranges such as 30000-31000. Port numbers run from 1 to 65535. A range starts at the lower port.
TCP is the default. Append /udp for UDP or /tcp to specify TCP explicitly.

Pass an empty string to --ports to remove all extra port openings.

Options

Find other commands that accept these options

Same in the API

This operation runs the command.

More in firewall

8 commands, by what they work onView all commands in this family →
urbestack-firewall-
urbestack-firewall-ports-
urbestack-firewall-rule-
Generated from release 0.2.35 (current) · urbestack-firewall-ports-set --help outputThis entry has been unchanged since it was first published in release 0.2.0 on 14 Oct 2026.
urbestack.com/docs/commands/urbestack-firewall-ports-set/