set nat-rule position

In the R82.00.X releases, this command is available starting from the R82.00.00 version.

Description

Configures an existing manual NAT rule by position

Syntax

set nat-rule position <position> [ original-source <original-source> ] [ original-destination <original-destination>] [ original-service <original-service>] [ translated-source <translated-source> ] [ translated-destination <translated-destination> ] [ translated-service <translated-service> ] [ comment "<comment>" ] [ hide-sources <hide-sources> ] [ enable-arp-proxy <enable-arp-proxy> ] [ { position <position> | position-above <position-above> | position-below <position-below> } ] [ name <name> ] [ disabled <disabled> ]

Parameters

Parameter

Description

comment

Configures the comment text for the manual NAT rule.

A string that contains less than 257 characters, of this set:

  • a-z (lower-case letters)

  • A-Z (upper-case letters)

  • 0-9 (digits)

  • ',' (comma)

  • '.' (period)

  • '-' (minus)

  • '(' (opening round bracket)

  • ')' (closing round bracket)

  • ':' (colon)

  • '@' (at)

disabled

Indicates if rule is disabled

Type: Boolean (true/false)

enable-arp-proxy

The gateway will reply to ARP requests sent to the original destination's IP address (Does not apply to IP ranges/networks)

Type: Boolean (true/false)

hide-sources

Hide multiple sources behind the translated source addresses

Type: Boolean (true/false)

name

name

A string of alphanumeric characters without space between them:

  • a-z (lower-case letters)

  • A-Z (upper-case letters)

  • 0-9 (digits)

original-destination

Original destination of rule

original-service

Original service of rule

original-source

Original source of rule

position

The order of the rule in comparison to other manual rules

Type: Decimal number

position-above

The order of the rule in comparison to other manual rules

Type: Decimal number

position-below

The order of the rule in comparison to other manual rules

Type: Decimal number

translated-destination

Translated destination of rule

translated-service

Translated service of rule

translated-source

Translated source of rule

Example Command

set nat-rule position 2 original-source TEXT original-destination TEXT original-service TEXT translated-source TEXT translated-destination TEXT translated-service TEXT name MyNatRule comment "This is a comment" hide-sources true enable-arp-proxy true position 2 disabled true