ConnmarkMatch

The ConnmarkMatch class uses the same MarkCriterion as the MarkMatch class.

Example:

>>> from linuxnet.iptables import ConnmarkMatch
>>> m = ConnmarkMatch()
>>> m.mark().equals(0x10)
<linuxnet.iptables.matches.connmarkmatch.ConnmarkMatch object at 0x7fa49c4acd60>
>>> m.to_iptables_args()
['-m', 'connmark', '--mark', '0x10']
class ConnmarkMatch[source]

Match against the ctmark

get_criteria() Iterable[Criterion][source]

Returns the connmark match criteria (only one).

static get_match_name() str[source]

Returns the iptables(8) match extension name

mark() MarkCriterion[source]

Match against the packet’s ctmark