Quantcast
Channel: プログラム の個人的なメモ
Viewing all articles
Browse latest Browse all 860

【Linux】Linuxのセキュリティ ~ fail2ban ~

$
0
0

■ はじめに

https://blogs.yahoo.co.jp/dk521123/37253842.html
で、「Installing fail2ban」とあったので、調べてみた

■ fail2ban について

 * ブルートフォース攻撃 / 不正アクセスを検知し、自動的にそのIPアドレスからのアクセスを遮断する
 * Python製

■ fail2ban の設定ファイル

/etc/fail2ban/fail2ban.conf
 * 全体的な動作を設定
/etc/fail2ban/jail.conf
 * どのようなサービスとログファイルを監視するかを設定
/etc/fail2ban/jail.local
 * Fail2banを更新しても上書きされない
  => サイトごとの設定はこのファイルで指定可能

■ 環境構築

Raspbian (Raspberry PI)の場合

インストール
# インストール
sudo apt-get install fail2ban

# 「active (running)」かどうか確認
sudo systemctl status fail2ban

# バージョン確認できる
fail2ban-client -i

exit


関連記事

【Raspberry PI】ラズパイのセキュリティを考える

https://blogs.yahoo.co.jp/dk521123/37253842.html

Viewing all articles
Browse latest Browse all 860

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>