[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]

Configuring Destination Static NAT

Destination static NAT translates the destination address for external traffic to an address specified in a destination pool. The destination pool contains one address and no port configuration.

The example in this section shows how to configure the router to replace the destination address of packets sent to 121.0.1.1/32 with the local host address 192.168.1.1/32.

To configure destination static NAT:

  1. Navigate to the top of the configuration hierarchy in either the J-Web or CLI configuration editor.
  2. Perform the configuration tasks described in Table 86.
  3. Apply the NAT configuration to an interface. See Applying NAT to an Interface.

Table 86: Configuring Destination Static NAT

Task

J-Web Configuration Editor

CLI Configuration Editor

Navigate to the Nat level in the configuration hierarchy.

  1. In the J-Web interface, select Configuration>View and Edit>Edit Configuration.
  2. Next to Services, click Configure or Edit.
  3. Next to Nat, click Configure or Edit.

From the [edit] hierarchy level, enter

edit services nat

Define dest-nat-pool and assign it an address to be used for network address translation.

  1. Next to Pool, click Add new entry.
  2. In the Pool Name box, type dest-nat-pool.
  3. Next to Address, click Add new entry.
  4. In the Prefix box, type 192.168.1.1/32.
  5. Click OK twice.

Set the NAT pool name and the address:

set pool dest-nat-pool address 192.168.1.1/32

Define dest-nat-rule and set its match direction.

  1. On the Nat page, next to Rule, click Add new entry.
  2. In the Rule name box, type dest-nat-rule.
  3. From the Match direction list, select input.

Set the rule name and its match direction:

set rule dest-nat-rule match-direction input

Define dest-nat-term for dest-nat-rule and specify its match condition—destination address 121.0.1.1/32.

  1. On the Rule page, next to Term, select Add new entry.
  2. In the Term name box, type dest-nat-term.
  3. Next to From, click Configure.
  4. Next to Destination address, click Add new entry.
  5. From the Address list, select Enter Specific Value.
  6. In the Prefix box, type 121.0.1.1/32.
  7. Click OK twice.

Set the term name and its match condition:

set services nat rule dest-nat-rule term dest-nat-term from destination-address 121.0.1.1/32

Specify the action for the rule—to translate the destination address to the address from the pool.

  1. Next to Then, click Configure.
  2. From the Designation list, select Translated.
  3. Next to Translated, click Configure.
  4. Next to Translation type, click Configure.
  5. From the Destination list, select static.
  6. Click OK.
  7. From the Source pool choice list, select source prefix.
  8. In the Source prefix box, type 192.168.1.1/32.
  9. Click OK.

Set the action for the rule:

set services nat rule dest-nat-rule term dest-nat-term then translated source-prefix 192.168.1.1/32


[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]