F5 IIS Log Gets the client source IP

Source: Internet
Author: User

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):

  1. Download and unzip the f5xforwardedfor.zip distribution.
  2. 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.
  3. 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.
  4. Open the IIS Admin utility and navigate to the Web server that you would like to apply it to.
  5. 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.
  6. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.