Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
becki:linux:denyhosts [2013-11-22 09:47] becki created |
becki:linux:denyhosts [2016-03-11 09:10] (aktuell) becki |
||
---|---|---|---|
Zeile 4: | Zeile 4: | ||
Denyhosts blocks IP addresses from which SSH breakin attempts are detected. | Denyhosts blocks IP addresses from which SSH breakin attempts are detected. | ||
- | Blocked IP addresses are added to ''/etc/hosts.deny''. | + | [[http://www.geekride.com/index.php/secure-your-ssh-server-with-denyhosts/|found here]] - [[ http://denyhosts.sourceforge.net/features.html|Homepage]] |
- | See also: http://www.geekride.com/index.php/secure-your-ssh-server-with-denyhosts/ | + | Blocked IP addresses are added to ''/etc/hosts.deny''. |
===== Slackware == | ===== Slackware == | ||
Zeile 89: | Zeile 89: | ||
More info at /usr/share/denyhosts/README.txt | More info at /usr/share/denyhosts/README.txt | ||
- | FIXME Check ''--purge'' | + | FIXME Check if blocked hosts really get purged after 1 week! |
===== Debian == | ===== Debian == | ||
Zeile 100: | Zeile 100: | ||
Then restart with ''/etc/init.d/denyhosts restart''. | Then restart with ''/etc/init.d/denyhosts restart''. | ||
+ | ===== Howto remove blocked adresses == | ||
+ | |||
+ | The software stores its data internally, probably at ''/usr/share/denyhosts/data''. Manual changes in ''/etc/hosts.deny'' get overwritten! | ||
+ | |||
+ | Did not find anythind regarding this topic on the homepage of denyhosts. So here is workaround to delete //all// blocked hosts: | ||
+ | |||
+ | Stop daemon: ''/etc/rc.d/rc.denyhosts stop'' | ||
+ | Set ''PURGE_DENY = 1m'' in ''/etc/denyhosts.cfg'' | ||
+ | Run ''denyhosts.py --purge'' | ||
+ | Restore ''PURGE_DENY = 1w'' in ''/etc/denyhosts.cfg'' | ||
+ | Restart daemon: ''/etc/rc.d/rc.denyhosts start'' | ||