MasqueradeTarget¶
- class MasqueradeTarget(*, port: Optional[int] = None, last_port: Optional[int] = None, is_random=False, is_random_fully=False)[source]¶
This class provides access to the
MASQUERADEtarget- Parameters:
port – port number (integer)
last_port – port number (integer) used when defining a port range
is_random – if
True, use the iptables(8)--randomoptionis_random_fully – if
True, use the iptables(8)--random-fullyoption
- get_target_name() str¶
Returns the target name
- is_terminating() bool¶
Returns
Trueif this is a terminating target