semanage port

Manage persistent SELinux port definitions. See also: semanage. More information: https://manned.org/semanage-port.

sudo semanage port {{-l|--list}}

sudo semanage port {{-l|--list}} {{-C|--locallist}} {{-n|--noheading}}

sudo semanage port {{-a|--add}} {{-t|--type}} {{ssh_port_t}} {{-p|--proto}} {{tcp}} {{22000}}

sudo semanage port {{-d|--delete}} {{-p|--proto}} {{udp}} {{11940}}