【linux】Centos7 防火牆操作

  Centos7下用firewall-cmd命令來配置防火牆。firewall-cmd有"域"(zones)的概念。默認的zone爲public。firewall-cmd命令基本上都需要帶上zone參數,指定在哪個域上操作。我們一般都是在默認域即public上操作。 以下是最常用的命令,以開端口爲例: 查看當前防火牆運行狀態:firewall-cmd --state 列出當前防火牆的配置情況:f
相關文章
相關標籤/搜索