<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>About Web Development by Activo &#187; fail2ban</title>
	<atom:link href="http://www.activoinc.com/blog/tag/fail2ban/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.activoinc.com/blog</link>
	<description>Web Development in a Web 2.0 World</description>
	<lastBuildDate>Fri, 29 Jan 2010 17:16:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Quick Way to Update Fail2ban jail.conf file</title>
		<link>http://www.activoinc.com/blog/2009/09/03/quick-way-to-update-fail2ban-jail-conf-file/</link>
		<comments>http://www.activoinc.com/blog/2009/09/03/quick-way-to-update-fail2ban-jail-conf-file/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 22:19:24 +0000</pubDate>
		<dc:creator>Ron Peled</dc:creator>
				<category><![CDATA[Web Application Hosting]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[fail2ban]]></category>

		<guid isPermaLink="false">http://www.activoinc.com/blog/?p=327</guid>
		<description><![CDATA[There are plenty of settings in that file, especially if you are running CentOS 5.3 with latest patches and fail2ban from atomic repository. Here is a short list of steps that I follow when setting up new servers:
1. Setup sendmail to start on boot. Make sure it can send emails correctly (Reverse DNS records, hostname [...]]]></description>
			<content:encoded><![CDATA[<p>There are plenty of settings in that file, especially if you are running CentOS 5.3 with latest patches and fail2ban from atomic repository. Here is a short list of steps that I follow when setting up new servers:</p>
<p>1. Setup sendmail to start on boot. Make sure it can send emails correctly (Reverse DNS records, hostname config, etc).</p>
<p>2. Make sure that fail2ban starts on boot (I use ntsysv for that).</p>
<p>3. Edit the jail.conf file, type vi /etc/fail2ban/jail.conf</p>
<p>4. Change the time for increased security:</p>
<pre>bantime = 86400
findtime = 3600</pre>
<p>5. After you save and exit, change all the destination emails to go to root which will then be forwarded to you:</p>
<pre>sed -i 's/you@mail.com/root/g' /etc/fail2ban/jail.conf</pre>
<p>6. Add a forward for all emails to root to your email:</p>
<pre>echo "myemailaddress@mydomain.com" &gt; ~/.forward</pre>
<p>7. Restart  fail2ban:</p>
<pre>service fail2ban restart</pre>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>August 31, 2009 -- <a href="http://www.activoinc.com/blog/2009/08/31/performance-optimized-httpd-conf-for-magento-ecommerce/" title="Performance Optimized httpd.conf for Magento eCommerce">Performance Optimized httpd.conf for Magento eCommerce</a> (0)</li><li>August 24, 2009 -- <a href="http://www.activoinc.com/blog/2009/08/24/howto-setup-iptables-for-www-and-dbmysql-on-linux/" title="Howto setup iptables for www and db(mysql) on linux">Howto setup iptables for www and db(mysql) on linux</a> (0)</li><li>August 23, 2009 -- <a href="http://www.activoinc.com/blog/2009/08/23/centos-5-3-install-essentials/" title="CentOS 5.3 Install Essentials">CentOS 5.3 Install Essentials</a> (0)</li><li>August 3, 2009 -- <a href="http://www.activoinc.com/blog/2009/08/03/block-access-to-your-dedicated-server-automatically-if-more-than-3-failed-logins/" title="Block access to your dedicated server automatically if more than 3 failed logins">Block access to your dedicated server automatically if more than 3 failed logins</a> (0)</li><li>March 27, 2009 -- <a href="http://www.activoinc.com/blog/2009/03/27/recommended-visual-svn-server-now-with-subversion-16/" title="Recommended: Visual SVN Server, now with Subversion 1.6">Recommended: Visual SVN Server, now with Subversion 1.6</a> (1)</li><li>March 25, 2009 -- <a href="http://www.activoinc.com/blog/2009/03/25/tightening-up-iptables-for-a-dedicated-db-server-mysql-and-centos/" title="Tightening up iptables for a dedicated DB server (MySQL and CentOS)">Tightening up iptables for a dedicated DB server (MySQL and CentOS)</a> (1)</li><li>December 25, 2008 -- <a href="http://www.activoinc.com/blog/2008/12/25/pdnsd-decrease-dns-response-time-and-save-bandwidth/" title="pdnsd &#8211; Decrease DNS response time and save bandwidth">pdnsd &#8211; Decrease DNS response time and save bandwidth</a> (0)</li><li>November 30, 2008 -- <a href="http://www.activoinc.com/blog/2008/11/30/centos-for-linux-servers-a-cut-above/" title="CentOS for Linux Servers: a cut above">CentOS for Linux Servers: a cut above</a> (0)</li><li>April 13, 2008 -- <a href="http://www.activoinc.com/blog/2008/04/13/about-linux-distros-ubuntu-and-centos/" title="About Linux Distros: Ubuntu and CentOS">About Linux Distros: Ubuntu and CentOS</a> (9)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.activoinc.com/blog/2009/09/03/quick-way-to-update-fail2ban-jail-conf-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
