Archive for July, 2008

how to Block SSH brute force in freeBSD

July 11th, 2008 | 1 Comment »
Posted by admin under FreeBSD

I hate ssh bruteforce !!! here i explain to you how to block bruteforce in your ssh port.
#cd /usr/ports/security/sshguard
#make fetch extract
#cd work/sshguard-1.0/src
# ee sshguard.c

change line 153-157 :
###
if (fw_fin() != FWALL_OK) sshguard_log(LOG_ERR, “Cound not
finalize firewall.”);

sshguard_log_fin();

return 0;
###

to

#####
exit(0);
######

Read the rest of this entry »