1

I'm trying to add http to the public zone in firewalld on CentOS 7 (new digitalocean image).

Someone please correct me if this is not the right/secure way to make my websites accessible through firewalld.

The issue I have is:

[root@wilberforce ~]# firewall-cmd --add-service=http
Error: COMMAND_FAILED: '/sbin/iptables -A IN_public_allow -t filter -m tcp -p tcp --dport 80 -m conntrack --ctstate NEW -j ACCEPT' failed: iptables: No chain/target/match by that name.
Failed to apply rules. A firewall reload might solve the issue if the firewall has been modified using ip*tables or ebtables.

Both http and https are listed under firewall-cmd --get-services. Why can't I add the service?

Nathan Edwards
  • 113
  • 1
  • 6

1 Answers1

0

There was a rogue firewalld process running which wouldn't allow for new rules to be added. It wasn't managable by systemd. The following did the trick:

systemctl stop firewalld
pkill -f firewalld
systemctl start firewalld
Marco
  • 435
  • 1
  • 3
  • 16