# cd /usr/ports/security/denyhosts/
# make install clean //Pythonがなければ自動的にインストールされます。
# touch /etc/hosts.deniedssh //ファイルがなければ作成
# vi /usr/local/etc/denyhosts.conf
BLOCK_SERVICE = sshd //コメントアウト
# vi /etc/hosts.allow
sshd : /etc/hosts.deniedssh : deny //ALL : ALL : allowより上に書き込む
sshd : ALL : allow
# vi /etc/rc.conf
denyhosts_enable="YES" //自動起動
syslogd_flags="-c"
# /usr/local/etc/rc.d/denyhosts start //手動起動
参考
FreeBSDでDenyHostsのインストール (Bloom World)
# make install clean //Pythonがなければ自動的にインストールされます。
# touch /etc/hosts.deniedssh //ファイルがなければ作成
# vi /usr/local/etc/denyhosts.conf
BLOCK_SERVICE = sshd //コメントアウト
# vi /etc/hosts.allow
sshd : /etc/hosts.deniedssh : deny //ALL : ALL : allowより上に書き込む
sshd : ALL : allow
# vi /etc/rc.conf
denyhosts_enable="YES" //自動起動
syslogd_flags="-c"
# /usr/local/etc/rc.d/denyhosts start //手動起動
参考
FreeBSDでDenyHostsのインストール (Bloom World)
>>commemt
Copyright (C) 2007-2010 大塚味噌醸造所 All Rights Reserved.