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:
parent
8c4747401c
commit
77a75ff915
1 changed files with 4 additions and 0 deletions
|
@ -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}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue