|
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 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, 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 nat-pool address 121.0.1.0/24
|
|
Define nat-rule and set its match direction.
|
- On the Nat page, next to Rule, click Add new entry.
- In the Rule name box, type nat-rule.
- From the Match direction list, select output.
|
Set the rule name and its match direction:
set rule nat-rule match-direction output
|
|
Define nat-term for nat-rule and specify its
match condition—source address 10.0.1.0/24.
|
- On the Rule page, next to Term, select Add new entry.
- In the Term name box, type nat-term.
- Next to From, click Configure.
- Next to Application sets, click Add new entry.
- In the Application set name box, type nat-application.
- Next to Applications, click Add
new entry.
- In the Application name box, type nat-application.
- Next to Destination address, click Add new entry.
- From the Address list, select Enter
Specific Value or any-unicast.
- If you have selected Enter Specific
Value, then in the Address box, type 10.100.136.1/24.
- Next to Destination address range, click Add new entry.
- Next to Low box, type 10.100.136.1/24.
- Next to High box, type 10.00.136.5/24.
- Next to Destination prefix list, click Add new entry.
- In the Name box, type nat-destination.
- Next to Source Address, click Add
new entry.
- From the Address list, select Enter
Specific Value or any-unicast.
- If you have selected Enter Specific
Value, then in the Prefix box, type 10.100.136.1/24.
- Next to Source address range, click Add new entry.
- Next to Low box, type 10.100.136.1/24.
- Next to High box, type 10.100.136.5/24.
- Next to Source prefix list, click Add new entry.
- In the Name box, type nat-source.
- Click OK twice.
|
Set the term name and its match condition:
set rule nat-rule term nat-term from application-sets nat-application
set rule nat-rule term nat-term from source-address 10.100.136.5/24
set rule nat-rule term nat-term from source-address-range
10.100.136.1/24 10.100.136.5/24
set rule nat-rule term nat-term from source-prefix-list
nat-source
set rule nat-rule term nat-term then translated source-pool
nat-pool
|
|
Specify the referenced pool for nat-term and set its
action—to translate the source addresses to addresses from the
referenced pool on a one-to-one basis.
|
- From the Nat Type choice list, select full-cone.
- Next to Then, select Configure.
- From the Designation list, select Translated.
- Next to Translation type, click Configure.
- From the Source pool choice list, select Source pool.
- In the Source pool box, type nat-pool.
- Click OK.
|
Set the pool and action for the term:
set rule nat-rule term nat-term then translated source-pool
nat-pool translation-type source static
set rule nat-rule term nat-term from destination-address
10.100.136.1/24
set rule nat-rule term nat-term from destination-address-range
10.100.136.1/24 10.100.136.5/24
set rule nat-rule term nat-term from destination-prefix-list
nat-destination
set rule nat-rule term nat-term then nat-group1
set rule nat-rule term nat-term nat-type full-cone
|
|
Specify the groups for which this NAT configuration is applicable
and the exception groups.
|
Expand the Advanced option.
- Next to the Apply groups, click Add new entry.
- In the Value box, type nat-group.
- Next to the Apply groups except, click Add new entry.
- In the Value box, type nat-group1.
- Click OK twice.
|
Set the group and group exceptions for NAT:
set rule nat-rule term nat-term then translated nat-group
set rule nat-rule term nat-term then translated nat-group1
|