Manual Chapter :
Creating an AFM NAT Policy
Applies To:
Show VersionsBIG-IP AFM
- 15.0.1, 15.0.0
Creating an AFM NAT Policy
Create the NAT address list
You can create an address list containing single IP addresses, a range of IP addresses, or IP address subnets. The address list is used later when modifying or creating a NAT rule.
- On the Main tab, click.
- ClickCreate.A properties area opens on the right.
- Type aNameandDescription.
- InAddresses, type an IPv4 or IPv6 IP address, range of IP addresses, or IP subnet.For example,ssh_admin_access, for administrative SSH access.
- ClickAdd.
- Repeat steps 4 and 5 to continue adding addresses to the address list.
- ClickSave.
The new address list appears in the Address Lists area.
Next, you can create a port list to translate specific service ports.
Create the NAT port list
You can create a port list that contains one or more service ports. You can reference the new port list later when modifying or creating a NAT rule.
- On the Main tab, click.
- ClickCreate.A properties area opens on the right.
- Type aNameand optionalDescription.
- In thePortsfield, type the service port number.For example,22for the SSH service.
- ClickAdd.
- Repeat steps 4 and 5 to continue adding ports to the port list.
- ClickSave.
The new port list appears in Port Lists area.
Next, you can create a source or destination translation object .
Create the NAT source translation object
You can create a NAT source translation object to specify source IP address and port translations. Reference the source translation object when modifying or creating a new NAT Policy.
- On the Main tab, click.
- ClickCreate.The Source Translation properties area opens on the right.
- Type aNameand optionalDescription.
- From theTypelist, select a translation type, or mode.
- In theAddressesfield, type an IP address, IP address range, or IP address subnet to be used for source IP translation.
- ClickAddafter each IP address entry.
- If you selected a PAT option, in thePortsfield, type a service port, or range of service ports to be used for source service port translation.This option is not available when Static-NAT is the selected translation mode.
- FromICMP Echo, select whether to enable or disable responses to ICMP Echo requests for translated source IP addresses.
- From theProxy ARPlist, select whether to enable or disable responding to ARP requests for translated source IP addresses.
- From theRoute Advertisementlist, select whether to enable or disable advertising routes for translated source IP addresses using the BIG-IP system's advanced routing modules.
- From theEgress Interfaceslist, select whether source IP address translation is allowed on a specific VLAN or tunnel:Enabled on- Source address translation is allowed on the selected interface or tunnel.Disabled on- Source address translation is not allowed on the selected interface or tunnel.
- Enabled on - Source address translation is allowed on the selected interface or tunnel.
- Disabled on - Source address translation is prohibited on the selected interface or tunnel.
- ClickSave.
The new source translation object appears in the Source Translation Object list.
Create the NAT destination translation object
You can create a NAT destination translation object to specify destination IP address and service port translations. Reference the Destination Translation object when modifying or creating a new NAT Policy.
- On the Main tab, click.
- ClickCreate.The destination translation Properties area opens on the right.
- Type aNameand optionalDescription.
- From theTypelist, select a translation type, or mode.
- In theAddressesfield, type an IP address, IP address range, or IP address subnet to be used for destination IP translation.
- ClickAddafter each IP address entry.
- If you selected theStatic-PAToption, in thePortsfield, type a service port, or range of service ports to be used for destination service port translation.
- ClickSave.
The new destination translation object appears in the destination translation object list.
Create the NAT policy
Create a NAT policy that includes one or more NAT rules to provide translation for source and destination IP address and service ports.
- On the Main tab, click.The Policies screen opens.
- ClickCreateto create a new policy.
- Type aNameand optionalDescription.
- ClickAdd Ruleto add a new NAT rule to the policy.
- For the new rule name, type aNameand an optionalDescription.
- From theStatelist, selectEnabledorDisabled.
- From theProtocollist, select a protocols.To view the most popular protocols such as TCP or ICMP, scroll to the top of the list.
- In theSourcefield, specify the matching IP address and service port criteria for source fields in the packet, and clickAdd.While you can type an IP address, range of IP addresses, IP subnet, port, or range of ports, F5 recommends associating address lists and port lists to simplify administration.You cannot specify a mix of IPv6 and IPv4 address types in a single NAT rule.
- In theDestinationfield, specify the matching IP address and service port criteria for destination fields in the packet, and clickAdd.While you can type an IP address, range of IP addresses, IP subnet, port, or range of ports, F5 recommends associating address lists and port lists to simplify administration.You cannot specify a mix of IPv6 and IPv4 address types in a single NAT rule.
- From theTranslated Sourcelist, select the appropriate source translation object.
- From theTranslated Destinationlist, select the appropriate destination translation object.
- From theLog Profilelist, select a logging profile to apply to the NAT rule.
- ClickDone Editing.
- To add another rule, repeat steps 4 through 13.
- At the top of the page, clickCommit Changes to System.The page displays the new NAT policy.
You have created a NAT policy that contains one or more NAT rules.
You can now apply the NAT policy to one of the BIG-IP system contexts or access points.