set server server-nat-settings

Description

Configures NAT settings on an existing server object.

Syntax

set server server-nat-settings <name> [ nat-settings { static-nat [ static-nat-ipv4-address <static-nat-ipv4-address> ] [ static-nat-for-outgoing-traffic <static-nat-for-outgoing-traffic> ] | port-forwarding } ] [ port-address-translation <port-address-translation> ] [ port-address-translation-external <port-address-translation-external-port> ] [ force-source-hide-nat <force-source-hide-nat > ]

Parameters

Parameter

Description

force-source-hide-nat

Allow access from internal networks to the external IP address of the server via local switch

Type: Boolean (true/false)

name

Specifies the Server object name.

Press the TAB key to see the available options.

nat-settings

Indicates the general NAT settings configured (no NAT, hide behind the gateway's external IP address or use a different external IP address)

Press TAB to see available options

port-address- translation

For servers with a single port, indicates if the external port is not the same as the internal port.

Type: Boolean (true/false)

port-address- translation-external- port

For servers with a single port, indicates the external port that is used to forward traffic to the server

Type: Port number

static-nat-for- outgoing-traffic

indicates if outgoing traffic from the server using static NAT will be hidden behind the configured external IP address without a port change

Type: Boolean (true/false)

static-nat-ipv4- address

For servers using static NAT, the external IP address used to forward traffic to the server

Example

set server server-nat-settings myObject_17 nat-settings static-nat static-nat-ipv4-address 192.168.1.1 static-nat-for-outgoing-traffic true port-address-translation true port-address-translation-external-port 8080 force-source-hide-nat true