[root@kvm3 ~]# firewall-cmd --list-all public (default, active) target: default ingress-priority: 0 egress-priority: 0 icmp-block-inversion: no interfaces: enp1s0 sources: services: cockpit dhcpv6-client ssh ports: 3306/tcp protocols: forward: yes 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 (default, active) target: default ingress-priority: 0 egress-priority: 0 icmp-block-inversion: no interfaces: enp1s0 sources: services: cockpit dhcpv6-client http ssh ports: 3306/tcp protocols: forward: yes masquerade: no forward-ports: source-ports: icmp-blocks: rich rules:
[root@kvm3 ~]# exit logout Connection to kvm3 closed.
[dywang@deyu ~]# curl -s http://kvm3.deyu.wang/ | grep -m2 AlmaLinux
<title>Test Page for the HTTP Server on AlmaLinux</title>
<img src="system_noindex_logo.png" alt="AlmaLinux Logo" /><br />