From 2de39d7e239da182dd4aa341c4acb364a733a5c6 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 11 Feb 2025 11:41:59 +0300 Subject: [PATCH] Add dns_port_t context --- docs/linux/selinux.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/linux/selinux.md b/docs/linux/selinux.md index 1167186..e88730d 100644 --- a/docs/linux/selinux.md +++ b/docs/linux/selinux.md @@ -1,14 +1,16 @@ # SELinux -## Nginx +## Nginx and other ``` -# Allow open local port +# Allow open local port semanage port -a -t http_port_t -p tcp 28081 - # or semanage port -a -t openvpn_port_t -p tcp 2222 semanage port -a -t openvpn_port_t -p udp 2222 +# or +semanage port -a -t dns_port_t -p tcp 5353 +semanage port -a -t dns_port_t -p udp 5353 # Allow open remote port