Your software release may not support all the features documented in this module. For the latest caveats and feature information, see
Bug Search Tool and the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the feature information table at the end of this module.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to
www.cisco.com/go/cfn. An account on Cisco.com is not required.
Information About Firewall High-Speed Logging
Firewall High-Speed Logging Overview
Zone-based firewalls support high-speed logging (HSL). When HSL is configured, a firewall provides a log of packets that flow through routing devices (similar to the NetFlow Version 9 records) to an external collector. Records are sent when sessions are created and destroyed. Session records contain the full 5-tuple information (the source IP address, destination IP address, source port, destination port, and protocol). A tuple is an ordered list of elements.
HSL allows a firewall to log records with minimum impact to packet processing. The firewall uses buffered mode for HSL. In buffered mode, a firewall logs records directly to the high-speed logger buffer, and exports of packets separately.
A firewall logs the following types of events:
Audit—Session creation and
removal notifications.
Alert—Half-open and maximum-open TCP session notifications.
Drop—Packet-drop notifications.
Pass—Packet-pass (based on the configured rate limit) notifications.
Summary—Policy-drop and pass-summary notifications.
The NetFlow collector issues the show platform software interface F0 brief command to map the FW_SRC_INTF_ID and FW_DST_INTF_ID interface IDs to the interface name.
The following sample output from the show platform software interface F0 brief command shows that the ID column maps the interface ID to the interface name (Name column):
Device# show platform software interface F0 brief
Name ID QFP ID
GigabitEthernet0/2/0 16 9
GigabitEthernet0/2/1 17 10
GigabitEthernet0/2/2 18 11
GigabitEthernet0/2/3 19 12
NetFlow Field ID Descriptions
The following table lists NetFlow field IDs used within the firewall NetFlow templates:
Mapped Flow ID Fields (Network Address Translation)
FW_XLATE_SRC_ADDR_IPV4
225
4
Mapped source IPv4 address
FW_XLATE_DST_ADDR_IPV4
226
4
Mapped destination IPv4 address
FW_XLATE_SRC_PORT
227
2
Mapped source port
FW_XLATE_DST_PORT
228
2
Mapped destination port
Status and Event Fields
FW_EVENT
233
1
High level event codes
0—Ignore (invalid)
1—Flow created
2—Flow deleted
3—Flow denied
4—Flow alert
FW_EXT_EVENT
35,001
1
Extended event code.
Timestamp and Statistics Fields
FW_EVENT_TIME_MSEC
323
8
Time, in milliseconds, (time since 0000 hours UTC 4 January
1, 1970) when the event occurred
(if the event is a microevent, use 324 and 325, if it is a nanoevent)
FW_INITIATOR_OCTETS
231
8
Total number of Layer 4 payload bytes in the packet flow that arrives from the initiator
FW_RESPONDER_OCTETS
232
8
Total number of Layer 4 payload bytes in the packet flow that arrives from the responder
Time, in seconds, when the destination is blacked out or unavailable
FW_HALFOPEN_HIGH
35,005
4
Configured maximum rate of TCP half-open session entries logged in one minute
FW_HALFOPEN_RATE
35,006
4
Current rate of TCP half-open session entries logged in one minute
FW_MAX_SESSIONS
35,008
4
Maximum number of sessions allowed for this zone pair or class ID
Miscellaneous
FW_ZONEPAIR_ID
35,007
4
Zone pair ID
FW_CLASS_ID
51
4
Class ID
FW_ZONEPAIR_NAME
35,009
64
Zone pair name
FW_CLASS_NAME
100
64
Class name
FW_EXT_EVENT_DESC
35,010
64
Extended event description
FW_SUMMARY_PKT_CNT
35,011
4
Number of packets represented by the drop/pass summary record
FW_EVENT_LEVEL
33003
1
Defines the level of the logged event
0x01—Per box
0x02—VRF
0x03—Zone
0x04—Class map
Other values are undefined
FW_EVENT_LEVEL_ID
33,004
4
Defines the identifier for the FW_EVENT_LEVEL field
If FW_EVENT_LEVEL is 0x02 (VRF), this field represents VRF_ID.
If FW_EVENT_LEVEL is 0x03 (zone), this field represents ZONE_ID.
If FW_EVENT_LEVEL is 0x04 (class map), this field represents
CLASS_ID.
In all other cases the field ID will be 0 (zero). If FW_EVENT_LEVEL is not present, the value of this field must be zero.
FW_CONFIGURED_VALUE
33,005
4
Value that represents the configured half-open, aggressive-aging, and event-rate
monitoring limit. The interpretation of this field value depends
on the associated FW_EXT_EVENT field.
The event name of the firewall extended event maps the firewall extended event value to an event ID. Use the event name option record to obtain the mapping between an event value and an event ID.
Extended events are not part of standard firewall events (inspect, pass, or drop).
The following table describes the firewall extended events applicable prior to Cisco IOS XE Release 3.8S.
Table 2 Firewall Extended Events and Event Descriptions for Releases earlier than Cisco IOS XE Release 3.9S
Value
Event ID
Description
0
FW_EXT_LOG_NONE
No specific extended event.
1
FW_EXT_ALERT_UNBLOCK_HOST
New TCP connection attempts to the specified host are no longer blocked.
2
FW_EXT_ALERT_HOST_TCP_ALERT_ON
Maximum incomplete host limit for half-open TCP connections are exceeded.
3
FW_EXT_ALERT_BLOCK_HOST
All subsequent new TCP connection attempts to the specified host are denied because the maximum incomplete host threshold of half-open TCP connections is exceeded, and the blocking option is configured to block subsequent new connections.
4
FW_EXT_SESS_RATE_ALERT_ON
Maximum incomplete high threshold of half-open connections is exceeded, or the new connection initiation rate is exceeded.
5
FW_EXT_SESS_RATE_ALERT_OFF
Number of half-open TCP connections is below the maximum incomplete low threshold, or the new connection initiation rate has gone below the maximum incomplete low threshold.
Enabling High-Speed Logging for Global Parameter Maps
By default, high-speed logging (HSL) is not enabled and firewall logs are sent to a logger buffer located in the Route Processor (RP) or the console. When HSL is enabled, logs are sent to an off-box, high-speed log collector. Parameter maps provide a means of performing actions on the traffic that reaches a firewall and a global parameter map applies to the entire firewall session table. Perform this task to enable high-speed logging for global parameter maps.
Exits parameter-map type inspect configuration mode and returns to privileged EXEC mode.
Enabling High-Speed Logging for Firewall Actions
Perform this task enable high-speed logging if you have configured inspect-type parameter maps. Parameter maps specify inspection behavior for the firewall and inspection parameter-maps for the firewall are configured as the inspect type.
SUMMARY STEPS
1.enable
2.configure terminal
3.parameter-map type inspect parameter-map-name
4.audit-trailon
5.alert on
6.one-minute {low number-of-connections | high number-of-connections}
7.tcp max-incomplete host threshold
8.exit
9.policy-map type inspect policy-map-name
10.class type inspect class-map-name
11.inspect parameter-map-name
12.end
DETAILED STEPS
Command or Action
Purpose
Step 1
enable
Example:
Device> enable
Enables privileged EXEC mode.
Enter your password if prompted.
Step 2
configure terminal
Example:
Device# configure terminal
Enters global configuration mode.
Step 3
parameter-map type inspect parameter-map-name
Example:
Device(config)# parameter-map type inspect parameter-map-hsl
Configures an inspect parameter map for connecting thresholds, timeouts, and other parameters pertaining to the inspect keyword, and enters parameter-map type inspect configuration mode.
Step 4
audit-trailon
Example:
Device(config-profile)# audit-trail on
Enables
audit trail messages.
You can enable audit-trail to a parameter map to record the start, stop, and duration of a connection or session, and the source and destination IP addresses.
Step 5
alert on
Example:
Device(config-profile)# alert on
Enables stateful-packet inspection alert messages that are displayed on the
console.
Step 6
one-minute {low number-of-connections | high number-of-connections}
Example:
Device(config-profile)# one-minute high 10000
Defines the number of new unestablished sessions that cause the
system to start deleting half-open sessions and stop deleting
half-open sessions.
The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password.
Feature Information for Firewall High-Speed Logging
The following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to
www.cisco.com/go/cfn. An account on Cisco.com is not required.
Table 3 Feature Information for Firewall High-Speed Logging
Feature Name
Releases
Feature Information
Firewall High-Speed Logging
Cisco IOS XE Release 2.1
The Firewall High-Speed Logging Support feature introduces
support for the firewall HSL using NetFlow Version 9 as the export
format.
The following commands were introduced or modified: log dropped-packet, log flow-export v9 udpdestination, log flow-export template timeout-rate, parameter-map type inspect global.