semanage-port
Verified for current stable LTS
Semanage Port Command: Add User Defined Rule Port Protocol Range Pair
Use for add user defined rule port protocol range pair with Semanage Port. Exact CLI syntax to add user defined rule port protocol range pair using Semanage Port.
When to use this: Use for add user defined rule port protocol range pair with Semanage Port.
Command Syntax
sudo semanage port -a -t <http_port_t> -p <tcp> <80-88> sudo semanage port -a -t <http_port_t> -p <tcp> <80-88> Live Command Builder
Final Command
sudo semanage port -a -t <http_port_t> -p <tcp> <80-88> Command Breakdown
-a- Command Option
- Tool-specific option used by this command invocation.
-t- Command Option
- Tool-specific option used by this command invocation.
-p- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to add user defined rule port protocol range pair using Semanage Port.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Semanage Port Command: Add User Defined Rule Port Protocol Pair
sudo semanage port -a -t <ssh_port_t> -p <tcp> <22000> Semanage Port Command: Delete User Defined Rule Port Protocol Pair sudo semanage port -d -p <udp> <11940> Semanage Port Command: List All Port Labeling Rules sudo semanage port -l Semanage Port Command: List User Defined Port Labeling Rules No Headings sudo semanage port -l -C -n Bun Publish Command: Publish Scoped Package With Access bun publish --access <public|restricted>