LINUXOPOLIS # 27-FEBRUARY-2020 ~ FAIL2BAN

wglenz(54)
Published in
#linux
Words
11
Reading
1 min
Listen
Play
7y

FAIL2BAN

Building a Linux Habitat
willi glenz @ telegram
Published with SteemPeak
home ~ previous

screenshot by willi glenz

vim ~/.config/fish/functions/gfail2ban.fish

function gfail2ban --description 'fail2ban'
    clear; echo
    echo '=========================================================================='
    echo '                                 FAIL2BAN                                 '
    echo '--------------------------------------------------------------------------'
    echo '/etc/fail2ban/fail2ban.conf                                               '
    echo '/etc/fail2ban/jail.conf                                                   '
    echo '=========================================================================='
    echo '                                                                          '
    echo ' # apt install fail2ban                                                   '
    echo ' # systemctl status fail2ban                                              '
    echo ' # systemctl start|stop|enable|disable|restart fail2ban                   '
    echo ' # fail2ban-client status                                                 '
    echo ' # cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local                    '
    echo ' # lnav /var/log/fail2ban.log                                             '
    echo ' # glances -w &                                                           '
    echo '                                                                          '
    echo '--------------------------------------------------------------------------'
    echo '                                                                          '
    echo ' # man fail2ban                                                           '
    echo ' # man lnav glances systemctl                                             '
    echo '                                                                          '
    echo '=========================================================================='
    echo
end
SOURCES
 homepage ..................................... fail2ban.org/wiki/index.php/Main_Page
 documentation ............................... fail2ban.org/wiki/index.php/MANUAL_0_8
 lecture ....................................................... youtu.be/xcXheAWy7cU
 fish ......................................... fishshell.com/docs/current/index.html
 picture ....................................... screenshoot by me ~ my gnome-desktop
LINUXOPOLIS # 27-FEBRUARY-2020 ~ FAIL2BAN | Ecency