From 77a75ff915aa0bf3022b6c55dbaef7e524f8f904 Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Wed, 1 Jan 2025 13:11:49 +0800 Subject: [PATCH] semanage-port: add port range example (#15384) --- pages/linux/semanage-port.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/linux/semanage-port.md b/pages/linux/semanage-port.md index cb7981bfcb3df6..e9263ac6907e07 100644 --- a/pages/linux/semanage-port.md +++ b/pages/linux/semanage-port.md @@ -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}}`