NFLogTarget

class NFLogTarget(*, group: Optional[int] = None, prefix: Optional[str] = None, size: Optional[int] = None, threshold: Optional[int] = None)[source]

This class provides access to the NFLOG target

Parameters:
  • group – netlink group to send packets to

  • prefix – prefix to include in every log message

  • size – number of packets to copy to userspace

  • threshold – number of packets to queue in kernel before sending to userspace

get_nflog_group() Optional[int][source]

Returns the nflog group

get_nflog_prefix() Optional[str][source]

Returns the nflog prefix

get_nflog_size() Optional[int][source]

Returns the nflog size

get_nflog_threshold() Optional[int][source]

Returns the nflog threshold

to_iptables_args() List[str][source]

Returns a list of iptables(8) arguments

get_target_name() str

Returns the target name

is_terminating() bool

Returns True if this is a terminating target