分类:
2008-05-01 08:49:43
inetd_enable="YES"
/usr/sbin/inetd -wW -C 60
cd /usr/ports/security/sshblock設定檔: 在 /etc/rc.conf加入
make install
make clean
sshblock_enable="YES" # 開機自動啟動參數部份可以設定為 -t /usr/local/etc/sshblock.tragger (名稱自訂), 內容為 60:3
sshblock_flags="sshblock參數" # 參數設定, 可從 sshblock -h 取的詳細資料
/usr/local/etc/rc.d/sshblock start # 手動啟動如此只要有嘗試登入的就會在/etc/hosts.allow最後方出現:
# Added by SSHBlock [Mon Mar 17 17:49:11 2008]補充:
# 6 break-in attempts in 15 seconds:
sshd : 嘗試登入的host/IP : deny