Search code examples
loggingftpiis-8.5x-forwarded-for

Add X-Fowarded-For to FTP log


We are using IIS 8.5 and already have advance logging for IIS sites. But I want the same thing for FTP logs. There is no option to add a field.

Looking for something like this but for "FTP Logging". http://www.loadbalancer.org/blog/iis-and-x-forwarded-for-header/


Solution

  • X-Forwarded-For is a field in the HTTP header which is set by an upstream proxy. FTP is not HTTP and thus FTP cannot make use of HTTP headers. There is also no other way to provide something like X-Forwarded-For in FTP. And what is not there can not be logged.