□VineLinux6でBan4ipのインストール
インストールの仕方だけ、だらだらと…
apt-get -y install php5 php5-devel php5-pear php5-pdo php5-pcntl pecl install channel://pecl.php.net/inotify-0.1.6 cat > /etc/php5/php.d/pcntl.ini # or Edit and remove ";" -------------------------------- extension=pcntl.so -------------------------------- cat > /etc/php5/php.d/inotify.ini -------------------------------- extension=inotify.so -------------------------------- 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 ./init.d/ban4ip /etc/init.d/ chkconfig --add ban4ip /usr/bin/fail2ban-client stop rm -rf /var/lib/fail2ban/fail2ban.sqlite3 /etc/init.d/ban4ip start tail -F /var/log/ban4ipd.log