Hi,
I found some informacion on the community sites refering reverse proxy but I am not sure.
We have a webserver behind a VIP with only 1 static IP (there are like 4 VIPs to different hosts in the DMZ). In one VIP the Dev Team would like to get the source public IP to see at the apache for a new service.
With the actual NAT they get only the DMZ interface IP because of the NAT.
Any good ideas?
Thanks
Solved! Go to Solution.
On the firewall policy that allows access to the VIP you should disable NAT in order to not do SNAT.
You have two options for that. You can use a web proxy profile. This profile adds the client's IP address to the HTTP request header.
Or you can use Virtual Server instead of VIP. This way also doing the same thing.
The dev team can catch real client IPs from the x-forwarded-for request header.
Hi Roland
Are you using a VIP or Virtual Server with SSL offloading?
Are you using DNAT only or have you also enabled SNAT at firewall policy level?
Hi,
I will check the options, thanks!
Right now it is a normal VIP with DNAT, so the apache only gets the IP of the DMZ Interface.
regards
Hi Roland
DNAT shouldn't change source NAT, so you should see the original source IP in the IP packet when it reaches the server. Or am I wrong?
On the firewall policy that allows access to the VIP you should disable NAT in order to not do SNAT.
User | Count |
---|---|
2153 | |
1191 | |
770 | |
451 | |
347 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.