# service iptables save
The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.

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. LeetCode: Nim Game
  2. php 数组定义、取值和遍历
  3. PHP获取当前日期或指定日期的所在月的第一天和最后一天
  4. Raft详解分析
  5. 在Caffe中实现模型融合
  6. 不用EF框架,完成完美实体映射,且便于维护!(AutoMapper,petapoco)
  7. 一年iOS工作经验,如何一举拿下百度、美团、快手等Offer面经(附面试题)
  8. tensorbordX使用
  9. Visual Studio编辑器“智能提示(IntelliSense)”异常的解决方案
  10. js实现table表格相同内容按需合并
  11. 【Jmeter】api性能测试总结
  12. windows开启powershell在此系统中禁止执行脚本
  13. @RequestParam注解使用:Name for argument type [java.lang.String] not available, and parameter name information not found in class file either.
  14. C++ 第十一课 标准c内存函数
  15. Oralce分析函数
  16. vue报错 Uncaught TypeError: Cannot read property ‘children ’ of null
  17. LintCode 407: Plus One
  18. Java 线程内异常处理
  19. sql语句中charindex的用法
  20. JavaScript有限状态机实现方式

热门文章

  1. 缓冲区 粘包 029 send 和sendall 的区别 find 和 findall 的区别
  2. js Form表单转json格式,及后台接收(多种方法)
  3. hive distcp数据同步
  4. IP分片 与 TCP分段的区别 !!!!careful========以及udp中一个包大小究竟为多大合适 ==========三次握手四次挥手细节
  5. Maven 的setting.xml
  6. HBuilder的常用快捷键
  7. 使用Dockerfile docker tomcat部署
  8. MATLAB顺序结构程序和switch实现选择结构
  9. Misc1
  10. HDU5366——The mook jong——dp