Using CentOS 7, I am trying to use firewall-cmd --zone=public --add-port=443/tcp --permanent
to add 443 to my allowed ports. Unfortunately this throws error ALREADY_ENABLED: 443:tcp
. But when I use firewall-cmd --list-ports
it does not show in the list ("80/tcp 3000/tcp 26900/tcp 26900/udp").
I suppose the issue is caused with a conflict between firewall-cmd and iptables. But I have no idea how to debug this and if this might even be possible.
Calling firewall-cmd --list-all
results in the following list:
public
target: default
icmp-block-inversion: no
interfaces:
sources:
services: ssh dhcpv6-client
ports: 80/tcp 3000/tcp 26900/tcp 26900/udp
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules: