Extension - Fail2Ban Jail for OpenCart

Extension Filter

Search

Categories

License

Version

Currency

Fail2Ban Jail for OpenCart

Fail2Ban Jail for OpenCart
Extension Name Fail2Ban Jail for OpenCart Rating 1 2 3 4 5
License Free Votes 1
Developer billynoah Views 770
Date Added 15 June 2014 Downloads 78
Date Modified 18 June 2014 Request Support
Report extension
FAIL2BAN JAIL for OPENCART

FEATURES:
=========
• Increased OpenCart Admin Security
• Bans IP of Failed Login attempts based on Fail2ban settings
• Compatible with Opencart 1.5.1 to 1.5.6.4

Requires vQmod 2.3+ and Fail2ban
Download Name Compatibility Action
Opencart Fail2ban Jail 1.5.1, 1.5.1.1, 1.5.1.2, 1.5.1.3, 1.5.2, 1.5.2.1, 1.5.3, 1.5.3.1, 1.5.4, 1.5.4.1, 1.5.5, 1.5.5.1, 1.5.6, 1.5.6.1, 1.5.6.2, 1.5.6.3, 1.5.6.4 [ Download ]

OPENCART FAIL2BAN JAIL

FEATURES:
=========
• Increased OpenCart Admin Security
• Bans IP of Failed Login attempts based on Fail2ban settings
• Compatible with Opencart 1.5.1 to 1.5.6.4

INSTALLATION & USAGE:
====================
Requires vQmod 2.3 or higher. You can get the latest release here:
http://code.google.com/p/vqmod/

Requires fail2ban. Install on Debian/Ubuntu with "sudo apt-get install fail2ban". If you've just installed fail2ban for the first time you may need to create the jail file by copying jail.conf to jail.local.

1) Upload "zuma-fail2ban.xml" into your vqmod/xml folder
2) Upload "opencart.conf" into your fail2ban filters folder (in Ubuntu/Debian this is typically /etc/fail2ban/filter.d)
3) Add OpenCart jail filter to fail2ban jail.local (in Ubuntu/Debian this is typically /etc/fail2ban/jail.local). Add the following block somewhere in the "HTTP Servers" section:

# Monitor OpenCart Admin

[opencart]

enabled = true
filter = opencart
port = http,https
logpath = /var/log/opencart/login.log
maxretry = 5
bantime = 600
findtime = 600

4) Create the directory for opencart logs and set permissions to writeable by the apache user. From bash you can execute the following lines one by one:

mkdir /var/log/opencart
chown www-data /var/log/opencart

Alternately you can uncomment the code in vQmod to use Opencart's local log directory, in which case you'll need to change the logpath in jail.local accordingly.

5) Restart fail2ban.

service fail2ban restart
or
fail2ban-client reload


That's it! If all goes well any user with a failed login attempt more than {maxretry} times within {findtime} seconds will be banned for {bantime} seconds. If it doesn't appear to work make sure to check php timezone settings are synced with the server's system time settings.

Good luck and happy banning!

CHANGELOG:
===========
v1.0 - June 15, 2014:
Original Release

SUPPORT:
========
For support, questions or bug reports please contact email me at billynoah@zuma-design.com.

Tags fail2ban, security, ban ip

Hosted by Arvixe Web Hosting