centos7 firewall

1612 단어 centos7firewall
더 읽 기
 
다음으로 이동:http://www.cnblogs.com/moxiaoan/p/5683743.html
 
CentOS7  firewalld          

1、firewalld     
  : systemctl start firewalld
    : systemctl status firewalld 
  : systemctl disable firewalld
  : systemctl stop firewalld

2.systemctl CentOS7             ,     service chkconfig      。
      :systemctl start firewalld.service
      :systemctl stop firewalld.service
      :systemctl restart firewalld.service
         :systemctl status firewalld.service
          :systemctl enable firewalld.service
          :systemctl disable firewalld.service
          :systemctl is-enabled firewalld.service
          :systemctl list-unit-files|grep enabled
           :systemctl --failed
        : systemctl daemon-reload

3.  firewalld-cmd
    : firewall-cmd --version
    : firewall-cmd --help
    : firewall-cmd --state
         : firewall-cmd --zone=public --list-ports
       : firewall-cmd --reload
      :  firewall-cmd --get-active-zones
          : firewall-cmd --get-zone-of-interface=eth0
     :firewall-cmd --panic-on
      : firewall-cmd --panic-off
      : firewall-cmd --query-panic
 
          
  
firewall-cmd --zone=public --add-port=80/tcp --permanent    (--permanent    ,          )
    
firewall-cmd --reload
  
firewall-cmd --zone=public --query-port=80/tcp
  
firewall-cmd --zone=public --remove-port=80/tcp --permanent

 

좋은 웹페이지 즐겨찾기