Exceptions

IptablesError

exception IptablesError[source]

Root exception for all exceptions raised by modules of this package

IptablesParsingError

exception IptablesParsingError(*args, **kwargs)[source]

Exception raised when there is a failure parsing the iptables -xnv output

Parameters:

line – the iptables output line that triggered the exception

IptablesExecutionError

exception IptablesExecutionError(*args, **kwargs)[source]

Exception raised when the execution of the iptables(8) command fails

Parameters:

prog – program whose execution failed (should be either iptables or ip6tables)