Update selinux.md
This commit is contained in:
@@ -6,9 +6,15 @@
|
|||||||
# Allow open local port
|
# Allow open local port
|
||||||
semanage port -a -t http_port_t -p tcp 28081
|
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
|
# Allow open remote port
|
||||||
setsebool -P httpd_can_network_connect 1
|
setsebool -P httpd_can_network_connect 1
|
||||||
|
|
||||||
|
|
||||||
# Allow open file in dir
|
# Allow open file in dir
|
||||||
chcon -R -t httpd_sys_content_t dir
|
chcon -R -t httpd_sys_content_t dir
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user