Linux/fail2ban: Difference between revisions

From Wiki
mNo edit summary
mNo edit summary
Line 2: Line 2:
<pre>
<pre>
apt install fail2ban
apt install fail2ban
cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local


systemctl enable fail2ban.service
systemctl enable fail2ban.service
systemctl restart fail2ban.service
systemctl restart fail2ban.service
systemctl status fail2ban.service
systemctl status fail2ban.service
</pre>
</pre>

Revision as of 21:01, 19 November 2023

Installation

apt install fail2ban

cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local

systemctl enable fail2ban.service
systemctl restart fail2ban.service
systemctl status fail2ban.service

Config



Status

fail2ban-client status