# 停止firewalld服务

systemctl stop firewalld

systemctl mask firewalld

# 安装iptables-services

yum install iptables-services

Enable the service at boot-time:

# 启动iptables服务

systemctl enable iptables

# 管理iptables

systemctl [stop|start|restart] iptables

# 保存规则

service iptables save 或者 /usr/libexec/iptables/iptables.init save

centos7不再使用iptables,而是使用firewalld
若不想使用firewalld,继续使用iptables,可以停掉firewalld,并且安装iptables-services包
systemctl stop firewalld
systemctl disable firewalld
yum install -y iptables-services
systemctl enable iptables
systemctl start iptables

最新文章

  1. iOS各种调试技巧豪华套餐
  2. 发布网站详细步骤(.Net)
  3. Quartus 编译错误
  4. 从系统的gallery获取图片
  5. [Head First Python]4.读取文件datafile.txt, 去除两边空格, 存储到列表,从列表格式化(nester.py)后输出到文件man.out,other.out
  6. PHP自练项目之数字分页效果
  7. 仿微沟道效应,主要actionbar有些知识
  8. Spring Data JPA 入门Demo
  9. Docker Win 10 安装
  10. linux操作系统的前世今生
  11. STM32L1 串口相应驱动开发
  12. python中的 uuid 模块使用示例
  13. 自动化测试基础篇--Selenium Xpath定位
  14. 2017-2018-2 20155309南皓芯 Exp8 WEB基础实践
  15. C# 线程池ThreadPool的用法简析
  16. java编写编译器和解释器
  17. 20155327 2017-2018-2 《Java程序设计》第一周学习总结
  18. sqlserver 修改表字段长度
  19. table中的td等长(不随内容大小变化)
  20. 精读 SBAR SDN flow-Based monitoring and Application Recognition

热门文章

  1. [拾 得]pipe和xargs的恩怨情仇
  2. 如何判断NSDictionary是否包含某个键
  3. [转]maven打包报错:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test
  4. Java 得到泛型中得到T.class
  5. Jpa 本地方式实现数据的持久化【千锋】
  6. shell实例练习+详解
  7. linux_RAID
  8. lambda高级进阶--返回函数
  9. jdbc参数
  10. SQL SERVER 表最小行的一个纠结问题