Opened 4 years ago

Closed 3 years ago

#1775 closed New feature (fixed)

SitesManager: CIDR notation

Reported by: vipsoft Owned by: vipsoft
Priority: normal Milestone: 1.4 - Piwik 1.4
Component: Core Keywords:
Cc: Sensitive: no

Description

IP exclusion currently limited to wildcards, e.g., 128.252.135.*

Support for CIDR notation would allow for the equivalent 128.252.135.0/24, but also allow for things harder to express using wildcards, e.g., 199.27.128.0/21.

Change History (5)

comment:1 Changed 3 years ago by matt (mattab)

  • Milestone changed from 1.1 - Piwik 1.1 to Features requests 1.x or 2.x

comment:2 Changed 3 years ago by matt (mattab)

  • Keywords wishlist added
  • Resolution set to wontfix
  • Status changed from new to closed

Wildcards and / or a combination of listing specific IP addresses will meet all use cases for IP exclusion within a company.

comment:3 Changed 3 years ago by vipsoft (robocoder)

Wildcards are limited to representing /24, /16, and /8.

comment:4 Changed 3 years ago by vipsoft (robocoder)

  • Keywords wishlist removed
  • Milestone changed from Feature requests to 1.4 - Piwik 1.4
  • Resolution wontfix deleted
  • Status changed from closed to reopened

comment:5 Changed 3 years ago by vipsoft (robocoder)

  • Resolution set to fixed
  • Status changed from reopened to closed

(In [4533]) fixes #1111 - add support for IPv6 addresses (tracking, anonymization, and exclusion)
fixes #2095 - add new anonymization hook (pre-heuristics)
fixes #2055 - optional IP filter when multiple proxies present
fixes #1775 - SitesManager: supports CIDR notation for IP exclusion

Notes:

  • Installer no longer checks for IPv6, so the related messages should be deleted from translations
  • IPv4 mapped addresses (e.g., ::ffff:127.0.0.1) are no longer re-mapped into IPv4 space
  • users who to query IP addresses from MySQL directly, can use the following SQL, but inet_ntoa() is limited to IPv4 addresses:
    select inet_ntoa(conv(hex(location_ip), 16, 10)) from piwik_log_visit;
    
  • Windows: IPv6 inet_pton()/inet_ntop() not supported until php 5.3; see #2351
Note: See TracTickets for help on using tickets.