firewall-cmd --remove-service=http --permanent

Category: Security & Hardening

firewall-cmd --remove-service=http --permanent

Remove an allowed service from firewalld

Stops allowing the http service in the current zone and persists the change with --permanent. The service stays open until you run firewall-cmd --reload or restart, since permanent changes are not applied live. Re-add it with --add-service=http --permanent.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.