The NAPT Rule: Translating between private and public IP addresses
Follow these instructions to create a rule for translating the private IP addresses on your LAN to your public IP address. This type of rule uses the NAT flavor NAPT, which was used in your default configuration. The NAPT flavor translates private source IP addresses to a single public IP address. The NAPT rule also translates the source port numbers to port numbers that are defined on the NAT Global Configuration page (see Viewing Your NAT Setup and Statistics).
If the NAT Rule Configuration page is not already displaying, click the NAT tab, then select NAT Rule Entry from the NAT Options drop-down list.
Click to display the NAT Rule - Add page.
From the Rule Flavor drop-down list, select NAPT.
The page redisplays with only the fields that are appropriate for this NAT flavor.
Enter a rule ID.
The Rule ID determines the order in which rules are invoked (the lowest numbered rule is invoked first, and so on). In some cases, two or more rules may be defined to act on the same set of IP addresses. Be sure to assign the Rule ID so that the higher priority rules are invoked before lower-priority rules. It is recommended that you select rule IDs as multiples of 5 or 10 so that, in the future, you can insert a rule between two existing rules.
Once a data packet matches a rule, the data is acted upon according to that rule and is not subjected to higher-numbered rules.
From the IFName drop-down list, select the interface on the device to which this rule applies.
Typically, NAT rules are used for communication between your LAN and the Internet. Because the device uses the WAN interface (which may be named ppp-0, eoa-0, or ipoa-0) to connect your LAN to your ISP, it is the usual IFName selection.
In the Local Address From and Local Address To fields, type the starting and ending IP addresses, respectively, of the range of private address you want to be translated.
You can specify that data from all LAN addresses should be translated by typing 0 (zero) in each From field and 255 in each To field. Or, type the same address in both fields if the rule only applies to one LAN computer.
In the Global Address From field, type the public IP address assigned to you by your ISP.
Click . A page displays to confirm the change.
Click to return to the NAT Configuration page. The new rule should display in the NAT Rule Configuration table.
Ensure that the Enable radio button is selected, and then click . A page displays to confirm your changes.
Display the Admin tab, and click Commit & Reboot in the task bar.
Click to save your changes to permanent memory.
|