NAT66 policy
NAT66 is used for translating an IPv6 source or destination address to a different IPv6 source or destination address. NAT66 is not as common or as important as IPv4 NAT, as many IPv6 addresses do not need NAT66 as much as IPv4 NAT. However, NAT66 can be useful for a number of reasons. For example, you may have changed the IP addresses of some devices on your network but want traffic to still appear to be coming from their old addresses. You can use NAT66 to translate the source addresses of packets from the devices to their old source addresses.
In FortiOS, NAT66 options can be added to an IPv6 security policy. Configuring NAT66 is very similar to configuring NAT in an IPv4 security policy.
To configure NAT66:
-
Go to Policy & Objects > Firewall Policy.
-
Click Create New.
-
Configure the required policy parameters.
-
Enable NAT and select Use Outgoing Interface Address. For packets that match this policy, its source IP address is translated to the IP address of the outgoing interface.
-
Click OK.
Nat66 can also translate one IPv6 source address to another address that is not the same as the address of the existing interface. You can do this using IP pools.
To configure the IPv6 pool:
-
Go to Policy & Objects > IP Pools.
-
Click Create New.
-
Enter the following:
IP Pool Type IPv6 Pool Name test-ippool6-1 External IP address/range 2000:172:16:101::1-2000:172:16:101::1 -
Click OK.
To use the IPv6 pool in the firewall policy:
-
Go to Policy & Objects > Firewall Policy.
-
Click Create New or edit an existing policy.
-
Configure the required policy parameters.
-
Enable NAT and select Use Dynamic IP Pool.
-
Click OK.
NAT66 destination address translation
NAT66 can also be used to translate destination addresses. This is done in an IPv6 policy by using IPv6 virtual IPs. For example, the destination address 2001:db8::dd can be mapped to 2001:db8::ee.
To configure the IPv6 VIP:
-
Go to Policy & Objects > Virtual IPs.
-
Click Create New > Virtual IP.
-
Enter the following:
VIP type IPv6 Name example-vip6 External IP address/range 2001:db8::dd Map to IPv6 address/range 2001:db8::ee -
Click OK.
To use the IPv6 VIP in the firewall policy:
-
Go to Policy & Objects > Firewall Policy.
-
Click Create New or edit an existing policy.
-
Configure the required policy parameters.
-
In the Destination field, select example-vip6 from the dropdown menu.
-
Click OK.