| date | 2022-06-29 13:57:35 +0800 | |
|---|---|---|
| author | Rustle Karl | |
| title | iptables-save 备份 iptables 的表配置 | |
| url | posts/linux/tools/standard/iptables-save | |
| tags |
|
|
| series |
|
|
| categories |
|
|
| toc | true | |
| draft | false |
iptables-save 命令 用于将 linux 内核中的 iptables 表导出到标准输出设备商,通常,使用 shell 中 I/O 重定向功能将其输出保存到指定文件中。
iptables-save(选项)-c:指定要保存的iptables表时,保存当权的数据包计算器和字节计数器的值;
-t:指定要保存的表的名称。iptables-save -t filter > iptables.bak