Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

readme update

  • Loading branch information...
commit 898d83261f7eef115dd0ee9a2d9f51626b1681a6 1 parent 092acce
@jvehent authored
Showing with 13 additions and 10 deletions.
  1. +13 −10 README.md
View
23 README.md
@@ -10,17 +10,17 @@ Published under GPL v2
Examples:
-1. short report on full log file
+Short report on full log file
---------------------------------
$ python postscreen_stats.py -f maillog.1 -r short -y 2011
- === Postscreen statistics ===
- 0 BLACKLISTED
- 33 COMMAND COUNT LIMIT
- 0 COMMAND LENGTH LIMIT
- 16 COMMAND PIPELINING
- 6 COMMAND TIME LIMIT
- 11010 CONNECT
+ === Postscreen statistics ===
+ 0 BLACKLISTED
+ 33 COMMAND COUNT LIMIT
+ 0 COMMAND LENGTH LIMIT
+ 16 COMMAND PIPELINING
+ 6 COMMAND TIME LIMIT
+ 11010 CONNECT
536 DNSBL
503 HANGUP
42 NOQUEUE MAXCONN
@@ -40,7 +40,8 @@ Examples:
count|12 |21 |21 |196 |261 |88 |40 |29 |53 |119 |
% |1.4 |2.5 |2.5 |23 |31 |10 |4.8 |3.5 |6.3 |14 |
-2. get the statistics for a specific IP only
+
+Get the statistics for a specific IP only
--------------------------------------------
$ python postscreen_stats.py -f maillog.1 -r ip -i 1.2.3.4
@@ -54,9 +55,11 @@ Filtering results to match: 1.2.3.4
HANGUP count: 2
-3. Geo Localisation of blocked IPs
+
+Geo Localisation of blocked IPs
-----------------------------------
+
Use the '-g' switch to activate geolocalisation against hostip.info. At the moment, there are two big limitations to geolocalisation:
1. It's slow ! Don't expect to get more than 2/3 IPs per second. So if you have 2000 IPs to geolocalise, it will take a while to run
2. It only gives the Country of the IP. I didn't find the need to query the whole GPS data, but that's easy enough to change.
Please sign in to comment.
Something went wrong with that request. Please try again.