<?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:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>TimElfelt.com &#187; Security</title>
	<atom:link href="http://timelfelt.com/category/Security/feed/" rel="self" type="application/rss+xml" />
	<link>http://timelfelt.com</link>
	<description>Follow me in Marketing, Life, and Making Money</description>
	<pubDate>Wed, 15 Oct 2008 21:51:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
		<!-- podcast_generator="podPress/8.8" -->
		<copyright>&#xA9; </copyright>
		<managingEditor>timelf123@gmail.com ()</managingEditor>
		<webMaster>timelf123@gmail.com()</webMaster>
		<category></category>
		<ttl>1440</ttl>
		<itunes:keywords></itunes:keywords>
		<itunes:subtitle></itunes:subtitle>
		<itunes:summary>Follow me in Marketing, Life, and Making Money</itunes:summary>
		<itunes:author></itunes:author>
		<itunes:category text="Society &amp; Culture"/>
		<itunes:owner>
			<itunes:name></itunes:name>
			<itunes:email>timelf123@gmail.com</itunes:email>
		</itunes:owner>
		<itunes:block>No</itunes:block>
		<itunes:explicit>no</itunes:explicit>
		<itunes:image href="http://timelfelt.com/wp-content/plugins/podpress/images/powered_by_podpress_large.jpg" />
		<image>
			<url>http://timelfelt.com/wp-content/plugins/podpress/images/powered_by_podpress.jpg</url>
			<title>TimElfelt.com</title>
			<link>http://timelfelt.com</link>
			<width>144</width>
			<height>144</height>
		</image>
		<item>
		<title>Block an IP to Speed up Server During DOS Attack</title>
		<link>http://timelfelt.com/02/17/block-an-ip-to-speed-up-server-during-dos-attack/</link>
		<comments>http://timelfelt.com/02/17/block-an-ip-to-speed-up-server-during-dos-attack/#comments</comments>
		<pubDate>Sun, 17 Feb 2008 17:40:21 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
		
		<category><![CDATA[Linux Tips]]></category>

		<category><![CDATA[Security]]></category>

		<category><![CDATA[apache]]></category>

		<category><![CDATA[firewall]]></category>

		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://timelfelt.com/02/17/block-an-ip-to-speed-up-server-during-dos-attack/</guid>
		<description><![CDATA[If your Apache server is slow (or if you see tons of “? ..reading..” on Apache Status in WHM) there is a chance that your http server is under a Denial of Service (DOS) attack.
You can check this out by:

Log on your server as root
Type the following command



netstat -plan&#124;grep :80&#124;awk {&#8217;print $5&#8242;}&#124;cut -d: -f 1&#124;sort&#124;uniq [...]]]></description>
			<content:encoded><![CDATA[<p>If your Apache server is slow (or if you see tons of “? ..reading..” on Apache Status in WHM) there is a chance that your http server is under a Denial of Service (DOS) attack.<!--adsense--><br />
You can check this out by:</p>
<ol>
<li>Log on your server as root</li>
<li>Type the following command</li>
</ol>
<p><span id="more-15"></span></p>
<ol>
<blockquote><p>netstat -plan|grep :80|awk {&#8217;print $5&#8242;}|cut -d: -f 1|sort|uniq -c|sort -n</p></blockquote>
<p>You will see a list of IP addresses with the number of connections each has to your server, like this:</p>
<p>1 127.0.0.1<br />
3 64.34.161.32&#8230;. etc.</p>
<li>If any have more then 50-100 connections, there is a chance that this is your attacker. Unfortunately, this most likely will not stop a Distributed Denial of Service attack (DDOS), but if it is one IP this should do the trick. Go ahead and block this IP using APF if you have it installed.</li>
<p><!--adsense--></p>
<blockquote><p>apf -d IP</p></blockquote>
</ol>
<p>Good luck!</p>
<p>P.S. One way I have been attacked before is via traffic exchanges. If you see a lot of referring URLs from a traffic exchange and requests flow in from multiple IPs, talk to your host!</p>
]]></content:encoded>
			<wfw:commentRss>http://timelfelt.com/02/17/block-an-ip-to-speed-up-server-during-dos-attack/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to Remove Apache Server Signature</title>
		<link>http://timelfelt.com/02/17/how-to-remove-apache-server-signature/</link>
		<comments>http://timelfelt.com/02/17/how-to-remove-apache-server-signature/#comments</comments>
		<pubDate>Sun, 17 Feb 2008 17:11:55 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
		
		<category><![CDATA[Linux Tips]]></category>

		<category><![CDATA[Security]]></category>

		<category><![CDATA[linux security apache]]></category>

		<guid isPermaLink="false">http://timelfelt.com/02/17/how-to-remove-apache-server-signature/</guid>
		<description><![CDATA[Apache by default puts a “signature” at the end of error pages and directory listings…here is an example of what this looks like:
Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.7a DAV/2 mod_auth_passthrough/2.1 PHP/5.2.5 Server at yoursite.com Port 80
Most people don&#8217;t want to display that information to the general public, but luckily, it is easily removed.  You can easily [...]]]></description>
			<content:encoded><![CDATA[<p>Apache by default puts a “signature” at the end of error pages and directory listings…here is an example of what this looks like:</p>
<blockquote><p>Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.7a DAV/2 mod_auth_passthrough/2.1 PHP/5.2.5 Server at yoursite.com Port 80</p></blockquote>
<p>Most people don&#8217;t want to display that information to the general public, but luckily, it is easily removed.  You can easily disable this in your httpd.conf file:</p>
<blockquote><p>ServerSignature Off</p></blockquote>
<p>Then run:</p>
<blockquote><p>service httpd restart</p>
<p>or</p>
<p>apachectl restart</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://timelfelt.com/02/17/how-to-remove-apache-server-signature/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Fix Open Nameservers to Speed up Sites and Prevent DOS</title>
		<link>http://timelfelt.com/02/16/fix-open-nameservers-to-speed-up-sites-and-prevent-dos/</link>
		<comments>http://timelfelt.com/02/16/fix-open-nameservers-to-speed-up-sites-and-prevent-dos/#comments</comments>
		<pubDate>Sun, 17 Feb 2008 05:39:06 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
		
		<category><![CDATA[Linux Tips]]></category>

		<category><![CDATA[Security]]></category>

		<category><![CDATA[dns]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://timelfelt.com/02/16/fix-open-nameservers-to-speed-up-sites-and-prevent-dos/</guid>
		<description><![CDATA[ Open nameservers allow anyone in the world to perform queries on them, which can often lead to DOS attacks and slower performance. Most system administrators prefer to have their nameservers restricted and used only by trusted parties. To check your namesevers, use Intodns, a free tool! 
To do this kind of setup, you will need [...]]]></description>
			<content:encoded><![CDATA[<p><strong> Open nameservers allow anyone in the world to perform queries on them, which can often lead to DOS attacks and slower performance. Most system administrators prefer to have their nameservers restricted and used only by trusted parties. To check your namesevers, use <a href="http://www.intodns.com/" target="_blank">Intodns</a>, a free tool! </strong></p>
<p>To do this kind of setup, you will need to configure your named configuration:</p>
<p><span id="more-8"></span><br />
On command line:</p>
<blockquote><p> nano /etc/named.conf</p></blockquote>
<p>Look for this line at the top:</p>
<blockquote><p> include “/etc/rndc.key”;</p></blockquote>
<p>Now add this right below it:</p>
<blockquote><p> acl “trusted” {<br />
XXX.xxx.xxx.xxx,YYY.yyy.yyy.yyy;127.0.0.1;<br />
};</p></blockquote>
<p>The IPs should be those of the nameservers…you can add other trusted IPs as well.</p>
<p>Now in the <strong>options </strong>section right below that, add these lines:</p>
<blockquote><p> allow-recursion { trusted; };<br />
allow-notify { trusted; };<br />
allow-transfer { trusted; };</p></blockquote>
<p>So your options section will look like this:</p>
<blockquote><p> options {<br />
directory “/var/named”;<br />
dump-file “/var/named/data/cache_dump.db”;<br />
statistics-file “/var/named/data/named_stats.txt”;<br />
/*<br />
* If there is a firewall between you and nameservers you want<br />
* to talk to, you might need to uncomment the query-source<br />
* directive below.  Previous versions of BIND always asked<br />
* questions using port 53, but BIND 8.1 uses an unprivileged<br />
* port by default.<br />
*/<br />
// query-source address * port 53;<br />
allow-recursion { trusted; };<br />
allow-notify { trusted; };<br />
allow-transfer { trusted; };<br />
};</p></blockquote>
<p>When done, hit ctrl-x and save.</p>
<p>Restart named</p>
<blockquote><p> /etc/init.d/named restart</p></blockquote>
<p>Now you can use a service like DNSreport to make sure the changes took.</p>
<p>Update: <a href="http://www.intodns.com/" target="_blank">Intodns</a> is FREE and a great tool for troubleshooting DNS<a href="http://www.intodns.com/" target="_blank"><br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://timelfelt.com/02/16/fix-open-nameservers-to-speed-up-sites-and-prevent-dos/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Install APF Firewall For Server Security</title>
		<link>http://timelfelt.com/02/16/install-apf-firewall-for-server-security/</link>
		<comments>http://timelfelt.com/02/16/install-apf-firewall-for-server-security/#comments</comments>
		<pubDate>Sun, 17 Feb 2008 05:02:14 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
		
		<category><![CDATA[Linux Tips]]></category>

		<category><![CDATA[Security]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://timelfelt.com/02/16/install-apf-firewall-for-server-security/</guid>
		<description><![CDATA[A firewall is essential for the security of any server.  Below are the steps to setting up APF on your system to control access:
Download and install APF:

cd /usr/src
wget http://www.rfxnetworks.com/downloads/apf-current.tar.gz
tar -xvzf apf-current.tar.gz
cd apf-*
./install.sh


You will receive a message saying it has been installed, which will look something like this:

Installing APF 0.9.5-1: Completed.
Installation Details:
Install path:   [...]]]></description>
			<content:encoded><![CDATA[<p class="entry">A firewall is essential for the security of any server.  Below are the steps to setting up APF on your system to control access:</p>
<p>Download and install APF:</p>
<blockquote>
<pre>cd /usr/src
wget http://www.rfxnetworks.com/downloads/apf-current.tar.gz
tar -xvzf apf-current.tar.gz
cd apf-*
./install.sh</pre>
</blockquote>
<p><span id="more-11"></span></p>
<p>You will receive a message saying it has been installed, which will look something like this:</p>
<blockquote>
<pre>Installing APF 0.9.5-1: Completed.</pre>
<pre>Installation Details:
Install path:         /etc/apf/
Config path:          /etc/apf/conf.apf
Executable path:      /usr/local/sbin/apf
AntiDos install path: /etc/apf/ad/
AntiDos config path:  /etc/apf/ad/conf.antidos
DShield Client Parser:  /etc/apf/extras/dshield/</pre>
</blockquote>
<p>Now that APF is installed, it must be configured.</p>
<blockquote>
<pre>nano /etc/apf/conf.apf</pre>
</blockquote>
<p>Turn off development mode by setting the value of DEVEL_MODE to “0″</p>
<blockquote>
<pre>DEVEL_MODE="0"</pre>
</blockquote>
<p>Now locate this section:</p>
<blockquote>
<pre># Common ingress (inbound) TCP ports</pre>
</blockquote>
<p>Remove the line directly below that starting with <strong>IG_TCP_CPORTS=</strong>.  Copy and paste this line its place:</p>
<blockquote>
<pre>IG_TCP_CPORTS="20,21,25,53,80,110,113,143,443,465,993,995,2049,2082,2083,2086,2087,2095,2089,2096,3306,6666,30000_35000"</pre>
</blockquote>
<p>Do the same for these sections (if necessary):</p>
<blockquote>
<pre># Common ingress (inbound) UDP ports
IG_UDP_CPORTS="53,32786,111,2049"</pre>
<pre># Common egress (outbound) TCP ports
EG_TCP_CPORTS="21,25,80,443,43"</pre>
<pre># Common egress (outbound) UDP ports
EG_UDP_CPORTS="20,21,53"</pre>
<pre># Egress filtering [0 = Disabled / 1 = Enabled]
EGF="0"</pre>
</blockquote>
<p>The above sections determine what inbound ports will be open to the public. If you have any software on your system that requires a certain port to be open, add it to the list.  It is recommended to not open any ports that you don’t need!</p>
<p>This next step is VERY important, or you may find yourself locked out of the server. After you edit the configuration file, you need to open <strong>/etc/apf/allow_hosts_rules</strong> and add your IPs to the bottom of the file.</p>
<p>Once your IPs are added you can start up the firewall:</p>
<blockquote>
<pre>/etc/init.d/apf start</pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://timelfelt.com/02/16/install-apf-firewall-for-server-security/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
