Network Direction
Synopsis
Determines network traffic direction by analyzing source and destination IP addresses against defined internal networks.
Schema
network_direction:
- internal_networks: <string[]>
- source_ip: <string>
- destination_ip: <string>
- description: <text>
- if: <script>
- ignore_failure: <boolean>
- ignore_missing: <boolean>
- internal_networks_field: <ident>
- on_failure: <processor[]>
- on_success: <processor[]>
- tag: <string>
- target_field: <ident>
Configuration
Field | Required | Default | Description |
---|---|---|---|
internal_networks | Y* | - | CIDR ranges defining internal networks |
source_ip | N | source.ip | Field containing source IP |
destination_ip | N | destination.ip | Field containing destination IP |
description | N | - | Documentation note |
if | N | - | Conditional expression |
ignore_failure | N | false | Skip processing errors |
ignore_missing | N | true | Skip if fields missing |
internal_networks_field | N | - | Field containing internal networks (*required if internal_networks not set) |
on_failure | N | - | Error handling processors |
on_success | N | - | Success handling processors |
tag | N | - | Identifier for logging |
target_field | N | network.direction | Output field for direction |
Details
The processor classifies traffic as inbound, outbound, internal, or external based on whether IPs belong to specified internal networks.
Both IPv4 and IPv6 addresses in CIDR notation are supported for internal network definitions.
The processor classifies traffic into four categories:
Inbound | Traffic from external to internal networks |
Outbound | Traffic from internal to external networks |
Internal | Traffic between internal networks |
External | Traffic between external networks |
The processor is useful for analyzing network traffic patterns and flows to identify potential security threats, to monitor and log access to internal resources, to track and reporti on network traffic for compliance requirements, and to validate network segmentation policies.
At least one of internal_networks
or internal_networks_field
must be specified for the processor to function.
Examples
Basic
Classifying inbound traffic... |
|
identifies external to internal: |
|
Outbound
Detecting outbound connections... |
|
identifies internal to external: |
|
Internal
Monitoring internal network traffic... |
|
identifies internal communication: |
|
External
Monitoring external traffic... |
|
identifies external routing: |
|
Dynamic Internal
The networks from the field... |
|
uses configured ones: |
|