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

Configuring NAT Rules Without Defining Pools

For host-to-host NAT, you can define a NAT rule without having to specify a pool. Instead, you specify the translated address directly in a NAT rule.

The example in this section shows how to create a term no-pool-term to dynamically assign the translated address from the prefix 121.0.1.0/24 for source address translation. You do not have to specify the referenced pool in the term. Similarly, you can configure destination static NAT by defining a destination prefix in the term instead of defining the destination pool.

To configure NAT rules without defining pools:

  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 81.
  3. Apply the NAT configuration to an interface. See Applying NAT to an Interface.

Table 81: Defining NAT Rules Without NAT Pools

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 no-pool-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 no-pool-rule.
  3. From the Match direction list, select input.

Set the rule name and match direction:

set rule no-pool-rule match-direction input

Define no-pool-term and set its translation type—dynamic.

  1. Next to Term, click Add new entry.
  2. In the Term name box, type no-pool-term.
  3. Next to Then, click Configure.
  4. From the Designation list, select Translated.
  5. Next to Translated, click Configure.

Set the term name and translation type:

set rule no-pool-rule term no-pool-term then translated translation-type source dynamic

Define an action for no–pool-term—source prefix. This prefix is used for network address translation, and you do not have to specify a referenced pool.

  1. From the Source pool choice list, on the Translated page, select Source prefix.
  2. In the Source prefix box, type 121.0.1.0/24.
  3. Click OK.

Set the source prefix:

set rule no-pool-rule term no-pool-term then translated source-prefix 121.0.1.0/24


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