Here, operation check when NAT function of a source IP address is disabled will be introduced.
You can use this function when the server side wants to receive notification of the source IP address and X-Forwarded-For is not usable.
Normally, communication via the Load Balancer, by default, has the source IP address translated by NAT to the IP address that the Load Balancer has.
Default mode setting to disable NAT function of source IP address
Here, we will see how to change the default mode of source IP address NAT function of the Load Balancer.
By this change, newly created services are set not to use the source NAT function.
Presumed case for sample setting
From the [ Configuration ] menu, move to [ system ] → [ Settings ], and click [ Configure Modes ].
Configure Modes screen will open. Check mark [ Use Source IP ] and click the [ OK ] button.
Click “Save the running configuration“ in [Configuration] tab to save config.
Click “Yes” at popup screen.
After the setting above, all the newly-created Services and Service Group will have the source IP address NAT function disabled.
Note
The setting of the [ Use Source IP ] will not be changed if already-created Services and Service Group exist. In this case, setting change should be made individually.
Individual setting to disable NAT function of source IP address
Assume that we want to be able to check the IP address of the client PC (192.168.1.103) that accesses in the Web Server side.
Presumed case for sample setting
Assume that we want to be able to check the IP address of the client PC (192.168.1.103) that accesses in the Web Server side.
Assume that we want to set not to use the source NAT function of the Load Balancer.
We do not want to change the default source NAT operation mode.
Change will be made in the following environment.
Setting Items
|
Setting value
|
Virtual PC
|
192.168.1.103 |
Load Balancer
|
192.168.2.11 |
Virtual Server |
IP Address:192.168.1.200 |
Distribution destination Web Server
|
IP Address:192.168.2.12 |
Additional Setting
|
Use Source IP Address |
Note
In the following procedures, completion of Service registration/setting is assumed.
From the [ Configuration ] menu, move to [ Traffic Management ] → [ Services ]. Select the configured Service (www1) and click [ Edit ].
As [ Use Source IP Address ] is set to NO, click the right button on the [ Settings ] item to open the Edit screen of contents of the setting.
If you check mark [ Use Source IP Address ] on the [ Settings ], you can access the Server without NAT by the Load Balancer”.
Click “Save the running configuration“ in [Configuration] tab to save config.
Click “Yes” at popup screen.
That completes the setting to disable the source NAT function.
Operation check result
Access the IP Address (192.168.1.200) of the Virtual Server from the browser of the client PC. You can confirm that the web page is displayed on the browser of the client PC.
From the log of the Virtual Web Server, we confirmed that the source IP address is the IP address of the client PC, hence we confirmed the operation of disabling the source IP address NAT function.