iptables-restore命令用来还原iptables-save命令所备份的iptables配置,下面良许教程网为大家分享一下Linux常用命令iptables-restore命令具体使用方法。
命令格式
格式:iptables-restore [选项] [参数]
常用选项
-c 指定在还原iptables表时候,还原当前的数据包计数器和字节计数器的值 -t 指定要还原表的名称
参考示例
还原iptables配置
[root@localhost ~]# iptables-restore指定在还原iptables表时候,还原当前的数据包计数器和字节计数器的值
[root@localhost ~]# iptables-restore -c指定要还原表的名称
[root@localhost ~]# iptables-restore -t filter.bak [root@localhost ~]#
以上就是
为各位朋友分享的 相关内容。想要了解更多Linux相关知识记得关注公众号“良许Linux”,或扫描下方二维码进行关注,更多 等着你 !