|
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 dest-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 dest-nat-pool.
- Next to Address, click Add new
entry.
- In the Prefix box, type 192.168.1.1/32.
- 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.
|
- On the Nat page, next to Rule, click Add new entry.
- In the Rule name box, type dest-nat-rule.
- 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.
|
- On the Rule page, next to Term, select Add new entry.
- In the Term name box, type dest-nat-term.
- Next to From, click Configure.
- Next to Destination address, click Add new entry.
- From the Address list, select Enter
Specific Value.
- In the Prefix box, type 121.0.1.1/32.
- 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.
|
- Next to Then, click Configure.
- From the Designation list, select Translated.
- Next to Translated, click Configure.
- Next to Translation type, click Configure.
- From the Destination list, select static.
- Click OK.
- From the Source pool choice list, select source prefix.
- In the Source prefix box, type 192.168.1.1/32.
- 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
|