centos7之前的防火墙服务操作,使用:
service iptables start/stop/restart (临时修改,开机后仍是原来配置)
chkconfig iptables on/off (开机不启动/启动)
centos7之后:
service firewalld start/stop/restart
chkconfig firewalld on/off
centos7之前的防火墙服务操作,使用:
service iptables start/stop/restart (临时修改,开机后仍是原来配置)
chkconfig iptables on/off (开机不启动/启动)
centos7之后:
service firewalld start/stop/restart
chkconfig firewalld on/off