|
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 nat-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 nat-pool.
- Next to Address range, click Add
new entry.
- In the High box, type 10.10.10.16.
- In the Low box, type 10.10.10.1.
- Click OK.
|
Set the address pool name and the address range:
set pool nat-pool address-range high 10.10.10.16 low 10.10.10.1
|
|
Specify the source port pool to be automatically assigned by
the router.
|
- On the Pool page, next to Port, click Configure.
- From the Port choice list, select Automatic.
- Click OK twice.
|
Configure the source port translation to be automatic:
set pool nat-pool port automatic
|
|
Define selective-rule and set its match direction.
|
- On the Nat page, next to Rule, click Add new entry.
- In the Rule name box, type selective-rule.
- From the Match direction list, select input.
|
Set the rule and its match direction:
set rule selective-rule match-direction input
|
|
Define selective-term for selective-rule.
|
- Next to Term, click Add new
entry.
- In the Term name box, type selective-term.
|
Set the term:
set rule selective-rule term selective-term
|
|
Define the match condition for selective-term—the
source prefix 192.168.1.1/24.
|
- 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 192.168.1.1/24.
- Click OK twice.
|
Set the match condition for the term:
set rule selective-rule term selective-term from source-address
192.168.1.1/24
|
|
Define an action for selective-term—no translation.
The packets coming from the prefix 192.168.1.1/24 are skipped
and not translated.
|
- Next to Then, click Configure.
- From the Designation list, select No translation.
- Click OK twice.
|
Set the action for selective-term:
set rule selective-rule term selective-term then no-translation
|
|
Define accept-all-term for selective-rule.
|
- Next to Term, click Add new
entry.
- In the Term name box, type accept-all-term.
|
Specify a term for selective-rule:
set rule selective-rule term accept-all-term
|
|
Define an action for accept-all-term and set the translation
type for it.
|
- Next to Then, click Configure.
- From the Designation list, select Translated.
- Next to Translated, click Configure.
- From the Source Translation Type list, select dynamic.
- From the Source pool choice list, select Source pool.
- In the Source pool box, type nat-pool.
- Click OK.
|
Set the action for accept-all-term:
set rule selective-rule term accept-all-term then translated
translation-type source dynamic
set rule selective-rule term accept-all-term then translated
source-pool nat-pool
|