tag:blogger.com,1999:blog-8616610987649128333.post9167088512004987725..comments2024-03-07T18:07:32.939+01:00Comments on That grumpy BSD guy: The slow brutes, a final roundupPeter N. M. Hansteenhttp://www.blogger.com/profile/12852746787621165833noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-8616610987649128333.post-29099272511441660952009-04-13T20:52:00.000+02:002009-04-13T20:52:00.000+02:00Here is a mess of a script I quickly hacked out in...Here is a mess of a script I quickly hacked out in python to retrieve the denyhosts list. It is my first attempt at working with Python and I must give credit to the denyhosts guys since I really just looked through their scripts to figure it out.<BR/><BR/>www.evildaystar.net/~two_tone/getips.py<BR/><BR/>Since this just gets a list of ips and sticks them in a file you could take out the file handler and related bits and make the for loop stick the ips in your firewall.Unknownhttps://www.blogger.com/profile/14324844481523442022noreply@blogger.comtag:blogger.com,1999:blog-8616610987649128333.post-27212034748376469642009-02-09T08:26:00.000+01:002009-02-09T08:26:00.000+01:00As long as denyhosts supplies data in some sort of...As long as denyhosts supplies data in some sort of readable and parseable format (not immediately obvious from the web site but probably plain as day somewhere in the source), it should be pretty easy to extract the IP addresses and feed them to pfctl for inclusion in a table whose members are treated to "block drop".Peter N. M. Hansteenhttps://www.blogger.com/profile/12852746787621165833noreply@blogger.comtag:blogger.com,1999:blog-8616610987649128333.post-46925095159943380992009-02-09T07:43:00.000+01:002009-02-09T07:43:00.000+01:00I use http://denyhosts.sourceforge.net/ and subscr...I use http://denyhosts.sourceforge.net/ and subscribe to their update feature on my servers.<BR/>Now I need a way to get the deny list onto my openbsd firewall and block the hosts before it hits my servers.newmemberhttps://www.blogger.com/profile/17370739641218426150noreply@blogger.com