13 August 2010 ~ 0 Comments

Blocking comment spammers by IP

TweetI use Akismet to block comment spam, but it still annoys me that it even exists. Last night I put a simple IP ban into my httpd config. But who to block? I used a grep & Perl to get a rough guess of which IPs were submitting the most comments (working on the assumption [...]

Continue Reading

11 May 2009 ~ 0 Comments

iptables rules for rate-limiting SSH connections

TweetThis is what I use on my CentOS boxes/VMs, it rate-limits the connections and also rate-limits the log messages (to prevent attacks that attempt to fill up the server’s disk). iptables -F iptables -X iptables -N LOGDROP #Create the LOGDROP chain iptables -A LOGDROP -m limit –limit 1/s -j LOG –log-prefix “LOGDROP: ” # Rate-limit [...]

Continue Reading