<?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>Welcome to The Dark Side &#187; APF</title>
	<atom:link href="http://www.darksideofperfection.com/tag/apf/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.darksideofperfection.com</link>
	<description>it&#039;s not so bad, We have Cake</description>
	<lastBuildDate>Thu, 03 Nov 2011 15:27:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>First Script Revision &#8211; Death To Httpd Flooders</title>
		<link>http://www.darksideofperfection.com/2009/11/first-script-revision-death-to-httpd-flooders/</link>
		<comments>http://www.darksideofperfection.com/2009/11/first-script-revision-death-to-httpd-flooders/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 21:22:09 +0000</pubDate>
		<dc:creator>Shadow</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Computer Related]]></category>
		<category><![CDATA[APF]]></category>
		<category><![CDATA[CSF]]></category>
		<category><![CDATA[Perl Coding]]></category>
		<category><![CDATA[Server Security]]></category>

		<guid isPermaLink="false">http://www.darksideofperfection.com/?p=85</guid>
		<description><![CDATA[So I started with the most widely used script that I have written, my phpDDoS reject scripts.  This single script has taken the place of the 3 scripts prior. Simply wget the file into the directory that you want to have it run from, make it executable.  From there you can create a cron job [...]]]></description>
			<content:encoded><![CDATA[<p>So I started with the most widely used script that I have written, my phpDDoS reject scripts.  This single script has taken the place of the 3 scripts prior. Simply wget the file into the directory that you want to have it run from, make it executable.  From there you can create a cron job for it, or run -help and get more options for the script.  Download the script <a href="http://www.darksideofperfection.com/projects/ddos_reject">here.</a></p>
<p>Have Fun!!!</p>
<p>Oh and if you want test this I found this script called Slowloris.  DO NOT USE THIS TO BE MALICIOUS!!!!  Download it <a href="http://www.darksideofperfection.com/projects/slowloris">here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.darksideofperfection.com/2009/11/first-script-revision-death-to-httpd-flooders/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Death to Http Flooders&#8230;</title>
		<link>http://www.darksideofperfection.com/2009/04/death-to-http-flooders/</link>
		<comments>http://www.darksideofperfection.com/2009/04/death-to-http-flooders/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 01:45:23 +0000</pubDate>
		<dc:creator>Shadow</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[APF]]></category>
		<category><![CDATA[HTTP Flooder]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://www.darksideofperfection.com/?p=13</guid>
		<description><![CDATA[So, for those of you that don't know, I work for a hosting company.  I enjoy what I do, and for all intents and purposes, I do a pretty good job at it.  Recently, one of the sites we host, was getting hammered,  hardcore.

To save on a very long, long, long winded story of how we battled these flooders, I am going to list what we did to get things working well again.]]></description>
			<content:encoded><![CDATA[<p>So, for those of you that don&#8217;t know, I work for a hosting company.  I enjoy what I do, and for all intents and purposes, I do a pretty good job at it.  Recently, one of the sites we host, was getting hammered,  hardcore.</p>
<p>To save on a very long, long, long winded story of how we battled these flooders, I am going to list what we did to get things working well again.<br />
<span id="more-13"></span></p>
<p>1. Install and setup APF and BFD from <a href="http://www.rfxn.com/">Rfx-network</a><br />
<strong>This is a must</strong></p>
<p>2. Optimize MySql</p>
<p>3. Run These Lines from shell</p>
<p><code>iptables -I INPUT -p tcp --dport 80 -i eth0 -m state --state NEW -m recent --set<br />
iptables -I INPUT -p tcp --dport 80 -i eth0 -m state --state NEW -m recent --update --seconds 30 --hitcount 50 -j DROP<br />
iptables -A INPUT -p udp --dport 80 -jDROP<br />
</code></p>
<p>Those Lines restrict the number of connections to the server, and drop udp connect entirely to port 80.  Its not perfect, but its one more part of a better secured server.</p>
<p><em>The Next few Steps are still a work in progress, as such, they may change</em></p>
<p>4. Create a folder you know will be secure, and navigate to said folder.</p>
<p>5. run this command from shell to get the nifty script I wrote.  (If you downloaded this on 4-1-09, download again, i made a mistake in that release&#8230;)<br />
<code>wget http://darksideofperfection.com/projects/php_ddos.tar.bz2</code></p>
<p>6. Extract said downloaded file.<br />
<code>tar xvfz php_ddos.tar.bz2</code></p>
<p>7. Give Execute Permissions to the cron.sh and netsat.sh<br />
<code>chmod +x cron.sh<br />
chmod +x netstat.sh</code></p>
<p>8. Add a cron to automatically run the cron.sh<br />
<code>crontab -e</code><br />
  Type: * * * * * /path/to/ the/scripts/cron.sh</p>
<p>9. You need to modify the cron.sh to point to ddos.php file and modify ddos.php to point to the netstat.sh file.</p>
<p>10. Sit Back, and watch&#8230;  The script will check every 30 seconds for any connection connected 50 times or more with the default settings.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.darksideofperfection.com/2009/04/death-to-http-flooders/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

