Cara NgeBlock SSH brute force di 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);
######


now lets install it.
#make install clean
# ee /etc/syslog.conf
find this line
#auth.info;authpriv.info |exec /usr/local/sbin/sshguard

uncomment that line.Then restart syslogd
#/etc/rc.d/syslogd restart


 

About Me

My photo
Presiden Director of : Monopoly Cell Groups, Monopoly Games and Internet Lounge, Monopoly Computer : Hardware, Maintenance and Supply Computer Product, Internet Networking Company, All in Depok City ,--------------------------, Send me Email : Radarmerauke@telkom.net

My Blog Stat :