NftAddressTranslation

Description

This object was introduced in InCore 2.1.

› Inherits:

NftFlow

Overview

Properties

Methods

Signals

Enumerations

Properties

masquerade

This property holds whether to masquerade connections, i.e. rewrite the source address of packets.

› Type:

Boolean

› Default:

false

› Signal:

masqueradeChanged()

› Attributes:

Writable

natDestinationAddress

This property holds the address to use for rewriting the destination address of packets.

› Type:

String

› Signal:

natDestinationAddressChanged()

› Attributes:

Writable

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

natSourceAddress

This property holds the address to use for rewriting the source address of packets.

› Type:

String

› Signal:

natSourceAddressChanged()

› Attributes:

Writable

Example

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)
}