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

ACP: Banning IPs by range fails to ban all IPs in range

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • 3.1.7-RC1
    • 3.0.11, 3.0.12
    • ACP
    • None
    • PHP Version 5.3.3-7+squeeze17, MySQL 5.1.72, Firefox 25.0 WinXPpro SP3

      When banning a range of IPs that should generate a "xxx.xxx.255.*" or "xxx.255.*.*" ban_ip database entry in phpbb_banlist the 255.* range is left out.

      Example: Banning 0.0.251.0-0.0.1.1 generates ban_ip entries of

       0.0.251.*, 0.0.252.*, 0.0.253.*, 0.0.254.*, 0.1.0.*, 0.1.1.0 

      0.0.255.* is missing.

      Also, though perhaps I should raise this separately, banning a range such as 0.0.0.0-0.0.0.255 generates 256 individual ban_ip entries rather than one using a wildcard i.e. 0.0.0.* This is why I would ban this range using 0.0.0.0-0.0.1.0 then un-ban 0.0.1.0

        1. functions_user_original.php
          96 kB
        2. functions_user.php
          99 kB
        3. diff.txt
          6 kB

            Elsensee Oliver Schramm [X] (Inactive)
            petehorn petehorn [X] (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: