To check the status of the firewall:
# service firewalld status
To disable the firewall:
# service firewalld stop
To start the firewall:
# service firewalld start
To enable firewall on boot:
# systemctl enable firewalldTo disable firewall on boot:
# systemctl disable firewalldTo check on how to configure firewall:
# man firewall-cmdTo get the default zone:
# firewall-cmd --get-default-zoneTo list all services in public zone:
# firewall-cmd --zone=public --list-allTo accept http service in public zone permanently:
# cat /etc/firewalld/zones/public.xml # firewall-cmd --permanent --zone=public --add-service=http # firewall-cmd --reload # cat /etc/firewalld/zones/public.xmlTo deny http service in public zone permanently:
# cat /etc/firewalld/zones/public.xml # firewall-cmd --permanent --zone=public --remove-service=http # firewall-cmd --reload # cat /etc/firewalld/zones/public.xmlThe GUI screen to control the firewall is available from the menu. To install using yum:
# yum install firewall-configTo get to Firewall GUI: Fedora : System > Administration > Firewall RHEL7/OL7 : Applications > Sundry > Firewall
No comments :
Post a Comment