Targets¶
All target-related classes are derived from the Target class.
The helper class Targets provides access to the special
targets (e.g. ACCEPT).
- class Target(target_name: str, terminates: bool)[source]¶
Parent class for all targets.
- Parameters:
target_name – the name of the target
terminates – if
True, this target terminates processing
- class Targets[source]¶
This class provides a namespace for all target classes
- ACCEPT = <linuxnet.iptables.target.Target object>¶
Special
ACCEPTtarget
- DROP = <linuxnet.iptables.target.Target object>¶
Special
DROPtarget
- QUEUE = <linuxnet.iptables.target.Target object>¶
Special
QUEUEtarget
- RETURN = <linuxnet.iptables.target.Target object>¶
Special
RETURNtarget