<div dir="ltr">Hi John,<div><br></div><div>We were trying to push a very similar spec to enhance the security group API, we covered both DDoS case</div><div>and another use case for brute force prevention (We did a research to identify common protocols login behaviour</div><div>in order to identify brute force attacks using iptables) and even some UI work</div><div><br></div><div>You can view the specs and implementations here:</div><div>1) <a href="https://review.openstack.org/#/c/184243/">https://review.openstack.org/#/c/184243/</a></div><div>2) <a href="https://review.openstack.org/#/c/154535/">https://review.openstack.org/#/c/154535/</a></div><div>3) <a href="https://review.openstack.org/#/c/151247/">https://review.openstack.org/#/c/151247/</a></div><div>4) <a href="https://review.openstack.org/#/c/161207/">https://review.openstack.org/#/c/161207/</a></div><div><br></div><div>The spec didn't got approved as there is a strong opinion to keep the security group API compatible with Amazon.</div><div>I think this and your request fits much more into the FWaaS and if this is something you would like to work together on and push</div><div>i can help and align the above code to use FWaaS.</div><div><br></div><div>Feel free to contact me if you have any question</div><div><br></div><div>Thanks</div><div>Gal.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 17, 2015 at 6:58 PM, John Joyce (joycej) <span dir="ltr"><<a href="mailto:joycej@cisco.com" target="_blank">joycej@cisco.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="color:black">Hello everyone:     <u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:black">      I would like to test the waters on some new functionality we think is needed to protect OpenStack deployments from some overload situations due to an excessive user or DDOS scenario.   We wrote this up in
 the style of an RFE.   Please let us know your thoughts and we can proceed with a formal RFE with more detail if there are no concerns raised.  
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:black"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:black"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:black">*What is being requested*</span><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:black">This request is to extend the QOS APIs to include the ability to provide connection rate limiting
</span><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:black">*Why is it being requested*</span><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:black">There are many scenarios where a VM may be intentionally malicious or become harmful to the network due to its rate of initializing TCP connections.   The reverse direction of a VM being attacked with an excessive
 amount of TCP connection requests either intentionally or due to overload is also problematic.
</span><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:black">*Implementation Choices</span><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:black">   There might be a number of ways to implement this,  but one of the easiest would appear to be to extend the APIs being developed under: 
<a href="https://review.openstack.org/#/c/187513/" target="_blank">https://review.openstack.org/#/c/187513/</a></span><span style="color:#1f497d">.
</span><span style="color:black">An additional rule type “connections per-second” could be added.   
</span><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:black">The dataplane implementation itself may be realized with netfilter and conntrack.  
</span><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:black">*Alternatives</span><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:black">It would be possible to extend the security groups in a similar fashion,  but due to the addition of rate limiting, QoS seems a more nature fit.   
</span><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:black">*Who needs it*</span><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:black">Cloud operators have experienced this issue in real deployments in a number of cases.  </span><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<table border="0" cellspacing="0" cellpadding="0" width="543" style="width:407.25pt">
<tbody>
<tr>
<td colspan="3" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><img border="0" width="110" height="73" src="cid:image001.jpg@01D0A8F4.ED91DB30" alt="http://www.cisco.com/web/europe/images/email/signature/logo05.jpg"><u></u><u></u></span></p>
</td>
</tr>
<tr>
<td nowrap valign="top" style="padding:0in 0in 0in .25in">
<p class="MsoNormal"><b><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#666666">John Joyce</span></b><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#666666"><br>
PRINCIPAL ENGINEER.ENGINEERING<br>
<a href="mailto:joycej@cisco.com" target="_blank">joycej@cisco.com</a><br>
Phone: <b><a href="tel:%2B1%20978%20936%200227" value="+19789360227" target="_blank">+1 978 936 0227</a></b><u></u><u></u></span></p>
</td>
<td width="50%" valign="top" style="width:50.0%;padding:11.25pt 0in 7.5pt 15.0pt">
<p class="MsoNormal"><b><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#666666">Cisco Systems Limited</span></b><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#666666"><br>
1414 Massachusetts Ave.<br>
BOXBOROUGH<br>
MASSACHUSETTS<br>
01719<br>
US<br>
</span><a href="http://www.cisco.com" target="_blank"><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#666666">Cisco.com</span></a><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#666666"><u></u><u></u></span></p>
</td>
<td style="padding:0in 0in 0in 0in"></td>
</tr>
<tr>
<td colspan="3" style="padding:0in 0in 0in 0in">
<table border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100.0%">
<tbody>
<tr>
<td style="padding:0in 15.0pt 3.75pt .25in"></td>
</tr>
<tr>
<td style="border:none;border-bottom:solid #cccccc 1.0pt;padding:0in 0in 0in 0in">
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:12.0pt;font-family:"Times New Roman","serif""><u></u> <u></u></span></p>
<table border="0" cellspacing="0" cellpadding="0" width="400" style="width:300.0pt">
<tbody>
<tr>
<td style="padding:0in 15.0pt 0in .25in">
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#009900"><img border="0" width="18" height="19" src="cid:image002.gif@01D0A8F4.ED91DB30" alt="Think before you print.">Think before you print.<u></u><u></u></span></p>
</td>
</tr>
<tr>
<td style="padding:5.25pt 15.0pt 4.5pt .25in">
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#999999">This email may contain confidential and privileged material for the sole use of the intended recipient.
 Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#999999">For corporate legal information go to:<br>
</span><a href="http://www.cisco.com/web/about/doing_business/legal/cri/index.html" title="Legal Information" target="_blank"><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#0e58a0">http://www.cisco.com/web/about/doing_business/legal/cri/index.html</span></a><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#999999"><u></u><u></u></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Best Regards ,<br><br>The G. </div>
</div>