tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Add a patch to py-denyhosts
Hi,
I want to add a patch to py-denyhosts. Currently, denyhosts add
"denying hosts" as:
daemon: denying-hosts-ip-address : deny
on FreeBSD only. On other platform, they are added as:
daemon: denying-hosts-ip-address
It works fine under the condition:
* Configure denyhosts to add "denying hosts" to hosts.deny.
* Configure hosts_access(5) to allow access default.
But, if you want to configure hosts_access(5) to *deny* access
default, it dosen't work except FreeBSD. If denyhosts works on *BSD
as the same as FreeBSD, this problem will be solved.
(1) Add allowing hosts to hosts.allow.
(2) Add denying hosts to hosts.deny and lastly add "all: all: deny".
(3) Configure denyhosts to "denying hosts" to hosts.allow with ":deny".
Any comments?
--
Takahiro Kambe <taca%back-street.net@localhost>
--- DenyHosts/constants.py.orig 2006-04-08 07:03:39.000000000 +0900
+++ DenyHosts/constants.py
@@ -51,7 +51,7 @@ TIME_SPEC_LOOKUP = {'s': 1, # s
SYNC_MIN_INTERVAL = 300 # 5 minutes
plat = sys.platform
-if plat.startswith("freebsd"):
+if plat.startswith("dragonfly") or plat.startswith("freebsd") or
plat.startswith("netbsd") or plat.startswith("openbsd"):
# this has no effect if BLOCK_SERVICE is empty
BSD_STYLE = " : deny"
else:
Home |
Main Index |
Thread Index |
Old Index