linux開(kāi)啟和關(guān)閉防火墻 linux怎么永久關(guān)閉防火墻?
linux怎么永久關(guān)閉防火墻?1)重啟后生效:chkconfig iptables on off 2)立即生效,重啟后無(wú)效:Service iptables start off:Service ipt
linux怎么永久關(guān)閉防火墻?
1)重啟后生效:chkconfig iptables on off 2)立即生效,重啟后無(wú)效:Service iptables start off:Service iptables stop需要注意的是,Linux下的其他服務(wù)可以通過(guò)上述命令打開(kāi)和關(guān)閉。打開(kāi)防火墻后,進(jìn)行以下設(shè)置,打開(kāi)相關(guān)端口,修改/etc/sysconfig/iptables文件,并添加以下內(nèi)容:-a rh-firewall-1-input-M state--state new-M TCP-P TCP--dport 80-J accept-a rh-firewall-1-input-M state--state new-M TCP-P TCP--dport 22-J accept