zoukankan      html  css  js  c++  java
  • F5 IIS Log获取客户端源IP

    1.配置F5启用X-Forwarded-For方法: 

    1:Local Traffic-Profiles-Http-改"Insert XForwarded For"为Enable 
    2:Local Traffic-Virtual servers-点击需要改动的VS-将Type选项更改为Standard-将HTTP Profile 选项更改为Http

    2.配置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 x86Release or x64Release 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 have 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 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:ISAPIFiltersF5XForwardedFor.dll" to the Executable field and click OK enough times to exit the property dialogs.  At this point the filter should be working for you.  You can go back into the property 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 that shows up in the Features View.  In the Actions Pane on the right select the "Add" link and enter "F5XForwardedFor" for the name and "C:ISAPIFiltersF5XForwardedFor.dll" for the Executable.  Click OK and you are set to go.
  • 相关阅读:
    明确架构目标
    是什么浪费了我的时间
    精益求精,抑或得过且过[转]
    web界面应用的十种常见技术
    我对软件优化的一些想法
    最新31个非常棒的 Photoshop 网页设计教程
    sql2005提示工具程序
    转载:一篇深入了解.NET中栈和堆较好的文章
    推荐18个非常棒的Web和移动开发框架
    介绍一下这些工具FishAspnetLoader
  • 原文地址:https://www.cnblogs.com/dreamer-fish/p/5282500.html
Copyright © 2011-2022 走看看