OS/CentOS

CentOS7 방화벽 설정

강서버 2020. 6. 22. 22:30
728x90
반응형

$ sudo vi /etc/firewalld/zones/public.xml

 

<?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>
  <service name="ssh"/>
  <service name="dhcpv6-client"/>
  <service name="mysql"/>
  <service name="http"/>
</zone>

반응형