.. _object_NftAddressTranslation: :index:`NftAddressTranslation` ------------------------------ Description *********** This object was introduced in InCore 2.1. :**› Inherits**: :ref:`NftFlow ` Overview ******** Properties ++++++++++ .. hlist:: :columns: 3 * :ref:`masquerade ` * :ref:`natDestinationAddress ` * :ref:`natDestinationPort ` * :ref:`natSourceAddress ` * :ref:`NftFlow.destinationAddress ` * :ref:`NftFlow.destinationPorts ` * :ref:`NftFlow.inputInterface ` * :ref:`NftFlow.outputInterface ` * :ref:`NftFlow.protocol ` * :ref:`NftFlow.sourceAddress ` * :ref:`NftFlow.sourcePorts ` * :ref:`NftTable.chains ` * :ref:`NftTable.enabled ` * :ref:`NftTable.family ` * :ref:`NftTable.name ` * :ref:`Object.objectId ` * :ref:`Object.parent ` Methods +++++++ .. hlist:: :columns: 1 * :ref:`Object.deserializeProperties() ` * :ref:`Object.fromJson() ` * :ref:`Object.serializeProperties() ` * :ref:`Object.toJson() ` Signals +++++++ .. hlist:: :columns: 1 * :ref:`NftTable.chainsDataChanged() ` * :ref:`Object.completed() ` Enumerations ++++++++++++ .. hlist:: :columns: 1 * :ref:`NftTable.Family ` Properties ********** .. _property_NftAddressTranslation_masquerade: .. _signal_NftAddressTranslation_masqueradeChanged: .. index:: single: masquerade masquerade ++++++++++ This property holds whether to masquerade connections, i.e. rewrite the source address of packets. :**› Type**: Boolean :**› Default**: ``false`` :**› Signal**: masqueradeChanged() :**› Attributes**: Writable .. _property_NftAddressTranslation_natDestinationAddress: .. _signal_NftAddressTranslation_natDestinationAddressChanged: .. index:: single: natDestinationAddress natDestinationAddress +++++++++++++++++++++ This property holds the address to use for rewriting the destination address of packets. :**› Type**: String :**› Signal**: natDestinationAddressChanged() :**› Attributes**: Writable .. _property_NftAddressTranslation_natDestinationPort: .. _signal_NftAddressTranslation_natDestinationPortChanged: .. index:: single: natDestinationPort natDestinationPort ++++++++++++++++++ This property holds the NAT destination port which to forward packets to if it differs from the original destination port. This property was introduced in InCore 2.7. :**› Type**: SignedInteger :**› Default**: ``0`` :**› Signal**: natDestinationPortChanged() :**› Attributes**: Writable .. _property_NftAddressTranslation_natSourceAddress: .. _signal_NftAddressTranslation_natSourceAddressChanged: .. index:: single: natSourceAddress natSourceAddress ++++++++++++++++ This property holds the address to use for rewriting the source address of packets. :**› Type**: String :**› Signal**: natSourceAddressChanged() :**› Attributes**: Writable .. _example_NftAddressTranslation: Example ******* .. code-block:: qml import InCore.Foundation 2.5 NftFirewall { NftAddressTranslation { inputInterface: "usb0" destinationAddress: "192.168.123.1" natSourceAddress: "192.168.19.1" natDestinationAddress: "192.168.19.2" } onRulesetChanged: console.log(ruleset) }