<div dir="auto">Thanks for the answer. I'll try it.</div><br><div class="gmail_quote"><div dir="ltr">Em sáb, 15 de set de 2018 06:46, Saku Ytti <<a href="mailto:saku@ytti.fi">saku@ytti.fi</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You could recreate the route via static route and depend on existing<br>
one. In static route you can attach AS-PATH in any way you want.<br>
<br>
  route <a href="http://2.20.144.0/22" rel="noreferrer noreferrer" target="_blank">2.20.144.0/22</a> unreachable {<br>
    bgp_local_pref = 0;<br>
    bgp_path.prepend(20940);<br>
    bgp_path.prepend(20940);<br>
    bgp_path.prepend(10429);<br>
    bgp_path.prepend(12956);<br>
  };<br>
<br>
For other interested parties, there are many use cases for AS_PATH manipulatoin<br>
<br>
a) injecting realistic RIB to DUT<br>
b) network-based firewall running eBGP (ASnet => ASfw => ASnet => ASfw<br>
=> ASnet to firewall traffic between two VRFs)<br>
c) security research, hijack detection testing<br>
d) many things I likely don't know about, but are reasonable<br>
<br>
Lot of commercial BGP solutions support AS_PATH manipulation.<br>
On Sat, 15 Sep 2018 at 07:01, Marcio <<a href="mailto:marciovinicius.santos@uniriotec.br" target="_blank" rel="noreferrer">marciovinicius.santos@uniriotec.br</a>> wrote:<br>
><br>
> I'd like to perform a Hijacking but changing a soecific position of AS Path. Is it poasible to perform it with BIRD? If not, is there another way to do this?<br>
><br>
> Em sex, 14 de set de 2018 12:37, Job Snijders <<a href="mailto:job@instituut.net" target="_blank" rel="noreferrer">job@instituut.net</a>> escreveu:<br>
>><br>
>> Dear Marcio,<br>
>><br>
>> What is your use case for extensive manipulation of the AS_PATH?<br>
>><br>
>> Kind regards,<br>
>><br>
>> Job<br>
>><br>
>> On Fri, 14 Sep 2018 at 16:02, Marcio <<a href="mailto:marciovinicius.santos@uniriotec.br" target="_blank" rel="noreferrer">marciovinicius.santos@uniriotec.br</a>> wrote:<br>
>>><br>
>>> Dear,<br>
>>><br>
>>> Could you help me with an information? Is there a way to generate an announce modifying the AS Path field using BIRD? For example, i´d like to announce a prefix with a false AS Path field where i could change it, inserting or removing an AS.<br>
<br>
<br>
<br>
-- <br>
  ++ytti<br>
</blockquote></div>