|
Navigate to the Nat level in the configuration
hierarchy.
|
- In the J-Web interface, select Configuration>View
and Edit>Edit Configuration.
- Next to Services, click Configure or Edit.
- Next to Nat, click Configure or Edit.
|
From the [edit] hierarchy level, enter
edit services nat
|
|
Define dynamic-pool and assign it an address to be
used for network address translation.
|
- Next to Pool, click Add new
entry.
- In the Pool Name box, type dynamic-pool.
- Next to Address, click Add new
entry.
- In the Prefix box, type 121.0.1.0/24.
- Click OK twice.
|
Set the NAT pool name and the address:
set pool dynamic-pool address 121.0.1.0/24
|
|
Define static-pool and assign it an address range to
be used for network address translation.
|
- Next to Pool, click Add new
entry.
- In the Pool Name box, type static-pool.
- Next to Address range, click Add
new entry.
- In the High box, type 121.0.1.12.
- In the Low box, type 121.0.1.10.
- Click OK.
|
Set the NAT pool name and the address range:
set pool static-pool address-range low 121.0.1.10 high 121.0.1.12
|
|
Define static-in-dynamic-rule and set its match direction.
|
- On the Nat page, next to Rule, click Add new entry.
- In the Rule name box, type static-in-dynamic-rule.
- From the Match direction list, select input.
|
Set the rule name and its match direction:
set rule static-in-dynamic-rule match-direction input
|
|
Define static-pool-term for static-in-dynamic-rule and specify its match condition—source address 10.10.10.2.
|
- On the Rule page, next to Term, select Add new entry.
- In the Term name box, type static-pool-term.
- Next to From, click Configure.
- Next to Source Address, click Add
new entry.
- From the Address list, select Enter
Specific Value.
- In the Prefix box, type 10.10.10.2.
- Click OK twice.
|
Set the term name and its match condition:
set rule static-in-dynamic-rule term static-pool-term from
source-address 10.10.10.2
|
|
Specify the referenced pool for static-pool-term and
set its action—translation type as source static.
|
- Next to Then, select Configure.
- From the Designation list, select Translated.
- Next to Translated, click Configure.
- From the Source pool choice list, select Source pool.
- In the Source pool box, type static-pool.
- Click OK.
|
Set the pool and action for the term:
set rule static-in-dynamic-rule term static-pool-term then
translated source-pool static-pool translation-type source static
|
|
Define dynamic-pool-term for static-in-dynamic-rule. Specify the pool to be used for address translation and the term’s
action—to dynamically assign addresses for source address translation.
The action is taken on packets not matching static-pool-term.
|
- Next to Term, click Add new
entry.
- In the Term name box, type dynamic-pool-term.
- Next to Then, click Configure.
- From the Designation list select Translated.
- Next to Translated, click Configure.
- From the Source pool choice list, select Source pool.
- In the Source pool box, type dynamic-pool.
- From the Source translation type list, select dynamic.
- Click OK.
|
Set the name of the term, its reference pool and its translation
type:
set rule static-in-dynamic-rule term dynamic-pool-term then
translated source-pool dynamic-pool translation-type source dynamic
|