semanage-port
SELinux Policy Management port mapping tool
- Provided by: policycoreutils-python-utils (Version: 3.5-1)
- Source: selinux-python
- Report a bug
SELinux Policy Management port mapping tool
semanage port [-h] [-n] [-N] [-S STORE] [ --add -t TYPE -p PROTOCOL -r RANGE port_name | port_range | --delete -p PROTOCOL port_name | port_range | --deleteall | --extract | --list [-C] | --modify -t TYPE -p PROTOCOL -r RANGE port_name | port_range ]
semanage is used to configure certain elements of SELinux policy without requiring modification to or recompilation from policy sources. semanage port controls the port number to port type definitions.
List all port definitions # semanage port -l Allow Apache to listen on tcp port 81 # semanage port -a -t http_port_t -p tcp 81 Allow sshd to listen on tcp port 8991 # semanage port -a -t ssh_port_t -p tcp 8991
This man page was written by Daniel Walsh <dwalsh@redhat.com>