iptables-save把规则保存到文件中,再由目录rc.d下的脚本(/etc/rc.d/init.d/iptables)自动装载

使用命令iptables-save来保存规则。一般用

iptables-save > /etc/sysconfig/iptables

生成保存规则的文件 /etc/sysconfig/iptables,

也可以用

service iptables save

它能把规则自动保存在/etc/sysconfig/iptables中。

当计算机启动时,rc.d下的脚本将用命令iptables-restore调用这个文件,从而就自动恢复了规则。

最新文章

  1. 多值(in),范围值(between..and)
  2. rt3070 驱动异常问题
  3. .Net用户控件
  4. js模块化编程总结
  5. 硬件描述语言Verilog设计经验总结
  6. CSS3美化表单控件
  7. apt-cache madison package-name
  8. 八大排序c++可运行精简版,一目了然
  9. non-ARC代码转 ARC 排除 “Existing instance variable 'delegate' for property with assign attribute must be _unsafe _unretained” 错误
  10. Centos 7服务启动文件
  11. Order笔记-数据库创建
  12. 从SQLServer转储数据到MySQL
  13. PowerShell 知识点总结
  14. getOutputStream() has already been called for this response解释以及解决方法
  15. Linux查看某个进程的磁盘IO读写情况 pidstat
  16. 数据库概念:码 键 Key & 范式 Normal Form
  17. C++之new、delete 与malloc、free的异同
  18. Java编程的逻辑 (46) - 剖析PriorityQueue
  19. 【WP8】富文本功能实现
  20. iOS工程中如何去掉第三方的警告

热门文章

  1. 存储过程--mysql
  2. ASP.NET CORE使用MailKit的一个故障点分析
  3. 【JZOJ3635】【BOI2012】Peaks
  4. 集合-Collection接口
  5. CentOS 上MySQL报错Can't connect to local Mysql server through socket '/tmp/mysql.scok' (111)
  6. SQLServer —— 变量的使用
  7. CSS浏览器兼容解决方案
  8. JasperStudio 输出pdf 出错。
  9. day40-Spring 02-事务的回顾
  10. PHPCMS快速建站系列之添加单页模版