service iptables save 

显示如下:The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.


最后用iptables-save.

成功保存了防火墙配置。