<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="it">
	<id>https://wiki.golem.linux.it/index.php?action=history&amp;feed=atom&amp;title=Fail2ban</id>
	<title>Fail2ban - Cronologia</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.golem.linux.it/index.php?action=history&amp;feed=atom&amp;title=Fail2ban"/>
	<link rel="alternate" type="text/html" href="https://wiki.golem.linux.it/index.php?title=Fail2ban&amp;action=history"/>
	<updated>2026-05-09T15:09:29Z</updated>
	<subtitle>Cronologia della pagina su questo sito</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>https://wiki.golem.linux.it/index.php?title=Fail2ban&amp;diff=9465&amp;oldid=prev</id>
		<title>Giomba: /* Rimuovere ban manualmente */</title>
		<link rel="alternate" type="text/html" href="https://wiki.golem.linux.it/index.php?title=Fail2ban&amp;diff=9465&amp;oldid=prev"/>
		<updated>2024-10-06T10:05:54Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Rimuovere ban manualmente&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;it&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Versione meno recente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Versione delle 10:05, 6 ott 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l33&quot; &gt;Riga 33:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 33:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Rimuovere ban manualmente ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Rimuovere ban manualmente ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  fail2ban-client set &amp;lt;jailname&amp;gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;unban &lt;/del&gt;&amp;lt;ip&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  fail2ban-client set &amp;lt;jailname&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;unbanip &lt;/ins&gt;&amp;lt;ip&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Giomba</name></author>
	</entry>
	<entry>
		<id>https://wiki.golem.linux.it/index.php?title=Fail2ban&amp;diff=9464&amp;oldid=prev</id>
		<title>Giomba: Creata pagina con &quot;''fail2ban'' è un demone di sicurezza pensato principalmente per prevenire attacchi di forza bruta.  ''fail2ban'' legge i log delle applicazioni configurate, alla ricerca di...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.golem.linux.it/index.php?title=Fail2ban&amp;diff=9464&amp;oldid=prev"/>
		<updated>2024-10-05T14:36:28Z</updated>

		<summary type="html">&lt;p&gt;Creata pagina con &amp;quot;&amp;#039;&amp;#039;fail2ban&amp;#039;&amp;#039; è un demone di sicurezza pensato principalmente per prevenire attacchi di forza bruta.  &amp;#039;&amp;#039;fail2ban&amp;#039;&amp;#039; legge i log delle applicazioni configurate, alla ricerca di...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nuova pagina&lt;/b&gt;&lt;/p&gt;&lt;div&gt;''fail2ban'' è un demone di sicurezza pensato principalmente per prevenire attacchi di forza bruta.&lt;br /&gt;
&lt;br /&gt;
''fail2ban'' legge i log delle applicazioni configurate, alla ricerca di eventi che indichino errori di autenticazione, e, se ne trova in un breve intervallo di tempo, allora banna gli indirizzi IP che hanno causato questi eventi.&lt;br /&gt;
&lt;br /&gt;
== Configurazione ==&lt;br /&gt;
''fail2ban'' distribuisce dei file di configurazione con estensione ''.conf'', che contengono i default e sono aggiornati dal proprio package manager.&lt;br /&gt;
Per effettuare configurazioni specifiche, utilizzarli come modello per costruire un &amp;quot;omonimo&amp;quot; file ''.local''.&lt;br /&gt;
&lt;br /&gt;
== nftables ==&lt;br /&gt;
Per usare ''nftables'' invece di ''iptables'':&lt;br /&gt;
&lt;br /&gt;
 '''/etc/fail2ban/jail.local'''&lt;br /&gt;
 [DEFAULT]&lt;br /&gt;
 banaction = nftables&lt;br /&gt;
 banaction_allports = nftables[type=allports]&lt;br /&gt;
&lt;br /&gt;
== Regola personalizzata ==&lt;br /&gt;
1. creare un filtro personalizzato con una espressione regolare per identificare la linea di log che indica l'errore, ad esempio:&lt;br /&gt;
 '''/etc/fail2ban/filter.d/nextcloud.local'''&lt;br /&gt;
 [Definition]&lt;br /&gt;
 failregex = Login failed: .* \(Remote IP: &amp;lt;HOST&amp;gt;\)&lt;br /&gt;
&lt;br /&gt;
2. creare una regola per quando si attiva quel filtro.&lt;br /&gt;
 '''/etc/fail2ban/jail.d/nextcloud.local'''&lt;br /&gt;
 [nextcloud]&lt;br /&gt;
 enabled = true&lt;br /&gt;
 port = http,https&lt;br /&gt;
 filter = nextcloud&lt;br /&gt;
 logpath = /var/www/nextcloud.example.org/data/nextcloud.log&lt;br /&gt;
 maxretry = 5&lt;br /&gt;
 findtime = 180&lt;br /&gt;
 bantime = 1800&lt;br /&gt;
&lt;br /&gt;
== Rimuovere ban manualmente ==&lt;br /&gt;
 fail2ban-client set &amp;lt;jailname&amp;gt; unban &amp;lt;ip&amp;gt;&lt;/div&gt;</summary>
		<author><name>Giomba</name></author>
	</entry>
</feed>