Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggested new jail, filter and action called "blacklist". #1476

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Suggested new jail, filter and action called "blacklist". #1476

wants to merge 3 commits into from

Conversation

mitchellkrogza
Copy link

Before submitting your PR, please review the following checklist:

  • CONSIDER adding a unit test if your PR resolves an issue
    Github is all new to me so excuse me if I have not added this suggestion
    correctly

  • LIST ISSUES this PR resolves
    Resolves persistent banning / repeat offenders across reboots properly.
    I have tried so many suggestions out there to have a persistent banning jail and eventually
    customized recidive on my own to achieve this. This logs to a simple text file and also nicely
    cleans up after itself.

  • MAKE SURE this PR doesn't break existing tests
    I have thoroughly tested this in my environment Ubuntu 16.04 and Fail2Ban 0.91

  • KEEP PR small so it could be easily reviewed.
    I hope I have the smallest footprint I possibly could.
    I am new to Github so excuse me if I am not doing this correctly.
    Love Fail2Ban and just want to contribute something I find very useful.

  • AVOID making unnecessary stylistic changes in unrelated code
    Hope I have done no such thing.

  • ACCOMPANY each new failregex for filter X with sample log lines
    within fail2ban/tests/files/logs/X file

    No FailRegex's I am have based this blacklist jail on recidive, in other words I have
    modified recidive so this could potentially either be considered as its own jail or could
    perhaps enhance the existing recidive filter.

All files well documented and tested in the server environment indicated and version of Fail2Ban indicated.

I have well documented all files, the best I possibly could.

Mitchell Krog added 3 commits July 4, 2016 17:33
All files well documented and tested in the server environment indicated and version of Fail2Ban indicated.
#
actionunban = <iptables> -D f2b-<name> -s <ip> -j DROP
# Remove IP from our ip.blacklist file
sed -i -e '/<ip>/d' /etc/fail2ban/ip.blacklist
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

file needs spellchecking, better description of the purpose, more uniform (spaces) indentation, and probably different locaation for the ip.blacklist (e.g. under /var/run/fail2ban/)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants