Sample Header Ad - 728x90

Unable to change firewall active zone

0 votes
1 answer
29 views
I am trying to update my firewall but now i want to revert it back to public so basically the firewall is running and it was
public (active)
  target: default
  icmp-block-inversion: no
  interfaces: eth0
after adding some ports and services, i read in the documentation that the inbound traffic should be blocked except for http and https thus leading me to change the zone from public to drop suing firewall-cmd --set-default-zone=drop turns out it was a wrong documentation and thus i revert it back using the same command firewall-cmd --set-default-zone=public reload it and still stays the same even though when i run firewall-cmd --list-all it now shows **public** instead of **drop** but it is like this
public
  target: default
  icmp-block-inversion: no
  interfaces:
i checked the active zone and it is still giving me drop as the active zone firewall-cmd --get-active-zones
drop
  interfaces: eth0
i make sure to run firewall-cmd --reload all the time after changing but is keeps drop as the active zone. i even did a reboot and it still stays the same how do i change the active zone from drop to public like it was? I am running linux on amazon linux 2
Asked by Devs (1 rep)
Mar 14, 2025, 08:34 AM
Last activity: Mar 14, 2025, 09:19 AM