Web Application Proxy on Windows 2019 Server puts 2 IPs in X-forwarded-FOR field
Good Day All!
I've got a problem after migrating from Windows 2016 to Windows 2019 with WAP. In Windows 2016 the field X-forwarded-FOR contained only external IP of client and everything was OK. Now it has 2 IPs - the first is external IP of client and, if I'm not mistaking, source IP and port of WAP server. Example:
146.0.61.113,+172.16.173.11:59398
The problem is that ADFS server (Windows 2019) doen't show in event logs (event ids 1200, 1201, 1203, 1210...) the external IP of a client, only IP of WAP server. For example:
<IpAddress>172.16.173.11</IpAddress>
<ForwardedIpAddress />
<ProxyIpAddress>N/A</ProxyIpAddress>
<NetworkIpAddress>N/A</NetworkIpAddress>
<ProxyServer>WAP</ProxyServer>
Is this a bug or a feature? :)
Or maybe I'm missing something in a configuration?