Linux下查看系统防火墙
1、使用工具,链接Linux系统,截图以putty连接工具为例

2、输入用户名,和密码,连接到服务器

3、连接服务器后,输入语句‘service iptables status’,回车,会显示防火墙状态

4、输入语句‘chkconfig iptables on’,可以开启防火墙。或者使用语句‘chkconfig iptables off’,关闭防火墙,需要重启后生效

5、如果想要即可生效,可以使用语句‘service iptables start’开启防火墙,或者语句‘service iptables stop’关闭,关闭或者开启防火墙后,查询防火墙状态,可以看到相应的变化
