fail2ban/doc
2026-05-28 21:39:01 +08:00
..
conf.py replace distutils for python 3.12 2024-04-27 10:24:01 -07:00
develop.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
Doxyfile - Added common/ source directory 2007-05-03 20:26:56 +00:00
fail2ban.client.actionreader.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.client.beautifier.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.client.configparserinc.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.client.configreader.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.client.configurator.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.client.csocket.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.client.fail2banreader.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.client.filterreader.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.client.jailreader.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.client.jailsreader.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.client.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.exceptions.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.helpers.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.protocol.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.server.action.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.server.actions.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.server.asyncserver.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.server.banmanager.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.server.database.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.server.datedetector.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.server.datetemplate.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.server.failmanager.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.server.failregex.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.server.filter.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.server.filterpoll.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.server.filterpyinotify.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.server.filtersystemd.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.server.jail.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.server.jails.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.server.jailthread.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.server.mytime.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.server.rst remove support of python 2.x 2023-06-16 16:29:08 +02:00
fail2ban.server.server.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.server.strptime.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.server.ticket.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.server.transmitter.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
fail2ban.server.utils.rst - performance of fail2ban optimized 2015-12-29 12:49:19 +01:00
fail2ban.version.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
filters.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
index.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
Makefile DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
README.pwhois Moved README.pwhois to doc/ 2013-12-23 06:15:12 -07:00
release.rst DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
requirements.txt DOC: sphinx documentation 2014-03-29 22:07:33 +00:00
run-rootless.txt ENH: Add root user check in xt_recent, and add missing actionstop 2014-02-16 16:52:30 +00:00

Fail2ban Prefix Whois Modifications
-----------------------------------

We (the Prefix Whois folks) have been using fail2ban to protect various 
services, and over time we have found that whois doesn't always provide 
useful information without additional digging (see examples below). The
modified action configuration files use whois.pwhois.org with the standard
whois client installed on your operating system. The changes also include
passing a parameter that indicates the query is coming from a fail2ban 
installation, as well as the service being blocked. We plan on making a
blacklist with automatic age-outs built with this data available to the
community in the future.

Files:
------
action.d/complain-pwhois.conf
action.d/sendmail-pwhois-lines.conf
action.d/sendmail-pwhois.conf


Example Whois Output:
---------------------
[whois.arin.net]

#
# ARIN WHOIS data and services are subject to the Terms of Use
# available at: https://www.arin.net/whois_tou.html
#


#
# Query terms are ambiguous.  The query is assumed to be:
#     "n 142.54.168.146"
#
# Use "?" to get help.
#

#
# The following results may also be obtained via:
# http://whois.arin.net/rest/nets;q=142.54.168.146?showDetails=true&showARIN=false&ext=netref2
#

DataShack, LC DSV4-4 (NET-142-54-160-0-1) 142.54.160.0 - 142.54.191.255
MMO Solution DS-168-146-150 (NET-142-54-168-144-1) 142.54.168.144 - 142.54.168.151



#
# ARIN WHOIS data and services are subject to the Terms of Use
# available at: https://www.arin.net/whois_tou.html
#

Example Pwhois Output:
----------------------
[whois.pwhois.org]
IP: 142.54.168.146
Origin-AS: 33387
Prefix: 142.54.160.0/19
AS-Path: 1239 174 32097 33387
AS-Org-Name: DataShack, LC
Org-Name: MMO Solution
Net-Name: DS-168-146-150
Cache-Date: 1383626547
Latitude: 39.147840
Longitude: -94.568880
City: KANSAS CITY
Region: MISSOURI
Country: UNITED STATES
Country-Code: US
AS-Org-Name-Source: ARIN
Org-Name-Source: ARIN
Net-Name-Source: ARIN
Route-Create-Date: Aug 22 2012 00:01:25
Route-Modify-Date: Nov 05 2013 00:01:21
Next-Hop: 144.228.241.130
Net-Range: 142.54.168.144 - 142.54.168.151
Net-Type: reassignment
Net-Register-Date: 2013-10-21
Net-Update-Date: 2013-10-21
Net-Create-Date: Sep 19 2013 01:51:07
Net-Modify-Date: Nov 05 2013 01:53:22
Org-Record: 0
Org-ID: C04738597
Org-Name: MMO Solution
Can-Allocate: 0
Street-1: 201 E. 16th st
City: North Kansas City
State: MO
Postal-Code: 64116
Country: US
Register-Date: 2013-10-21
Update-Date: 2013-10-21
Create-Date: Oct 23 2013 01:52:34
Modify-Date: Nov 05 2013 01:53:22