<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.EstiloCorreo18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="ES" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">>I pretty sure that you already know that, and probably already heard that... But you should not do business with companies like that one.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Well, I wont say who, but I’m referring to a big DIA European provider (Really good providers besides this specific issue)… But yeah, I hate when they just ignore our prepending. If
the attacking IP belongs to the specific provider AS number, the traffic will be delivered directly by the DIA we have.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b>De:</b> Douglas Fischer <fischerdouglas@gmail.com> <br>
<b>Enviado el:</b> jueves, 24 de marzo de 2022 23:06<br>
<b>Para:</b> Xavier Trilla <xavier.trilla@clouding.io><br>
<b>CC:</b> Alarig Le Lay <alarig@swordarmor.fr>; BIRD Users <bird-users@network.cz><br>
<b>Asunto:</b> Re: Filter based on BGP protocol status ...<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">I pretty sure that you already know that, and probably already heard that... But you should not do business with companies like that one.<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">Em qui., 24 de mar. de 2022 11:09, Xavier Trilla <<a href="mailto:xavier.trilla@clouding.io">xavier.trilla@clouding.io</a>> escreveu:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal" style="margin-bottom:12.0pt">>More simply, you can add a community on the non-ddos-protected provider to make them lower the localpref to peer routes, and stop the prepend.<br>
<br>
We tried, but some providers basically ignore everything if you have a direct connection with them. They just forward you the traffic despite prepending or localpref.<br>
<br>
Thanks!<br>
Xavier.<br>
<br>
-----Mensaje original-----<br>
De: Bird-users <<a href="mailto:bird-users-bounces@network.cz" target="_blank">bird-users-bounces@network.cz</a>> En nombre de Alarig Le Lay<br>
Enviado el: jueves, 24 de marzo de 2022 13:43<br>
Para: <a href="mailto:bird-users@network.cz" target="_blank">bird-users@network.cz</a><br>
Asunto: Re: Filter based on BGP protocol status ...<br>
<br>
On Thu 24 Mar 2022 07:43:03 GMT, Douglas Fischer wrote:<br>
> I know that it is not the focus of your question, and also is not the <br>
> focus on this mail list, but...<br>
> <br>
> To that kind of automation, the best BGP engine you will find is <br>
> ExaBGP. It is not focuses in been in compliance with all the concepts <br>
> of a routing system itself. It's focus is exactly automations using API.<br>
> <br>
> The scenario you described triggered-me something like a Zabbix <br>
> looking to the status of BGP sessions of bird, and based on that doing <br>
> API queries to a ExaBGP that is a iBGP peer of Bird.<br>
> <br>
> This model is used on many tools focused in anomaly detection for <br>
> triggering DDoS mitigation.<br>
> <br>
> <br>
> But, if your intention is a much simpler scenario, the suggestion <br>
> Maria made is the most common!<br>
> You can used also some BGP communities(if your upstream supports it) <br>
> for no-export for some prefixes... Sometimes it helps.<br>
<br>
More simply, you can add a community on the non-ddos-protected provider to make them lower the localpref to peer routes, and stop the prepend.<br>
<br>
> Em qua., 23 de mar. de 2022 12:10, Xavier Trilla <br>
> <<a href="mailto:xavier.trilla@clouding.io" target="_blank">xavier.trilla@clouding.io</a>><br>
> escreveu:<br>
> <br>
> > Hi,<br>
> ><br>
> ><br>
> ><br>
> > I’m quite sure this cannot be done, but I also know there is a lot <br>
> > of BIRD I still don’t know, so here it goes:<br>
> ><br>
> ><br>
> ><br>
> > Is there any way to filter a export route based on another BGP <br>
> > session status?<br>
> ><br>
> ><br>
> ><br>
> > For the sake of simplicity let’s say we have just two providers A <br>
> > and B, and I only want to export some specific routes to B when A is down.<br>
> ><br>
> ><br>
> ><br>
> > I can do it externally with a quite simple script (For example: <br>
> > Check if the provider is down via CLI and if it’s down insert the <br>
> > routes I want to export to a kernel table and export that to <br>
> > provider B) but it would be nice if I could do it directly in Bird.<br>
> ><br>
> ><br>
> ><br>
> > I’ve been scratching my head around this, but unless there is <br>
> > something like if proto.A == down on the filters I don’t really see <br>
> > how to do it (Or maybe some way to raise a global flag based on if <br>
> > I’m receiving routes via provider B, but I don’t think that can’t be <br>
> > done either.)<br>
> ><br>
> ><br>
> ><br>
> > Thanks for your time!<br>
> ><br>
> > Xavier<br>
> ><br>
> ><br>
> ><o:p></o:p></p>
</blockquote>
</div>
</div>
</body>
</html>