# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. ipchains = { plugin_version = "1.0.1" # Initial creation - 1.0 # 2011-01-11 - 1.0.1 - MSG - Edited info lines. info.1.manufacturer = "GNU" info.1.device = "ipchains" info.1.version.1 = "" # sessions, hits, bandwidth, pageviews, and visitors. # The name of the log format log.format.format_label = "ipchains Log Format" log.miscellaneous.log_data_type = "firewall" log.miscellaneous.log_format_type = "other" # The log is in this format if any of the first ten lines match this regular expression log.format.autodetect_regular_expression = "^[A-Z][a-z][a-z] [0-9 ][0-9] [0-9 ][0-9]:[0-9][0-9]:[0-9][0-9] [^ ]* kernel: Packet log: " # This regular expression is used to parse the log fields out of the log entry log.format.parsing_regular_expression = "^([A-Z][a-z][a-z] [0-9 ][0-9]) ([0-9 ][0-9]:[0-9][0-9]:[0-9][0-9]) ([^ ]*) kernel: Packet log: ([^ ]*) ([-A-Z]*) ([a-z0-9]*) PROTO=([0-9]*) ([^:]*):([^ ]*) ([^:]*):([^ ]*) L=([0-9]*) S=([0-9a-fA-Fx]*) I=([0-9]*) F=([0-9a-fA-Fx]*) T=([0-9]*) ([A-Z]*) *\\((#[0-9]*)\\)" # The format of dates and times in this log log.format.date_format = "mmm dd" log.format.time_format = "hh:mm:ss" statistics.miscellaneous.entry_name = "packets" # Log fields log.fields = { date = { label = "$lang_stats.field_labels.date" type = "date" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # date time = { label = "$lang_stats.field_labels.time" type = "time" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # time server = { label = "$lang_stats.field_labels.server" type = "flat" index = 0 subindex = 0 } # server chain = { label = "$lang_stats.field_labels.chain" type = "flat" index = 0 subindex = 0 } # chain action = { label = "$lang_stats.field_labels.action" type = "flat" index = 0 subindex = 0 } # action interface = { label = "$lang_stats.field_labels.interface" type = "flat" index = 0 subindex = 0 } # interface protocol = { label = "$lang_stats.field_labels.protocol" type = "flat" index = 0 subindex = 0 } # protocol source_ip = { label = "$lang_stats.field_labels.source_ip" type = "host" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # source_ip source_port = { label = "$lang_stats.field_labels.source_port" type = "flat" index = 0 subindex = 0 } # source_port destination_ip = { label = "$lang_stats.field_labels.destination_ip" type = "flat" index = 0 subindex = 0 } # destination_ip destination_port = { label = "$lang_stats.field_labels.destination_port" type = "flat" index = 0 subindex = 0 } # destination_port packet_length = { label = "$lang_stats.field_labels.packet_length" type = "size" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # packet_length service_type = { label = "$lang_stats.field_labels.service_type" type = "flat" index = 0 subindex = 0 } # service_type packet_id = { label = "$lang_stats.field_labels.packet_id" type = "flat" index = 0 subindex = 0 } # packet_id flags = { label = "$lang_stats.field_labels.flags" type = "flat" index = 0 subindex = 0 } # flags ttl = { label = "$lang_stats.field_labels.ttl" type = "flat" index = 0 subindex = 0 } # ttl type = { label = "$lang_stats.field_labels.type" type = "flat" index = 0 subindex = 0 } # type rule = { label = "$lang_stats.field_labels.rule" type = "flat" index = 0 subindex = 0 } # rule } # log.fields # Database fields database.fields = { date_time = { label = "$lang_stats.field_labels.date_time" log_field = "date_time" type = "string" suppress_top = 0 suppress_bottom = 3 display_format_type = "date_time" } # date_time day_of_week = { label = "$lang_stats.field_labels.day_of_week" log_field = "day_of_week" type = "string" suppress_top = 0 suppress_bottom = 2 display_format_type = "day_of_week" } # day_of_week hour_of_day = { label = "$lang_stats.field_labels.hour_of_day" log_field = "hour_of_day" type = "string" suppress_top = 0 suppress_bottom = 2 display_format_type = "hour_of_day" } # hour_of_day chain = { label = "$lang_stats.field_labels.chain" log_field = "chain" type = "string" suppress_top = 0 suppress_bottom = 2 } # chain action = { label = "$lang_stats.field_labels.action" log_field = "action" type = "string" suppress_top = 0 suppress_bottom = 2 } # action type = { label = "$lang_stats.field_labels.type" log_field = "type" type = "string" suppress_top = 0 suppress_bottom = 2 } # type source_ip = { label = "$lang_stats.field_labels.source_ip" log_field = "source_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # source_ip source_port = { label = "$lang_stats.field_labels.source_port" log_field = "source_port" type = "string" suppress_top = 0 suppress_bottom = 2 } # source_port destination_ip = { label = "$lang_stats.field_labels.destination_ip" log_field = "destination_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # destination_ip destination_port = { label = "$lang_stats.field_labels.destination_port" log_field = "destination_port" type = "string" suppress_top = 0 suppress_bottom = 2 } # destination_port interface = { label = "$lang_stats.field_labels.interface" log_field = "interface" type = "string" suppress_top = 0 suppress_bottom = 2 } # interface protocol = { label = "$lang_stats.field_labels.protocol" log_field = "protocol" type = "string" suppress_top = 0 suppress_bottom = 2 } # protocol service_type = { label = "$lang_stats.field_labels.service_type" log_field = "service_type" type = "string" suppress_top = 0 suppress_bottom = 2 } # service_type flags = { label = "$lang_stats.field_labels.flags" log_field = "flags" type = "string" suppress_top = 0 suppress_bottom = 2 } # flags ttl = { label = "$lang_stats.field_labels.ttl" log_field = "ttl" type = "string" suppress_top = 0 suppress_bottom = 2 } # ttl rule = { label = "$lang_stats.field_labels.rule" log_field = "rule" type = "string" suppress_top = 0 suppress_bottom = 2 } # rule server = { label = "$lang_stats.field_labels.server" log_field = "server" type = "string" suppress_top = 0 suppress_bottom = 2 } # server } # database.fields database.numerical_fields = { packets = { label = "$lang_stats.field_labels.packets" default = true requires_log_field = false type = "int" display_format_type = "integer" entries_field = true } # packets packet_length = { label = "$lang_stats.field_labels.packet_length" default = false requires_log_field = true log_field = "packet_length" type = "float" display_format_type = "bandwidth" } # packet_length } # database.numerical_fields log.filters = { mark_entry = { label = '$lang_admin.log_filters.mark_entry_label' comment = '$lang_admin.log_filters.mark_entry_comment' value = 'packets = 1;' } # mark_entry } # log.filters create_profile_wizard_options = { date_time_tracking = true host_tracking = true # How the reports should be grouped in the report menu report_groups = { date_time_group = "" chain = true action = true type = true source_ip = true source_port = true destination_ip = true destination_port = true interface = true protocol = true service_type = true flags = true ttl = true rule = true server = true } # report_groups } # create_profile_wizard_options not_supported = { visitors = true sessions = true pageviews = true } # not_supported } # ipchains