[root@kvm3 ~]# firewall-cmd --list-all public (active) target: default icmp-block-inversion: no interfaces: ens3 sources: services: cockpit dhcpv6-client ssh ports: 3306/tcp protocols: masquerade: no forward-ports: source-ports: icmp-blocks: rich rules:
[root@kvm3 ~]# firewall-cmd --permanent --add-service=http success
[root@kvm3 ~]# firewall-cmd --reload success
[root@kvm3 ~]# firewall-cmd --list-all public (active) target: default icmp-block-inversion: no interfaces: ens3 sources: services: cockpit dhcpv6-client http ssh ports: 3306/tcp protocols: masquerade: no forward-ports: source-ports: icmp-blocks: rich rules:
[root@deyu ~]# curl -s http://kvm3.deyu.wang/ | grep -m2 AlmaLinux <title>Test Page for the HTTP Server on AlmaLinux</title> <h1>AlmaLinux <strong>Test Page</strong></h1>