StateMatch

class StateMatch[source]

Match against the connection tracking state This match is accessed via the state module, but it is not clear how its functionality is different from the conntrack module’s –ctstate option.

state() StateCriterion[source]

Match against the connection tracking state

to_iptables_args() List[str][source]

Returns iptables(8) arguments for this match


StateCriterion

class StateCriterion(match)[source]

Compare with the connection tracking state

The comparison value is a string.