Skip to main content
Home
badllama.com
  • Search
  • Log In

Allow Services through firewalld and SELinux

cpeters's picture

Sat, 05/07/2016 - 20:01 by cpeters

Systemd

systemctl list-units --type service --all
systemctl status [service]
systemctl enable [service]

Firewalld

firewall-cmd --list-all
firewall-cmd --get-services
cat /usr/lib/firewalld/services/[service].xml
firewall-cmd --permanent --add-service=[service]
firewall-cmd --add-port=[port]/[tcp or udp]
firewall-cmd --reload

SELinux

getsebool -a | grep [service]
setsebool -P [service]
Tags: 
Linux RHEL OS security
Powered by Backdrop CMS