00. 目录
01. 命令概述
iptables-save命令用于保存iptables的表配置。
02. 命令格式
用法:iptables-save [-c] [-t table]
- 1
03. 常用选项
-c 指定要保存的iptables表时,保存当前的数据包计算器和字节计数器的值
-t 指定要保存的表的名称
- 1
- 2
04. 参考示例
4.1 指定要保存的表的名称
[root@localhost ~]# iptables-save -t filter > filter.bak
[root@localhost ~]# ls
- 1
- 2
4.2 保存当前的数据包计算器和字节计数器的值
[root@localhost ~]# iptables-save -c > iptables.bak
[root@localhost ~]#
- 1
- 2
评论记录:
回复评论: