Re: [PATCH v2 15/27] util: implement rollback rule autocreation for iptables commands

2024-04-23 Thread Daniel P . Berrangé
On Sun, Apr 21, 2024 at 10:53:23PM -0400, Laine Stump wrote: > If the VIR_FIREWALL_TRANSACTION_AUTO_ROLLBACK flag is set, each time > an iptables command is executed that is adding a rule or chain, a > corresponding command that will *delete* the same rule/chain is > constructed and added to the li

[PATCH v2 15/27] util: implement rollback rule autocreation for iptables commands

2024-04-21 Thread Laine Stump
If the VIR_FIREWALL_TRANSACTION_AUTO_ROLLBACK flag is set, each time an iptables command is executed that is adding a rule or chain, a corresponding command that will *delete* the same rule/chain is constructed and added to the list of rollback commands. If we later want to undo the entire firewall