ip6tables-restore命令用来还原ip6tables表。

语法格式:ip6tables-restore [参数]

常用参数:

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

参考实例

还原iptables配置:

[root@linuxcool ~]# ip6tables-restore < ip6tables.bak

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

[root@linuxcool ~]# ip6tables-restore -c < ip6tables.bak 

指定要还原表的名称:

[root@linuxcool ~]# ip6tables-restore -t filter.bak 
Author

这篇优质的内容由TA贡献而来

刘遄

《Linux就该这么学》书籍作者,RHCA认证架构师,教育学(计算机专业硕士)。