SitesManager: CIDR notation #1775

Closed
robocoder opened this Issue Oct 21, 2010 · 3 comments

2 participants

@robocoder

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.

@mattab
Piwik Open Source Analytics member

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

@robocoder

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

@robocoder

(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
@robocoder robocoder added this to the 1.4 - Piwik 1.4 milestone Jul 8, 2014
@robocoder robocoder self-assigned this Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment