[c5c522c] | 1 | Once you install the package, you can start using fail2ban by: |
---|
| 2 | 1. chmod +x /etc/rc.d/rc.fail2ban |
---|
| 3 | 2. /etc/rc.d/rc.fail2ban start |
---|
| 4 | |
---|
| 5 | Additionally, you can add the following to rc.local for automatic startup |
---|
| 6 | if [ -x /etc/rc.d/rc.fail2ban ]; then |
---|
| 7 | /etc/rc.d/rc.fail2ban start |
---|
| 8 | fi |
---|
| 9 | |
---|
| 10 | and add the following to rc.local_shutdown to stop fail2ban at shutdown |
---|
| 11 | if [ -x /etc/rc.d/rc.fail2ban ]; then |
---|
| 12 | /etc/rc.d/rc.fail2ban stop |
---|
| 13 | fi |
---|
| 14 | |
---|
| 15 | The package contains logrotate script copied from fail2ban manual, |
---|
| 16 | and modified to reflect Slackware packaging. You can find |
---|
| 17 | the original script at: |
---|
| 18 | |
---|
| 19 | http://www.fail2ban.org/wiki/index.php/MANUAL_0_8 |
---|
| 20 | |
---|
| 21 | UPGRADING: |
---|
| 22 | |
---|
| 23 | Please make sure you have all your modifications done to .local files instead of |
---|
| 24 | .conf files. |
---|
| 25 | |
---|
| 26 | Making modifications to .local files is the recommended practice as per the |
---|
| 27 | software manual. Each .conf file is overridden by equivalent .local file. |
---|
| 28 | Please refer Configuration section in fail2ban manual. |
---|
| 29 | |
---|
| 30 | Changelog: |
---|
| 31 | |
---|
| 32 | 08/03/2008 |
---|
| 33 | upgraded to fail2ban version 0.8.3, added restart option to rc script |
---|
| 34 | 12/28/2008 |
---|
| 35 | fixed a typo in rc.fail2ban that prevented showing usage info when run without options |
---|
| 36 | 09/08/2009 |
---|
| 37 | added some notes and simplified rc script. updated to version 0.8.4. Modified build script |
---|
| 38 | to account for users who keeps their config options in .conf files. Now the script |
---|
| 39 | moves the .conf files to .new which will prevent the overwrite of existing .conf files. |
---|
| 40 | 10/29/2010 |
---|
| 41 | Simplified rc.fail2ban start. Removed check for executable bit on rc.fail2ban during startup. |
---|