As per 2.0, with several bugfixes ( with thanks to @enoch85 ):
- Fixed references to chain being removed from INPUT and FORWARD when updating.
- Now only attempt to remove references to chain from INPUT and FORWARD if they exist.
- Silenced some (expected)
stderr
messages fromiptables
- Fixing incorrect reference, and correcting a typo + missing explanation in an error message.
- Make sure that the message on success only is written if it's actually successful.
- Fixed "Too many links" from iptables (not actually removing the chain) by flushing the chain before removal.