From 675582776d1cc81edd7b6e950c3a767c6ac59f80 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 30 Jan 2025 16:16:45 +0300 Subject: [PATCH] Update selinux.md --- docs/linux/selinux.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/linux/selinux.md b/docs/linux/selinux.md index 7e59afc..1167186 100644 --- a/docs/linux/selinux.md +++ b/docs/linux/selinux.md @@ -6,9 +6,15 @@ # 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 + + # Allow open remote port setsebool -P httpd_can_network_connect 1 + # Allow open file in dir chcon -R -t httpd_sys_content_t dir ```