Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-10318

Option for reading client IP addresses from a header instead of REMOTE_ADDR

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major Major
    • 3.0.15-RC1, 3.1.12-RC1
    • 3.0.9
    • ACP
    • None
    • PHP 5.3.6, MySQL 5.1.57-rel12.8, Firefox 5

      Support topics: http://www.phpbb.com/community/viewtopic.php?f=46&t=2122051

      When phpbb is behind a reverse proxy, REMOTE_ADDR is the IP address of the proxy and not of board users. This behavior usually manifests itself as that same IP address displayed in ACP logs. However I believe we also have an option to tying sessions to IP addresses or networks, and in the case of everyone having the same IP the security of that option is nullified.

      It is currently impossible to tell phpbb to use a value in e.g. X-Forwarded-For header instead of REMOTE_ADDR for the purpose of determining users' IP addresses. We should investigate if just offering the option of using X-Forwarded-For would be enough, or if we would need to support arbitrary headers.

      X-Forwarded-For is used by (non-reverse) proxies. Therefore this option should be off by default. It should only be turned on by administrators who are behind a reverse proxy, and we should only take the most recently appended value of that header as the user's IP address (i.e., not follow it all the way).

        1. screen.bmp
          1.43 MB
          vkviswanath

            CHItA CHItA
            vkviswanath vkviswanath
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: