can you please explain more? I'm not sure if I follow it to full extend<br><br><div class="gmail_quote">On Wed, Feb 16, 2011 at 10:41 PM, Caunter, Stefan <span dir="ltr"><<a href="mailto:scaunter@topscms.com">scaunter@topscms.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div bgcolor="#FFFFFF"><div>Increment a header and send an error if limit is reached from client.ip<br><font color="#888888"><br>
Stefan Caunter<div>Operations</div><div>TorstarDigital</div><div>416.561.4871</div></font></div><div><div></div><div class="h5"><div><br>On 2011-02-16, at 6:14 PM, "<a href="mailto:Nicholas_Maesepp@scee.net" target="_blank">Nicholas_Maesepp@scee.net</a>" <<a href="mailto:Nicholas_Maesepp@scee.net" target="_blank">Nicholas_Maesepp@scee.net</a>> wrote:<br>
<br></div><div></div><blockquote type="cite"><div><font size="2" face="sans-serif">As someone else said best to use a firewall,
if you want to use a simple one just run iptables, since this is only DoS
you best to use rate limit connections per IP, depending on the number
of objects etc you should be able to get away with keeping connections
to a fairly low number and not hampering browsing experience at all. It
would need to move to being DDoS for it to bring it down. </font>
<br>
<br><font size="2" face="sans-serif">Only cheaty way I can think of doing
it in the vcl is to define multiple backends one with no max_connections
and one with a fairly low max_connections. Define some ip acl's using netblocks.
If you feel all of the hammering comes from china and very little legit
web traffic you could find their netblocks and force them to use the one
with a set limit on .max_connections while others dont have such limits.
Vice versa, if you expect 90% of traffic to be within your own country
allow those to connect to the backend with higher max_connections and have
everyone else connect with a low number. If someone tries to hammer your
page it will just starve those outside your target audience but keep your
backend healthy and your regular visitors fine. Lots of caveats in that
and wouldn't recommend it, purely for science. Definitely use a firewall
or other tools.</font>
<br>
<br><font size="2" face="sans-serif">Nick</font>
<br>
<br>
<br>
<br>
<br><font size="1" color="#5f5f5f" face="sans-serif">From:
</font><font size="1" face="sans-serif">alexus <<a href="mailto:alexus@gmail.com" target="_blank">alexus@gmail.com</a>></font>
<br><font size="1" color="#5f5f5f" face="sans-serif">To:
</font><font size="1" face="sans-serif"><a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a></font>
<br><font size="1" color="#5f5f5f" face="sans-serif">Date:
</font><font size="1" face="sans-serif">02/17/2011 07:37 AM</font>
<br><font size="1" color="#5f5f5f" face="sans-serif">Subject:
</font><font size="1" face="sans-serif">DDOS</font>
<br><font size="1" color="#5f5f5f" face="sans-serif">Sent by:
</font><font size="1" face="sans-serif"><a href="mailto:varnish-misc-bounces@varnish-cache.org" target="_blank">varnish-misc-bounces@varnish-cache.org</a></font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size="2">How does Varnish handles DDOS?<br>
<br>
here is my problem, in our environment varnish servers static pages<br>
but dynamic pages it passed to application server (apache).<br>
so every onces in a while we have some attacker(s) who start doing<br>
some sort of attacks against us, and apache hits very high load on<br>
server and about to go down...<br>
so I look up an IP address and I block it on Varnish .vcl file, and<br>
load goes back to normal right away...<br>
is there something that can be done automatically? or is there<br>
anything can be done at all to somehow handle this type of issue?<br>
<br>
please advise<br>
<br>
-- <br>
</font></tt><a href="http://alexus.org/" target="_blank"><tt><font size="2">http://alexus.org/</font></tt></a><tt><font size="2"><br>
<br>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank"></a><a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
</font></tt><a href="http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank"><tt><font size="2">http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</font></tt></a><tt><font size="2"><br>
</font></tt>
<br><font size="2" color="blue" face="sans-serif"><u><br>
</u></font><a></a>
<p><font size="2" face="sans-serif"><b><br>
Sony Computer Entertainment Australia Pty Ltd</b><br>
Level 1, 63-73 Ann Street Surry Hills NSW 2010<br>
P.O. Box 5023 Darlinghurst NSW 2010<br>
ph: +61 (0)2 9324 9500 fax: +61 (0)2 9324 9558</font>
</p><p><a href="http://au.playstation.com/" target="_blank"><font size="2" color="blue" face="sans-serif"><u>http://au.playstation.com</u></font></a><font size="2" color="blue" face="sans-serif"><u><br>
</u></font><a href="http://www.facebook.com/PlaystationAU" target="_blank"><font size="2" color="blue" face="sans-serif"><u>http://www.facebook.com/PlayStationAU</u></font></a>
</p><p><font size="2" face="sans-serif"><br>
<b><br>
New tools, new games, new fun.<br>
Sackboy returns in LittleBigPlanet 2<br>
Out now and exclusive to PlayStation 3</b><br>
<br>
</font><font size="2" color="blue" face="sans-serif"><u><br>
</u></font><a href="http://www.littlebigplanet.com/" target="_blank"><img width="414" height="152" alt="LBP2" src=""></a><font size="2" face="Arial"><br>
<br>
**********************************************************************<br>
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify <a href="mailto:postmaster@scee.net" target="_blank"></a><a href="mailto:postmaster@scee.net" target="_blank">postmaster@scee.net</a><br>
This footnote also confirms that this email message has been checked for
all known viruses.<br>
Sony Computer Entertainment Australia Pty. Limited<br>
Registered Office: Level 1, 63-73 Ann Street, Surry Hills, NSW 2010 Australia<br>
Registered in Australia: 077 583 183<br>
**********************************************************************<br>
</font><font size="5" color="#008000" face="Webdings"><br>
P</font><font size="2" color="#008000" face="Arial"><b><i> Please consider
the environment before printing this e-mail</i></b></font></p></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>varnish-misc mailing list</span><br><span><a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a></span><br>
<span><a href="http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a></span></div></blockquote></div></div></div><br>_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br></blockquote></div><br><br clear="all"><br>-- <br><a href="http://alexus.org/">http://alexus.org/</a><br>