From c7ad12177a03d2021fec9505e29e6dd380290491 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 12 Jul 2013 14:47:22 -0700 Subject: [PATCH] Enhance description of events by mentioning xt_recent options. Signed-off-by: Tom Eastep --- docs/Events.xml | 66 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 65 insertions(+), 1 deletion(-) diff --git a/docs/Events.xml b/docs/Events.xml index 93cbf3d8b..270c26dfb 100644 --- a/docs/Events.xml +++ b/docs/Events.xml @@ -50,7 +50,7 @@ Has event E ever occurred for IP address A (is the IP address in - the list)? + the list)? @@ -103,6 +103,35 @@ + + Events are based on the Netfilter 'recent match' capability which is + required for their use. + + The recent-match kernel component is xt_recent which has two options + that are of interest to Shorewall users: + + + + ip_list_tot + + + The number of addresses remembered per event. Default is + 100. + + + + + ip_pkt_list_tot + + + The number of packets (event occurrences) remembered per + address. Default is 20. + + + + + These may be changed with the xt_recent module is loaded or on the + kernel bootloader runline.
@@ -380,6 +409,41 @@
+ +
+ 'show event' and 'show events' Commands + + The CLI programs (/sbin/shorewall, + /sbin/shorewall-lite, etc.) support show + event and show events commands. + + The show event command shows the contents of + the events listed in the command while show + events lists the contents of all events. + + root@gateway:~# shorewall show events +Shorewall 4.5.19-Beta2 events at gateway - Fri Jul 12 13:21:27 PDT 2013 + +Current time: 4404787304 <================ Times are 'milliseconds since boot' + +SSH <================= This and the next event are created by the Autoblacklist example below +src=125.46.13.163 ttl: 114 last_seen: 4403672214 oldest_pkt: 1 4403672214 +src=200.59.55.50 ttl: 32 last_seen: 4403225346 oldest_pkt: 2 4403225096, 4403225346 +src=65.182.111.112 ttl: 118 last_seen: 4404178828 oldest_pkt: 1 4404178828 + +SSH_COUNTER <====================== This event has not occurred recently. + +sticky001 <================== This and the next events are generated by the Shorewall SAME rule target. +src=172.20.1.146 ttl: 64 last_seen: 4404774586 oldest_pkt: 9 4404731690, 4404731690, 4404731690, 4404731690, 4404731690, 4404731691, 4404750647, 4404774560, 4404774586, 4404731667, 4404731667, 4404731669, 4404731669, 4404731669, 4404731669, 4404731669, 4404731669, 4404731688, 4404731689, 4404731689 + +sticky002 +src=172.20.1.213 ttl: 128 last_seen: 4404785474 oldest_pkt: 6 4404785172, 4404785215, 4404785324, 4404785397, 4404785407, 4404785474, 4404767925, 4404767925, 4404767925, 4404767942, 4404768011, 4404768011, 4404768011, 4404768012, 4404768014, 4404768014, 4404768042, 4404768042, 4404768042, 4404768043 + +root@gateway:~# + + Note that the times of the recent events are recorded for each + address. +