http://stackoverflow.com/questions/24756240/how-can-i-use-iptables-on-centos-7

# sudo service iptables start
Redirecting to /bin/systemctl start iptables.service
Failed to issue
method call: Unit iptables.service failed to load: No such file or directory.

With RHEL 7 / CentOS 7, firewalld was introduced to manage iptables. IMHO, firewalld is more suited for workstations than for server environments.

It is possible to go back to a more classic iptables setup. First, stop and mask the firewalld service:

systemctl stop firewalld
systemctl mask firewalld

Then, install the iptables-services package:

yum install iptables-services

Enable the service at boot-time:

systemctl enable iptables

Managing the service

systemctl [stop|start|restart] iptables

Saving your firewall rules can be done as follows:

service iptables save

or

/usr/libexec/iptables/iptables.init save
 

最新文章

  1. common-pool2 学习:thrift连接池的另一种实现
  2. virut详细分析
  3. 提高Axure设计效率的10条建议
  4. Windows环境下Android Studio v1.0安装教程
  5. Python之路【第三篇补充】:Python基础(三)
  6. mysql绿色版安装问题解决(ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061))
  7. wikioi 3132 高精度乘法(FFT)
  8. Java中流-----个人总结心得
  9. 浅谈ASP.NET框架
  10. php开发之系统函数
  11. CenterOS7.5中搭建wordpress
  12. jQuery之制作简单的轮播图效果
  13. Android log 方法
  14. HihoCoder - 1078 【区间修改】
  15. 腾讯云ubuntu搭建jdk
  16. RPM卸载
  17. Selenium-xapth定位
  18. CodeBlocks 3 使用设置
  19. [Leetcode] word ladder 单词阶梯
  20. ios 中尝试多次请求

热门文章

  1. 「小程序JAVA实战」小程序模块之间引用(19)
  2. SpringData JPA 接口和方法
  3. Java并发之AQS详解(转)
  4. AOP的MethodBeforeAdvice
  5. 3.Hadoop集群搭建之Zookeeper安装
  6. python开源项目Scrapy抓取文件乱码解决
  7. 201671010127 2016-2017-11 Java图形用户界面设计技术
  8. 【BZOJ1013】球形空间产生器sphere
  9. [bzoj2212]Tree Rotations(线段树合并)
  10. Java核心技术-接口、lambda表达式与内部类