Centos7如何安裝iptables防火墻?
網(wǎng)友解答: 首先謝謝悟空邀請,這個專業(yè)的計算機的知識真不知道,你問我關(guān)于工程的我差不多知道個一二,悟空你難為我了,但是我網(wǎng)上找到了答案,希望能幫你。。。。。。。。
首先謝謝悟空邀請,這個專業(yè)的計算機的知識真不知道,你問我關(guān)于工程的我差不多知道個一二,悟空你難為我了,但是我網(wǎng)上找到了答案,希望能幫你。。。。。。。。 說明:centos7默認使用的firewalld防火墻,由于習慣使用iptables做防火墻,所以在安裝好centos7系統(tǒng)后,會將默認的firewall關(guān)閉,并另安裝iptables進行防火墻規(guī)則設(shè)定
系統(tǒng)操作環(huán)境centos7
[root@serve1 ~]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core)
關(guān)閉firewalld防火墻
systemctl stop firewalld #關(guān)閉firewalld防火墻systemctl disable firewalld #禁止開機自啟
安裝iptables防火墻并開啟
yum install iptables-services #安裝iptables防火墻systemctl start iptables #啟動systemctl enable iptables #開機自啟
關(guān)閉SELinux
vim /etc/selinux/configSELINUX=disabled #把enforcing改為disabledsetenforce 0 #即時生效
網(wǎng)友解答:在centos7下如何使用iptables服務(wù)。