Yeah I&#39;m working on it... I&#39;ll keep you updated<br><br>
<div class="gmail_quote">On Sat, Jun 28, 2008 at 9:00 PM, Rüdiger Meier &lt;<a href="mailto:sweet_f_a@gmx.de">sweet_f_a@gmx.de</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="Ih2E3d">On Saturday 28 June 2008 21:47:14 Geoff Goas wrote:<br>&gt; Nevermind... just tried it out on my busy servers and its way too CPU<br>&gt; intensive. I think I need to do better matching.<br><br></div>
Why your are filtering in PREROUTING? Do you run a dedicated firewall?<br>If not you should IMO filter in INPUT chain.<br>Also you should &nbsp;add more specific rules (interface, port range, udp and maybe<br>packetzize ...) to avoid that each packet goes through the expensive string<br>
compare.<br>Cant you just filter for too big packets. I see &quot;--to 65535&quot; - so If I<br>understand right all these packets are bigger than 65535 bytes.<br>Is cod4 using regular packets which are that big?<br><br>BTW If you really want to log (what is it good for expectly for testing?) you<br>
should &quot;--limit&quot; your logging rule because one could DoS your syslog/HD.<br><br>cu,<br>Rudi<br>
<div class="Ih2E3d"><br>&gt; On Sat, Jun 28, 2008 at 3:30 PM, Geoff Goas &lt;<a href="mailto:gitman@gmail.com">gitman@gmail.com</a>&gt; wrote:<br>&gt; &gt; If your servers are being crashed due to the &#39;stat 7&#39; packet exploit, use<br>
&gt; &gt; the following iptables rules to block that particular packet:<br>&gt; &gt;<br>&gt; &gt; -A PREROUTING -m string --hex-string &quot;|737461747300007907|&quot; --algo kmp<br>&gt; &gt; --to 65535 -j LOG --log-prefix &quot;COD4STATS_EXPLOIT &quot;<br>
&gt; &gt; -A PREROUTING -m string --hex-string &quot;|737461747300007907|&quot; --algo kmp<br>&gt; &gt; --to 65535 -j DROP<br>&gt; &gt; The first rule will log the attempt to syslog, the second will drop the<br>&gt; &gt; packet.<br>
&gt; &gt;<br>&gt; &gt; --<br>&gt; &gt; Geoff Goas<br>&gt; &gt; Network Engineer<br><br><br><br></div>---<br>To unsubscribe, send a blank email to <a href="mailto:cod-unsubscribe@icculus.org">cod-unsubscribe@icculus.org</a><br>
Mailing list archives: <a href="http://icculus.org/cgi-bin/ezmlm/ezmlm-cgi?38" target="_blank">http://icculus.org/cgi-bin/ezmlm/ezmlm-cgi?38</a><br><br><br></blockquote></div><br><br clear="all"><br>-- <br>Geoff Goas<br>Network Engineer