#firewall-cmd --zone=public --add-port=443/tcp
Warning: ALREADY_ENABLED: ‘443:tcp’ already in ‘public’
success
#sudo firewall-cmd --list-all
public (active)
target: default
icmp-block-inversion: no
interfaces: eth0
sources:
services: cockpit dhcpv6-client ftp http https ssh
ports: 80/tcp 443/tcp
protocols:
forward: yes
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
sudo firewall-cmd --zone=public --add-service=ssh
Warning: ALREADY_ENABLED: ‘ssh’ already in ‘public’
success
BUT 443(https) is error , 80 is normal