<?xml version="1.0" encoding="utf-8"?> <zone> <short>Public</short> <description>For use in public areas. You do not trust the other computers on networks to not harm your computer. Only selected incoming connections are accepted.</description> <servicename="dhcpv6-client"/> <servicename="http"/> <!--容許http協議 --> <servicename="ssh"/> <!--容許ssh協議 --> <servicename="https"/> <!--容許https協議 --> </zone>
##Add firewall-cmd --permanent --zone=public--add-port=80/tcp ##Remove firewall-cmd --permanent --zone=public--remove-port=80/tcp ##Reload firewall-cmd --reload