iptables-save命令用于保存iptables的表配置,下面良许教程网为大家分享一下Linux常用命令iptables-save命令具体使用方法。
命令格式
用法:iptables-save [-c] [-t table]
常用选项
-c 指定要保存的iptables表时,保存当前的数据包计算器和字节计数器的值 -t 指定要保存的表的名称
参考示例
指定要保存的表的名称
[root@localhost ~]# iptables-save -t filter > filter.bak [root@localhost ~]# ls
保存当前的数据包计算器和字节计数器的值
[root@localhost ~]# iptables-save -c > iptables.bak [root@localhost ~]#
至此关于Linux常用命令iptables-save命令的使用方法分享结束,大家如果对iptables-save命令的使用方法还有问题可以通过评论区将问题提交我们。
以上就是
为各位朋友分享的 相关内容。想要了解更多Linux相关知识记得关注公众号“良许Linux”,或扫描下方二维码进行关注,更多 等着你 !