Save the current iptables ruleset:

Note

I’ve done this on an appliancized Debian 8.4. No clue where else it may work.

This saves the currently running ruleset to a file that can then be modified, and loaded as below.

iptables-save > FILE

Load a ruleset:

iptables-restore FILE