<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: How to Install Fail2ban to Stop Brute-Force Attacks on Ubuntu 24.04	</title>
	<atom:link href="https://www.tecmint.com/install-fail2ban-ubuntu-24-04/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/install-fail2ban-ubuntu-24-04/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Mon, 17 Jun 2024 07:14:47 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.tecmint.com/install-fail2ban-ubuntu-24-04/comment-page-1/#comment-2181201</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Mon, 17 Jun 2024 07:14:47 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=56527#comment-2181201</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/install-fail2ban-ubuntu-24-04/comment-page-1/#comment-2180352&quot;&gt;mirko&lt;/a&gt;.

@mirko,

Try these commands to patch and fix the asynchat module issue...
&lt;pre&gt;
mkdir -m 0755 /usr/lib/python3/dist-packages/fail2ban/compat
sudo mkdir -m 0755 /usr/lib/python3/dist-packages/fail2ban/compat
sudo wget -O /usr/lib/python3/dist-packages/fail2ban/compat/asynchat.py https://github.com/fail2ban/fail2ban/raw/1024452fe1befeb5a0a014386a81ec183cd45bb5/fail2ban/compat/asynchat.py
sudo wget -O /usr/lib/python3/dist-packages/fail2ban/compat/asyncore.py https://github.com/fail2ban/fail2ban/raw/1024452fe1befeb5a0a014386a81ec183cd45bb5/fail2ban/compat/asyncore.py
sudo cp -p /usr/lib/python3/dist-packages/fail2ban/server/asyncserver.py{,.original}
sudo wget -O /usr/lib/python3/dist-packages/fail2ban/server/asyncserver.py https://github.com/fail2ban/fail2ban/raw/1024452fe1befeb5a0a014386a81ec183cd45bb5/fail2ban/server/asyncserver.py
sudo chmod 0644 /usr/lib/python3/dist-packages/fail2ban/{compat/async{hat,ore}.py,server/asyncserver.py}
sudo apt install python3-setuptools
sudo systemctl restart fail2ban
sudo systemctl status fail2ban
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/install-fail2ban-ubuntu-24-04/comment-page-1/#comment-2180352">mirko</a>.</p>
<p>@mirko,</p>
<p>Try these commands to patch and fix the asynchat module issue&#8230;</p>
<pre>
mkdir -m 0755 /usr/lib/python3/dist-packages/fail2ban/compat
sudo mkdir -m 0755 /usr/lib/python3/dist-packages/fail2ban/compat
sudo wget -O /usr/lib/python3/dist-packages/fail2ban/compat/asynchat.py https://github.com/fail2ban/fail2ban/raw/1024452fe1befeb5a0a014386a81ec183cd45bb5/fail2ban/compat/asynchat.py
sudo wget -O /usr/lib/python3/dist-packages/fail2ban/compat/asyncore.py https://github.com/fail2ban/fail2ban/raw/1024452fe1befeb5a0a014386a81ec183cd45bb5/fail2ban/compat/asyncore.py
sudo cp -p /usr/lib/python3/dist-packages/fail2ban/server/asyncserver.py{,.original}
sudo wget -O /usr/lib/python3/dist-packages/fail2ban/server/asyncserver.py https://github.com/fail2ban/fail2ban/raw/1024452fe1befeb5a0a014386a81ec183cd45bb5/fail2ban/server/asyncserver.py
sudo chmod 0644 /usr/lib/python3/dist-packages/fail2ban/{compat/async{hat,ore}.py,server/asyncserver.py}
sudo apt install python3-setuptools
sudo systemctl restart fail2ban
sudo systemctl status fail2ban
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: mirko		</title>
		<link>https://www.tecmint.com/install-fail2ban-ubuntu-24-04/comment-page-1/#comment-2180352</link>

		<dc:creator><![CDATA[mirko]]></dc:creator>
		<pubDate>Fri, 14 Jun 2024 11:01:43 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=56527#comment-2180352</guid>

					<description><![CDATA[May I ask which version of &lt;strong&gt;Python&lt;/strong&gt; you are using? Upgrading from &lt;strong&gt;Ubuntu 23.10&lt;/strong&gt; to &lt;strong&gt;24.04&lt;/strong&gt; crashed my previously working fail2ban installation. 

The fail2ban version remains unchanged at &lt;strong&gt;1.0.2-3&lt;/strong&gt;, but Python has been updated from &lt;strong&gt;3.11.6&lt;/strong&gt; to &lt;strong&gt;3.12.3&lt;/strong&gt;. The &#039;&lt;strong&gt;asynchat&lt;/strong&gt;&#039; module seems to have been removed, causing issues.

I tried to resolve this by downloading the fail2ban version 1.1.0-1 from the Ubuntu source:
&lt;pre&gt;
wget https://launchpad.net/ubuntu/+source/fail2ban/1.1.0-1/+build/28291332/+files/fail2ban_1.1.0-1_all.deb
sudo dpkg -i fail2ban_1.1.0-1_all.deb
&lt;/pre&gt;
However, I encountered an error stating &#039;&lt;strong&gt;pyclean&lt;/strong&gt;&#039; was missing, even after installing it manually.

It seems my only options now are to revert to the previous version of Python or wait for a proper fix to be released.

Sorry for the confusion.]]></description>
			<content:encoded><![CDATA[<p>May I ask which version of <strong>Python</strong> you are using? Upgrading from <strong>Ubuntu 23.10</strong> to <strong>24.04</strong> crashed my previously working fail2ban installation. </p>
<p>The fail2ban version remains unchanged at <strong>1.0.2-3</strong>, but Python has been updated from <strong>3.11.6</strong> to <strong>3.12.3</strong>. The &#8216;<strong>asynchat</strong>&#8216; module seems to have been removed, causing issues.</p>
<p>I tried to resolve this by downloading the fail2ban version 1.1.0-1 from the Ubuntu source:</p>
<pre>
wget https://launchpad.net/ubuntu/+source/fail2ban/1.1.0-1/+build/28291332/+files/fail2ban_1.1.0-1_all.deb
sudo dpkg -i fail2ban_1.1.0-1_all.deb
</pre>
<p>However, I encountered an error stating &#8216;<strong>pyclean</strong>&#8216; was missing, even after installing it manually.</p>
<p>It seems my only options now are to revert to the previous version of Python or wait for a proper fix to be released.</p>
<p>Sorry for the confusion.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
