CompTIA Server+ SK0-005 Practice Question
A systems administrator has deployed a new web application on a Linux server which uses firewalld
. The application service is running correctly, and requests made from the server to localhost
succeed. Other servers on the same internal subnet can also access the application. However, all connection attempts from the internet are failing. The administrator determines the server's external network interface is correctly assigned to the public
zone. Which of the following commands should the administrator run to permanently allow external access to the web application while following security best practices?
firewall-cmd --panic-on
firewall-cmd --set-default-zone=trusted
firewall-cmd --permanent --zone=public --add-service=http
systemctl stop firewalld