1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 08:42:08 +02:00

semanage-port: add port range example (#15384)

This commit is contained in:
cyqsimon 2025-01-01 13:11:49 +08:00 committed by GitHub
parent 8c4747401c
commit 77a75ff915
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,6 +16,10 @@
`sudo semanage port {{-a|--add}} {{-t|--type}} {{ssh_port_t}} {{-p|--proto}} {{tcp}} {{22000}}`
- Add a user-defined rule that assigns a label to a protocol-port-range pair:
`sudo semanage port {{-a|--add}} {{-t|--type}} {{http_port_t}} {{-p|--proto}} {{tcp}} {{80-88}}`
- Delete a user-defined rule using its protocol-port pair:
`sudo semanage port {{-d|--delete}} {{-p|--proto}} {{udp}} {{11940}}`