1. Configure F5 to enable the X-forwarded-for method:
1:local traffic-profiles-http-Change "Insert xforwarded for" to enable
2:local traffic-virtual servers-Click the vs-you want to change to change the type option to standard-to change the HTTP Profile option to HTTP
2. Configure IIS (Https://devcentral.f5.com/articles/x-forwarded-for-log-filter-for-windows-servers):
- Download and unzip the f5xforwardedfor.zip distribution.
- Copy the F5XForwardedFor.dll file from the X86\release or X64\release directory (depending on your platform) into a target directory on your system. Let ' s say C:\ISAPIFilters.
- Ensure that the containing directory and the F5XForwardedFor.dll file has the Read permissions by the IIS process. It ' s easiest to just give full read access to everyone.
- Open the IIS Admin utility and navigate to the Web server that you would like to apply it to.
- For IIS6, right-click on your Web server and select Properties. Then select the "ISAPI Filters" tab. From there click the "Add" button and enter "F5xforwardedfor" for the Name and the path to the file "C:\ISAPIFilters\F5XFo RwardedFor.dll "to the Executable field and click OK enough times to exit the property dialogs. At the the filter should is working for you. You can go back into the "dialog to determine whether" the filter is active or an error occurred.
- For II7, you'll want to select your website and then double-click on the "ISAPI Filters" icon This shows up in the Feature S View. The Actions Pane on the right select the "Add" link and enter "F5xforwardedfor" for the name and "C:\ISAPIFilters\F5XFo RwardedFor.dll "for the executable. Click OK and you is set to go.
F5 IIS Log Gets the client source IP