00. 目录
01. 命令概述
iptables-restore命令用来还原iptables-save命令所备份的iptables配置。
02. 命令格式
格式:iptables-restore [选项] [参数]
- 1
03. 常用选项
-c 指定在还原iptables表时候,还原当前的数据包计数器和字节计数器的值
-t 指定要还原表的名称
- 1
- 2
04. 参考示例
4.1 还原iptables配置
[root@localhost ~]# iptables-restore < iptables.bak
[root@localhost ~]#
- 1
- 2
4.2 指定在还原iptables表时候,还原当前的数据包计数器和字节计数器的值
[root@localhost ~]# iptables-restore -c < iptables.bak
[root@localhost ~]#
- 1
- 2
4.3 指定要还原表的名称
[root@localhost ~]# iptables-restore -t filter.bak
[root@localhost ~]#
- 1
- 2
评论记录:
回复评论: