2005-08-02から1日間の記事一覧

sshパスワード間違えたら一定時間アクセスを禁止する

辞書攻撃の対策として非常に有効です。 hosts.allow sshd : ALL : spawn ( /usr/local/bin/block_ssh_attack.sh %a 5 ) : allow /usr/local/bin/block_ssh_attack.sh #!/bin/sh# arg1 : ip addr ( can be given by tcpd ) # arg2 : suspend time in minutese…

hosts.allow

client address : %a client hostname : %n client username : %u client info : %c server address : %A server hostname : %N server process : %d server info : %s