【Linux】一步一步学Linux——iptables-restore命令(188)
发布日期:2021-06-29 20:44:52 浏览次数:2 分类:技术文章

本文共 483 字,大约阅读时间需要 1 分钟。

00. 目录

文章目录

01. 命令概述

iptables-restore命令用来还原iptables-save命令所备份的iptables配置。

02. 命令格式

格式:iptables-restore [选项] [参数]

03. 常用选项

-c	指定在还原iptables表时候,还原当前的数据包计数器和字节计数器的值-t	指定要还原表的名称

04. 参考示例

4.1 还原iptables配置

[root@localhost ~]# iptables-restore < iptables.bak [root@localhost ~]#

4.2 指定在还原iptables表时候,还原当前的数据包计数器和字节计数器的值

[root@localhost ~]# iptables-restore -c < iptables.bak [root@localhost ~]#

4.3 指定要还原表的名称

[root@localhost ~]# iptables-restore -t filter.bak [root@localhost ~]#

05. 附录

参考:

转载地址:https://dengjin.blog.csdn.net/article/details/100109526 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:【Linux】一步一步学Linux——lnstat命令(189)
下一篇:【Linux】一步一步学Linux——iptables-save命令(187)

发表评论

最新留言

逛到本站,mark一下
[***.202.152.39]2024年04月07日 13时00分59秒