Troubleshooting

A new application on a RHEL server listens on TCP 8080. ss -tlnp shows it bound to 0.0.0.0:8080, and curl to localhost:8080 succeeds. Remote clients time out, and firewall-cmd --list-ports does not include 8080. The change must persist across reboots. What is the BEST fix?

Show the answer

Correct answerB. Run firewall-cmd --permanent --add-port=8080/tcp, then firewall-cmd --reload

A timeout with a working local connection points to the firewall dropping the traffic. Adding the port with --permanent and reloading opens it now and after reboot. A runtime-only rule is lost at restart, and binding to loopback would block remote access entirely.