<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5635269216956780175</id><updated>2024-09-25T16:02:45.802-07:00</updated><title type='text'>Secure Apache from DOS Attack</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://apache-dos-attack.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5635269216956780175/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://apache-dos-attack.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Manoj K Samtani</name><uri>http://www.blogger.com/profile/10523064467243501756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5635269216956780175.post-2758973187869261211</id><published>2008-12-30T00:05:00.001-08:00</published><updated>2008-12-30T00:05:56.923-08:00</updated><title type='text'>Apache DOS/DDOS Security</title><content type='html'>&lt;h2 id=&quot;xkzm&quot; class=&quot;western&quot; style=&quot;margin: 0.02in 0.08in 0.04in;&quot;&gt;&lt;br /&gt;&lt;/h2&gt;&lt;h2 id=&quot;xkzm0&quot; class=&quot;western&quot; style=&quot;margin: 0.02in 0.08in 0.04in;&quot;&gt;&lt;span id=&quot;z19v8&quot;  style=&quot;font-size:85%;&quot;&gt;&lt;span id=&quot;jmj51&quot;   style=&quot;font-size:100%;color:#0000ff;&quot;&gt;&lt;b id=&quot;g87a0&quot;&gt;&lt;u id=&quot;g87a1&quot;&gt;Install Mod_dosevasive to your apache&lt;/u&gt;&lt;/b&gt;&lt;/span&gt; &lt;/span&gt; &lt;/h2&gt; &lt;blockquote id=&quot;z19v9&quot; style=&quot;margin: 0.02in 0.08in 0.04in;&quot;&gt; &lt;span id=&quot;z19v10&quot;  style=&quot;font-size:85%;&quot;&gt;Mod_dosevasive is module for Apache to perform evasive action in the event of an HTTP DDoS attack or brute force attack. Please find the installation step of mod_dosevasive in DSO mode below &lt;/span&gt; &lt;/blockquote&gt; &lt;blockquote id=&quot;z19v11&quot; style=&quot;margin: 0.02in 0.08in 0.04in;&quot;&gt;   &lt;span id=&quot;z19v12&quot;  style=&quot;font-size:85%;&quot;&gt;Eg: Install Mod_dosevasive &lt;/span&gt; &lt;/blockquote&gt; &lt;blockquote id=&quot;z19v13&quot; style=&quot;margin: 0.02in 0.08in 0.04in;&quot;&gt; &lt;span id=&quot;z19v14&quot;  style=&quot;font-size:85%;&quot;&gt;bash# wget http://www.nuclearelephant.com/projects/mod_evasive/mod_evasive_1.10.1.tar.gz &lt;/span&gt; &lt;/blockquote&gt; &lt;blockquote id=&quot;z19v15&quot; style=&quot;margin: 0.02in 0.08in 0.04in;&quot;&gt; &lt;span id=&quot;z19v16&quot;  style=&quot;font-size:85%;&quot;&gt;bash# tar -zxvf mod_evasive_1.10.1.tar.gz &lt;/span&gt; &lt;/blockquote&gt; &lt;blockquote id=&quot;z19v17&quot; style=&quot;margin: 0.02in 0.08in 0.04in;&quot;&gt; &lt;span id=&quot;z19v18&quot;  style=&quot;font-size:85%;&quot;&gt;bash# cd mod_evasive_1.10.1 &lt;/span&gt; &lt;/blockquote&gt; &lt;blockquote id=&quot;z19v19&quot; style=&quot;margin: 0.02in 0.08in 0.04in;&quot;&gt; &lt;span id=&quot;z19v20&quot;  style=&quot;font-size:85%;&quot;&gt;bash# $APACHE_ROOT/bin/apxs -iac mod_evasive.c &lt;/span&gt; &lt;/blockquote&gt; &lt;blockquote id=&quot;z19v21&quot; style=&quot;margin: 0.02in 0.08in 0.04in;&quot;&gt; &lt;span id=&quot;z19v22&quot;  style=&quot;font-size:85%;&quot;&gt;Dont get scared by the variable ``$APACHE_ROOT&#39;&#39; . Its nothing, but a simple variable which stores the location of the apache installation (eg $APACHE_ROOT =/usr/local/apache) &lt;/span&gt; &lt;/blockquote&gt; &lt;blockquote id=&quot;z19v23&quot; style=&quot;margin: 0.02in 0.08in 0.04in;&quot;&gt; &lt;span id=&quot;z19v24&quot;  style=&quot;font-size:85%;&quot;&gt;bash# vi /usr/loca/apache/conf/httpd.conf &lt;/span&gt; &lt;/blockquote&gt; &lt;blockquote id=&quot;z19v25&quot; style=&quot;margin: 0.04in 0.08in;&quot;&gt;   &lt;span id=&quot;z19v26&quot;  style=&quot;font-size:85%;&quot;&gt;After this add the below code in httpd.conf &lt;/span&gt; &lt;/blockquote&gt; &lt;blockquote id=&quot;z19v27&quot; style=&quot;margin: 0.04in 0.08in;&quot;&gt; &lt;br /&gt;&lt;br /&gt; &lt;/blockquote&gt; &lt;blockquote id=&quot;z19v30&quot; style=&quot;margin: 0.04in 0.08in;&quot;&gt; &lt;span id=&quot;z19v31&quot;  style=&quot;font-size:85%;&quot;&gt;&lt;ifmodule&gt; &lt;/span&gt; &lt;/blockquote&gt; &lt;blockquote id=&quot;z19v32&quot; style=&quot;margin: 0.04in 0.08in;&quot;&gt; &lt;span id=&quot;z19v33&quot;  style=&quot;font-size:85%;&quot;&gt;DOSHashTableSize 3097 &lt;/span&gt; &lt;/blockquote&gt; &lt;blockquote id=&quot;z19v34&quot; style=&quot;margin: 0.04in 0.08in;&quot;&gt; &lt;span id=&quot;z19v35&quot;  style=&quot;font-size:85%;&quot;&gt;DOSPageCount 2 &lt;/span&gt; &lt;/blockquote&gt; &lt;blockquote id=&quot;z19v36&quot; style=&quot;margin: 0.04in 0.08in;&quot;&gt; &lt;span id=&quot;z19v37&quot;  style=&quot;font-size:85%;&quot;&gt;DOSSiteCount 50 &lt;/span&gt; &lt;/blockquote&gt; &lt;blockquote id=&quot;z19v38&quot; style=&quot;margin: 0.04in 0.08in;&quot;&gt; &lt;span id=&quot;z19v39&quot;  style=&quot;font-size:85%;&quot;&gt;DOSPageInterval 1 &lt;/span&gt; &lt;/blockquote&gt; &lt;blockquote id=&quot;z19v40&quot; style=&quot;margin: 0.04in 0.08in;&quot;&gt; &lt;span id=&quot;z19v41&quot;  style=&quot;font-size:85%;&quot;&gt;DOSSiteInterval 1 &lt;/span&gt; &lt;/blockquote&gt; &lt;blockquote id=&quot;z19v42&quot; style=&quot;margin: 0.04in 0.08in;&quot;&gt; &lt;span id=&quot;z19v43&quot;  style=&quot;font-size:85%;&quot;&gt;DOSBlockingPeriod 10 &lt;/span&gt; &lt;/blockquote&gt; &lt;blockquote id=&quot;z19v44&quot; style=&quot;margin: 0.04in 0.08in;&quot;&gt; &lt;span id=&quot;z19v45&quot;  style=&quot;font-size:85%;&quot;&gt;&lt;/ifmodule&gt; &lt;/span&gt; &lt;/blockquote&gt; &lt;blockquote id=&quot;z19v46&quot; style=&quot;margin: 0.04in 0.08in;&quot;&gt; &lt;span id=&quot;z19v47&quot;  style=&quot;font-size:85%;&quot;&gt;bash# /usr/loca/apache/bin/apachectl restart &lt;/span&gt; &lt;/blockquote&gt; &lt;blockquote id=&quot;z19v48&quot; style=&quot;margin: 0.04in 0.08in;&quot;&gt; &lt;span id=&quot;z19v49&quot;  style=&quot;font-size:85%;&quot;&gt;&lt;b id=&quot;z19v50&quot;&gt;The following is a description of all the settings/variables:&lt;/b&gt;&lt;/span&gt;&lt;/blockquote&gt; &lt;table id=&quot;z19v51&quot; width=&quot;658&quot; border=&quot;1&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot;&gt;  &lt;col id=&quot;z19v52&quot; width=&quot;131&quot;&gt;  &lt;col id=&quot;z19v53&quot; width=&quot;505&quot;&gt;  &lt;tbody id=&quot;z19v54&quot;&gt;&lt;tr id=&quot;z19v55&quot; valign=&quot;top&quot;&gt;  &lt;td id=&quot;z19v56&quot; width=&quot;131&quot;&gt;  &lt;p id=&quot;z19v57&quot; style=&quot;margin-left: 0.08in; margin-right: 0.08in;&quot;&gt;&lt;span id=&quot;z19v58&quot;  style=&quot;font-size:85%;&quot;&gt;&lt;b id=&quot;z19v59&quot;&gt;Variable/Option:&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;/td&gt;  &lt;td id=&quot;z19v60&quot; width=&quot;505&quot;&gt;  &lt;p id=&quot;z19v61&quot; style=&quot;margin-left: 0.08in; margin-right: 0.08in;&quot;&gt;&lt;span id=&quot;z19v62&quot;  style=&quot;font-size:85%;&quot;&gt;&lt;b id=&quot;z19v63&quot;&gt;Description:&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;/td&gt;  &lt;/tr&gt;  &lt;tr id=&quot;z19v64&quot; valign=&quot;top&quot;&gt;  &lt;td id=&quot;z19v65&quot; width=&quot;131&quot;&gt;  &lt;p id=&quot;z19v66&quot; style=&quot;margin-left: 0.08in; margin-right: 0.08in;&quot;&gt;&lt;span id=&quot;z19v67&quot;  style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;DOSHashTableSize&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;/td&gt;  &lt;td id=&quot;z19v68&quot; width=&quot;505&quot;&gt;  &lt;p id=&quot;z19v69&quot; style=&quot;margin-left: 0.08in; margin-right: 0.08in;&quot;&gt;&lt;span id=&quot;z19v70&quot;  style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;Size  of the hash table. The greater this setting, the more memory is  required for the look up table, but also the faster the look ups  are processed. This option will automatically round up to the  nearest prime number.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;/td&gt;  &lt;/tr&gt;  &lt;tr id=&quot;z19v71&quot; valign=&quot;top&quot;&gt;  &lt;td id=&quot;z19v72&quot; width=&quot;131&quot;&gt;  &lt;p id=&quot;z19v73&quot; style=&quot;margin-left: 0.08in; margin-right: 0.08in;&quot;&gt;&lt;span id=&quot;z19v74&quot;  style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;DOSPageCount&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;/td&gt;  &lt;td id=&quot;z19v75&quot; width=&quot;505&quot;&gt;  &lt;p id=&quot;z19v76&quot; style=&quot;margin-left: 0.08in; margin-right: 0.08in;&quot;&gt;&lt;span id=&quot;z19v77&quot;  style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;Number  of requests for the same page within the &#39;DOSPageInterval&#39;  interval that will get an IP address added to the blocking list.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;/td&gt;  &lt;/tr&gt;  &lt;tr id=&quot;z19v78&quot; valign=&quot;top&quot;&gt;  &lt;td id=&quot;z19v79&quot; width=&quot;131&quot;&gt;  &lt;p id=&quot;z19v80&quot; style=&quot;margin-left: 0.08in; margin-right: 0.08in;&quot;&gt;&lt;span id=&quot;z19v81&quot;  style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;DOSSiteCount&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;/td&gt;  &lt;td id=&quot;z19v82&quot; width=&quot;505&quot;&gt;  &lt;p id=&quot;z19v83&quot; style=&quot;margin-left: 0.08in; margin-right: 0.08in;&quot;&gt;&lt;span id=&quot;z19v84&quot;  style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;Same  as &#39;DOSPageCount&#39;, but corresponds to the number of requests for a  given site, and uses the &#39;DOSSiteInterval&#39; interval. &lt;/span&gt;&lt;/span&gt;  &lt;/p&gt;  &lt;/td&gt;  &lt;/tr&gt;  &lt;tr id=&quot;z19v85&quot; valign=&quot;top&quot;&gt;  &lt;td id=&quot;z19v86&quot; width=&quot;131&quot;&gt;  &lt;p id=&quot;z19v87&quot; style=&quot;margin-left: 0.08in; margin-right: 0.08in;&quot;&gt;&lt;span id=&quot;z19v88&quot;  style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;DOSPageInterval&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;/td&gt;  &lt;td id=&quot;z19v89&quot; width=&quot;505&quot;&gt;  &lt;p id=&quot;z19v90&quot; style=&quot;margin-left: 0.08in; margin-right: 0.08in;&quot;&gt;&lt;span id=&quot;z19v91&quot;  style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;Interval  for the &#39;DOSPageCount&#39; threshold in second intervals. &lt;/span&gt;&lt;/span&gt;  &lt;/p&gt;  &lt;/td&gt;  &lt;/tr&gt;  &lt;tr id=&quot;z19v92&quot; valign=&quot;top&quot;&gt;  &lt;td id=&quot;z19v93&quot; width=&quot;131&quot;&gt;  &lt;p id=&quot;z19v94&quot; style=&quot;margin-left: 0.08in; margin-right: 0.08in;&quot;&gt;&lt;span id=&quot;z19v95&quot;  style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;DOSSiteInterval&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;/td&gt;  &lt;td id=&quot;z19v96&quot; width=&quot;505&quot;&gt;  &lt;p id=&quot;z19v97&quot; style=&quot;margin-left: 0.08in; margin-right: 0.08in;&quot;&gt;&lt;span id=&quot;z19v98&quot;  style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;Interval  for the &#39;DOSSiteCount&#39; threshold in second intervals. &lt;/span&gt;&lt;/span&gt;  &lt;/p&gt;  &lt;/td&gt;  &lt;/tr&gt;  &lt;tr id=&quot;z19v99&quot; valign=&quot;top&quot;&gt;  &lt;td id=&quot;z19v100&quot; width=&quot;131&quot;&gt;  &lt;p id=&quot;z19v101&quot; style=&quot;margin-left: 0.08in; margin-right: 0.08in;&quot;&gt;&lt;span id=&quot;z19v102&quot;  style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;DOSBlockingPeriod&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;/td&gt;  &lt;td id=&quot;z19v103&quot; width=&quot;505&quot;&gt;  &lt;p id=&quot;z19v104&quot; style=&quot;margin-left: 0.08in; margin-right: 0.08in;&quot;&gt;&lt;span id=&quot;z19v105&quot;  style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;Blocking  period in seconds if any of the thresholds are met. The user will  recieve a 403 (Forbidden) when blocked, and the timer will be  reset each time the site gets hit when the user is still blocked. &lt;/span&gt;&lt;/span&gt;  &lt;/p&gt;  &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;blockquote id=&quot;z19v106&quot; style=&quot;margin-left: 0.08in; margin-right: 0.08in;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;            &lt;p id=&quot;fs3:5&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;ifmodule&gt;&lt;/p&gt; &lt;p id=&quot;fs3:6&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt; &lt;/p&gt; &lt;p id=&quot;fs3:8&quot; style=&quot;margin-bottom: 0in;&quot;&gt;DOSHashTableSize 4000&lt;/p&gt; &lt;p id=&quot;fs3:9&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt; &lt;/p&gt; &lt;p id=&quot;fs3:11&quot; style=&quot;margin-bottom: 0in;&quot;&gt;DOSWhitelist 65.213.87.*&lt;/p&gt; &lt;p id=&quot;fs3:12&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt; &lt;/p&gt; &lt;p id=&quot;fs3:14&quot; style=&quot;margin-bottom: 0in;&quot;&gt;#DOSWhitelist 169.237.*.*&lt;/p&gt; &lt;p id=&quot;fs3:15&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt; &lt;/p&gt; &lt;p id=&quot;fs3:17&quot; style=&quot;margin-bottom: 0in;&quot;&gt;DOSPageCount 5&lt;/p&gt; &lt;p id=&quot;fs3:18&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt; &lt;/p&gt; &lt;p id=&quot;fs3:20&quot; style=&quot;margin-bottom: 0in;&quot;&gt;DOSSiteCount 20&lt;/p&gt; &lt;p id=&quot;fs3:21&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt; &lt;/p&gt; &lt;p id=&quot;fs3:23&quot; style=&quot;margin-bottom: 0in;&quot;&gt;DOSPageInterval 1&lt;/p&gt; &lt;p id=&quot;fs3:24&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt; &lt;/p&gt; &lt;p id=&quot;fs3:26&quot; style=&quot;margin-bottom: 0in;&quot;&gt;DOSSiteInterval 1&lt;/p&gt; &lt;p id=&quot;fs3:27&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt; &lt;/p&gt; &lt;p id=&quot;fs3:29&quot; style=&quot;margin-bottom: 0in;&quot;&gt;DOSBlockingPeriod 180&lt;/p&gt; &lt;p id=&quot;fs3:30&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt; &lt;/p&gt; &lt;p id=&quot;fs3:32&quot; style=&quot;margin-bottom: 0in;&quot;&gt;DOSEmailNotify manoj.samtani@tekritisoftware.com&lt;/p&gt; &lt;p id=&quot;fs3:33&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt; &lt;/p&gt; &lt;p id=&quot;fs3:35&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;/ifmodule&gt;&lt;/p&gt; &lt;br /&gt;&lt;/blockquote&gt; &lt;blockquote id=&quot;z19v109&quot; style=&quot;margin-left: 0.08in; margin-right: 0.08in;&quot;&gt;&lt;br /&gt;&lt;br /&gt; &lt;/blockquote&gt; &lt;a id=&quot;z19v127&quot; name=&quot;SECTION00068000000000000000&quot;&gt;&lt;/a&gt; &lt;span id=&quot;v:b00&quot;  style=&quot;color:#0000ff;&quot;&gt;&lt;b id=&quot;g87a2&quot;&gt;&lt;u id=&quot;g87a3&quot;&gt;Implement Sysctl protection against DDOS&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;p id=&quot;z19v126&quot; style=&quot;margin-left: 0.08in; margin-right: 0.08in; margin-bottom: 0in;&quot;&gt;  &lt;/p&gt; &lt;blockquote id=&quot;z19v130&quot; style=&quot;margin-left: 0.08in; margin-right: 0.08in;&quot;&gt;Eg:  &lt;/blockquote&gt; &lt;blockquote id=&quot;z19v131&quot; style=&quot;margin-left: 0.08in; margin-right: 0.08in;&quot;&gt;---------- &lt;/blockquote&gt; &lt;blockquote id=&quot;z19v132&quot; style=&quot;margin-left: 0.08in; margin-right: 0.08in;&quot;&gt;bash# vi /etc/sysctl.conf  &lt;/blockquote&gt; &lt;blockquote id=&quot;z19v133&quot; style=&quot;margin-left: 0.08in; margin-right: 0.08in;&quot;&gt;add the below code:  &lt;/blockquote&gt; &lt;blockquote id=&quot;z19v134&quot; style=&quot;margin-left: 0.08in; margin-right: 0.08in;&quot;&gt;# Enable IP spoofing protection, turn on Source Address Verification  &lt;/blockquote&gt; &lt;blockquote id=&quot;z19v135&quot; style=&quot;margin-left: 0.08in; margin-right: 0.08in;&quot;&gt;net.ipv4.conf.all.rp_filter = 1  &lt;/blockquote&gt; &lt;blockquote id=&quot;z19v136&quot; style=&quot;margin-left: 0.08in; margin-right: 0.08in;&quot;&gt;# Enable TCP SYN Cookie Protection  &lt;/blockquote&gt; &lt;blockquote id=&quot;z19v137&quot; style=&quot;margin-left: 0.08in; margin-right: 0.08in;&quot;&gt;net.ipv4.tcp_syncookies = 1  &lt;/blockquote&gt; &lt;blockquote id=&quot;z19v138&quot; style=&quot;margin-left: 0.08in; margin-right: 0.08in;&quot;&gt;Add the below code in /etc/rc.local and restart network  &lt;/blockquote&gt; &lt;blockquote id=&quot;z19v139&quot; style=&quot;margin-left: 0.08in; margin-right: 0.08in;&quot;&gt;for f in /proc/sys/net/ipv4/conf/*/rp_filter;  &lt;/blockquote&gt; &lt;blockquote id=&quot;z19v140&quot; style=&quot;margin-left: 0.08in; margin-right: 0.08in;&quot;&gt;do echo 1 &gt; done  &lt;/blockquote&gt; &lt;blockquote id=&quot;z19v141&quot; style=&quot;margin-left: 0.08in; margin-right: 0.08in;&quot;&gt;echo 1 &gt; /proc/sys/net/ipv4/tcp_syncookies  &lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://apache-dos-attack.blogspot.com/feeds/2758973187869261211/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://apache-dos-attack.blogspot.com/2008/12/apache-dosddos-security.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5635269216956780175/posts/default/2758973187869261211'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5635269216956780175/posts/default/2758973187869261211'/><link rel='alternate' type='text/html' href='http://apache-dos-attack.blogspot.com/2008/12/apache-dosddos-security.html' title='Apache DOS/DDOS Security'/><author><name>Manoj K Samtani</name><uri>http://www.blogger.com/profile/10523064467243501756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>