防火墙的基本操作命令
1. 查询防火墙状态:
[root@localhost ~]# service iptables status
2. 开启防火墙:
[root@localhost ~]# service iptables start
3. 关闭防火墙:
[root@localhost ~]# service iptables stop
4. 重启防火墙:
[root@localhost ~]# service iptables restart
5. 永久关闭防火墙:
[root@localhost ~]# chkconfig iptables off
6. 永久关闭后开启防火墙:
[root@localhost ~]# chkconfig iptables off
补充
编辑/etc/sysconfig/iptables文件,可以配置不同端口的对外提供服务。
Copyright © 2013-2024 8a.hk All Rights Reserved. 八艾云 版权所有 中山市八艾云计算有限公司 粤ICP备14095776号 粤公网安备 44200002445359号
增值电信业务经营许可证编号:B1-20222012
代理域名注册服务机构:西部数码