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.
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
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.
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1732 | |
1106 | |
752 | |
447 | |
240 |
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 2024 Fortinet, Inc. All Rights Reserved.