Windows system >> Windowsの知識 >  >> Linuxシステムチュートリアル >> Linuxについて >> fail2banのを使用して、Linuxのインストール方法

fail2banのを使用して、Linuxのインストール方法

  
                

fail2banのは、効果的にsshが力ずくで防ぐことができ、以下の小さなシリーズは、インストールに焦点を当てると、誰もがLinuxの中で導入するために一緒に理解の下で、fail2banのを使用して、システムログを監視することができ、非常用ソフトウェアですそれは。

、iptablesの、TCPラッパー経由でこのIPアクセスをブロック別の方法をShorewallの。

必要Pytionサポート

Pythonのインストール

Pythonのインストール方法:

CD /tmpの

wgetのhttp://python.org /ftp/python/2.7.3/Python-2.7.3.tgz

はPython-2.7.3.tgz

CDのPython-2.7.3
xzfタール

。 /設定

作る&&

のrm -rfは/usr /binに/pythonの
インストール

のln -s /tmp/Python-2.7.3/python /作りますUSR /binに/

fail2banのは、

CD /tmpの

wgetのhttps://github.com/downloads/fail2ban/fail2ban/fail2ban_0.8.6.orig.tarを
取り付けられました。 GZ

のtar xzf fail2ban_0.8.6.orig.tar.gz

CD fail2banの-fail2banの-a20d1f8 /

。 /setup.py
インストール

CPファイル/RedHatの-initdを/etc/init.d/fail2ban

のchmod 755 /etc/init.d/fail2ban

fail2banの構成ログラウンドロビン:

VI /etc/logrotate.d/fail2ban

書かれている:

/var/log/fail2ban.log {

毎週< BR>

7

missingok

postrotate

1「を/dev /nullを再起動/etc/init.d/fail2ban
圧縮を回転させます

Copyright © Windowsの知識 All Rights Reserved