linux開啟和關(guān)閉防火墻 linux怎么永久關(guān)閉防火墻?
linux怎么永久關(guān)閉防火墻?1)重啟后生效:chkconfig iptables on off 2)立即生效,重啟后無效:Service iptables start off:Service ipt
linux怎么永久關(guān)閉防火墻?
1)重啟后生效:chkconfig iptables on off 2)立即生效,重啟后無效:Service iptables start off:Service iptables stop需要注意的是,Linux下的其他服務(wù)可以通過上述命令打開和關(guān)閉。打開防火墻后,進行以下設(shè)置,打開相關(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