IP Type
Synopsis
Analyzes IP addresses to determine their type (IPv4 or IPv6) and network classification (Public or Private) based on RFC specifications and reserved address ranges.
Schema
- ip_type:
description: <text>
field: <ident>
target_field: <ident>
if: <script>
ignore_failure: <boolean>
ignore_missing: <boolean>
on_failure: <processor[]>
on_success: <processor[]>
tag: <string>
Configuration
The following fields are used to define the processor:
Field | Required | Default | Description |
---|---|---|---|
field | Y | Field containing the IP address to analyze | |
target_field | N | Same as field | Base field name for storing IP type information |
description | N | - | Explanatory notes |
if | N | - | Condition to run |
ignore_failure | N | false | See Handling Failures |
ignore_missing | N | false | Continue processing if the field is missing |
on_failure | N | - | See Handling Failures |
on_success | N | - | See Handling Success |
tag | N | - | Identifier |
Details
The processor analyzes IP addresses and creates two sub-fields containing classification information:
{target_field}.type
: The IP version type (IPv4, IPv6, or Unknown){target_field}.network
: The network classification (Public, Private, or Unknown)
IPv4 Classification
For IPv4 addresses, the processor identifies private ranges according to RFC 1918 and other special-use addresses:
- Private ranges: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16
- Loopback: 127.0.0.0/8
- Link-local: 169.254.0.0/16
- Special addresses: 0.0.0.0/32, 255.255.255.255/32
IPv6 Classification
For IPv6 addresses, the processor identifies various private and special-use ranges:
- Loopback: ::1/128
- Link-local: fe80::/64
- Unique Local Addresses (ULA): fc00::/7
- Site-local (deprecated): fec0::/10
- Multicast: Various multicast ranges
This processor follows RFC 1918, RFC 3927, RFC 4193, and other networking standards to accurately classify IP addresses for security analysis and network monitoring.
The processor automatically handles IPv6 zone identifiers (e.g., fe80::1%eth0
) by stripping the zone suffix before analysis, ensuring accurate classification.
Use IP type classification for security analysis, network segmentation validation, and traffic analysis. Private IP detection is particularly useful for identifying internal vs. external traffic patterns.
Examples
Basic IPv4 Public Address
Analyze a public IPv4 address... |
|
to determine its classification: |
|
Private IPv4 Address
Identify private network addresses... |
|
with custom field names: |
|
IPv6 Public Address
Analyze IPv6 addresses... |
|
for version and network type: |
|
IPv6 Link-Local Address
Identify IPv6 link-local addresses... |
|
as private network addresses: |
|
Loopback Address Detection
Detect loopback addresses... |
|
as private network addresses: |
|
IPv6 with Zone Identifier
Handle IPv6 zone identifiers... |
|
by stripping the zone suffix: |
|
Multiple IP Analysis
Analyze multiple IP addresses... |
|
for traffic flow analysis: |
|
Corporate Network Classification
Classify corporate network addresses... |
|
for security analysis: |
|
Invalid IP Address Handling
Handle invalid IP addresses... |
|
with Unknown classification: |
|
IPv6 Unique Local Address
Identify IPv6 Unique Local Addresses... |
|
as private network addresses: |
|