IP Prefix NAT
Use Case: Zonification of Clients for a Deployment of a NetScaler appliance and an Optimization Device
Configuration Steps
-
Create a net profile and set the NAT Rule parameter of a net profile. A NAT rule specifies two IP addresses and a net mask. The first IP address (specified by IP Address parameter) is the source IP address that is to be translated with the second one (specified by IP Rewrite parameter). The net mask specifies the part of the source IP address that is to be translated with the same part of the second IP address.
-
Bind the net profile to load balancing virtual servers or services. A net profile with NAT rule setting can be bound to a virtual server or service of type ANY, UDP, DNS, TCP, and HTTP. After binding a net profile to a virtual server or service, the NetScaler appliance matches the source IP address of the incoming packets related to the virtual server or service with the NAT rule setting. The NetScaler then performs IP prefix NAT for packets that match the NAT rule.
-
bind netProfile \<name> (-natRule \<ip_addr> \<netmask> \<rewriteIp>)
-
show netprofile \<name>
-
Navigate to System > Network > Net Profiles.
-
Set the following parameters under NAT Rules while adding or modifying NetProfiles.
-
IP Address
-
Netmask
-
Rewrite IP
-
Sample configuration
> add netprofile PARTIAL-NAT-1
Done
> bind netprofile PARTIAL-NAT-1 –natrule 192.0.0.0 255.0.0.0 100.0.0.0
Done
> add lb vserver LBVS-1 ANY 203.0.113. 61 * -netprofile PARTIAL-NAT-1
Done