The date entries are only recorded if PURGE_DENY is set since they are
used by DH in order to determine which entries to purge. If you do not
want to actually purge the data yet still have DH write the dates to the
/etc/hosts.deny, just set PURGE_DENY to something ridiculously huge, to
set it to 100 years:
PURGE_DENY=100y
Regards,
Phil
On Tue, 30 Jan 2007, René Berber wrote:
David Romerstein wrote:
I'm not seeing anything useful in the documentation or the .cfg file, so I
thought I'd ask here. Does anyone have a good way to timestamp hosts.deny
entries when DenyHosts adds them? I'd love to open my hosts.deny file and
see something like:
sshd: 10.0.0.1 # 2007-01-29 23:47:50
sshd: 192.168.10.2 # 2007-01-30 01:23:45
and so on.
I'm not python-y enough to add this feature myself, unfortunately.
Uh? Have you seen your /etc/hosts.deny?
$ tail /etc/hosts.deny
# DenyHosts: Tue Jan 30 00:53:15 2007 | sshd: 217.71.245.98
sshd: 217.71.245.98
# DenyHosts: Tue Jan 30 00:53:15 2007 | sshd: 212.109.44.92
sshd: 212.109.44.92
# DenyHosts: Tue Jan 30 00:53:15 2007 | sshd: 209.172.35.122
sshd: 209.172.35.122
# DenyHosts: Tue Jan 30 00:53:15 2007 | sshd: 66.231.174.226
sshd: 66.231.174.226
# DenyHosts: Tue Jan 30 00:53:15 2007 | sshd: 202.62.73.20
sshd: 202.62.73.20
--
Regards,
Phil Schwartz
- http://www.phil-schwartz.com
Open Source Projects:
- DenyHosts: http://www.denyhosts.net
- Kodos: http://kodos.sourceforge.net
- ReleaseForge: http://releaseforge.sourceforge.net
- Scratchy: http://scratchy.sourceforge.net
- FAQtor: http://faqtor.sourceforge.net
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Denyhosts-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/denyhosts-user