News for hackers. Stuff that matters.
Re:Bug in widely used OpenSSH opens servers to password crac... by praseodym on Tuesday July 21, 2015 @06:17PM (#9926262)
Recent Google Cloud Engine images have Sshguard enabled by default.

Now I do wonder: does this 'exploit' still cause a log line immediately after each attempt? And also, do iptables firewall rules also apply to open connections, or just to new ones? In the latter case, Sshguard and fail2ban are circumvented for a rather high number of attempts.

Re:Bug in widely used OpenSSH opens servers to password crac... by click170 on Tuesday July 21, 2015 @06:23PM (#9926294)
Iptables applies to all processed packets.

One of the common gotchas though is that if you add a rule to allow "Established" connections, and then try to add a new rule after that which says "block IP X", that will not sever existing connections.

To block existing connections you can remove that entry from the connection tracking table, or you can insert your "block IP X" rule above your "allow Established connections rule".

Re:Bug in widely used OpenSSH opens servers to password crac... by kazinator on Tuesday July 21, 2015 @09:33PM (#9927188)
iptables rules can (trivially) apply to all traffic, or they can be sensitive to connection state.

In the case of cracking, you'd just want to apply a blanket blan: completely black-hole any packet whatsoever coming from that IP to your box. That will freeze all existing connections.

To ban new connections, you'd have a rule that applies to TCP connections in the NEW state, leaving the ESTABLISHED ones alone.

Re:Bug in widely used OpenSSH opens servers to password crac... by rc4algorithm on Wednesday July 22, 2015 @10:43AM (#9929907)
In many cases, this is a bad idea. For example, this is eventually equivalent to blocking Tor. I've been dealing with this issue lately.