Skip to content

Commit

Permalink
adds content to proc
Browse files Browse the repository at this point in the history
  • Loading branch information
Amrita42 committed Aug 4, 2023
1 parent 33ad3e3 commit 45e29a8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions xml/security_ssh.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1829,6 +1829,21 @@ cd path Change remote directory to 'path'
works on authentication log files and by default it scans files such as <filename>/var/log/auth.log</filename>,
<filename>/var/log/apache/access.log</filename>, etc.
</para>
<procedure>
<title>Using <emphasis>Fail2Ban</emphasis> to stop a SSH brute force attack</title>
<step><para>To install <emphasis>Fail2Ban</emphasis>, execute: </para>
<screen>&prompt.root;sudo zypper -n in fail2ban firewalld </screen>
</step>
<step><para>When you install <emphasis>Fail2Ban</emphasis>, a default configuration file
<filename>jail.conf</filename> is also installed. This file gets overwritten
when you upgrade <emphasis>Fail2Ban</emphasis>. To retain any customizations
you make to the file, you can copy the <filename>jail.conf</filename> file to
another file called <emphasis>jail.local</emphasis>. Both files are automatically read by
<emphasis>Fail2Ban</emphasis>.
</para>
<screen>&prompt.root;cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local</screen>
</step>
</procedure>
</sect2>
</sect1>
</chapter>

0 comments on commit 45e29a8

Please sign in to comment.