□CentOS7でBan4ipのインストール
またまたやり方だけダラダラと…
yum -y install php php-devel php-pear php-mbstring php-pdo php-process pecl install channel://pecl.php.net/inotify-0.1.6 cat > /etc/php.d/inotify.ini -------------------------------- extension=inotify.so -------------------------------- mkdir /usr/src/package cd /usr/src/package/ wget 'https://github.com/disco-v8/Ban4ip/archive/master.zip' -O Ban4ip-master.zip cd /usr/src/ unzip ./package/Ban4ip-master.zip cd ./Ban4ip-master/ chmod 700 ./ban4ipd chmod 700 ./ban4ipc chmod 755 ./init.d/ban4ip mkdir /etc/ban4ip/ mkdir /var/lib/ban4ip/ /bin/cp ./ban4ipd.conf /etc/ /bin/cp ./ban4ip/* /etc/ban4ip/ /bin/cp ./ban4ipc /usr/bin/ /bin/cp ./ban4ipd /usr/bin/ /bin/cp ./ban4ipd_*.php /usr/bin/ /bin/cp ./logrotate.d/ban4ip /etc/logrotate.d/ /bin/cp ./systemd/ban4ip.service /usr/lib/systemd/system/ systemctl daemon-reload systemctl status ban4ip systemctl enable ban4ip systemctl status ban4ip emacs /etc/ban4ipd.conf systemctl stop fail2ban rm -rf /var/lib/fail2ban/fail2ban.sqlite3 systemctl start ban4ip systemctl status ban4ip tail -F /var/log/ban4ipd.log