Closed dmacnet closed 10 years ago
Have you reported this issue upstream to the sshguard project?
I just edited my comment to note that I have discovered that someone else also submitted a (less comprehensive) patch for this issue to the sshguard project, in 2011. I didn't see how the sshguard maintainers handled it.
I just checked out the sshguard trunk from svn, and they have not fixed the problem there. The src/fwalls/ipfw.c file differs from the 1.5 version by only one line (aside from white space).
Please submit this upstream and make a pull request rather than embedding a patch in an issue.
My Mac running Snow Leopard 10.6.8 has been attacked by ssh login attempts from over 30 IP addresses which got blacklisted, which caused buffer overruns (SIGBUS) assembling the ipfw command in sshguard 1.5 from homebrew. Once I fixed those it exceeded limits in ipfw. Here is a patch that fixes all of them. This is my first time attempting to contribute to homebrew so I apologize if I didn't do something right; after reading the homebrew wiki I'm still not sure how to submit a patch.
After making this patch, I found a similar but less comprehensive patch by Jin Choi on the sshguard-users list: https://sourceforge.net/mailarchive/forum.php?thread_name=1E9730FA-4162-4764-A581-CB82665F7AF0%40me.com&forum_name=sshguard-users