iptablesIP规则的保存与恢复
2024-09-06 12:49:45
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调用这个文件,从而就自动恢复了规则。
最新文章
- 多值(in),范围值(between..and)
- rt3070 驱动异常问题
- .Net用户控件
- js模块化编程总结
- 硬件描述语言Verilog设计经验总结
- CSS3美化表单控件
- apt-cache madison package-name
- 八大排序c++可运行精简版,一目了然
- non-ARC代码转 ARC 排除 “Existing instance variable 'delegate' for property with assign attribute must be _unsafe _unretained” 错误
- Centos 7服务启动文件
- Order笔记-数据库创建
- 从SQLServer转储数据到MySQL
- PowerShell 知识点总结
- getOutputStream() has already been called for this response解释以及解决方法
- Linux查看某个进程的磁盘IO读写情况 pidstat
- 数据库概念:码 键 Key &; 范式 Normal Form
- C++之new、delete 与malloc、free的异同
- Java编程的逻辑 (46) - 剖析PriorityQueue
- 【WP8】富文本功能实现
- iOS工程中如何去掉第三方的警告
热门文章
- 存储过程--mysql
- ASP.NET CORE使用MailKit的一个故障点分析
- 【JZOJ3635】【BOI2012】Peaks
- 集合-Collection接口
- CentOS 上MySQL报错Can't connect to local Mysql server through socket '/tmp/mysql.scok' (111)
- SQLServer —— 变量的使用
- CSS浏览器兼容解决方案
- JasperStudio 输出pdf 出错。
- day40-Spring 02-事务的回顾
- PHPCMS快速建站系列之添加单页模版