<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi,</p>
<p>Thank you very much for the fast response.</p>
<p>The patch has completely fixed the issue!<br>
</p>
<p>One more question about the ROA:</p>
<p>Is it possible to use roa_check() into another function and first
parameter of the roa_check to be some argument like peer_as for an
example:</p>
<p>roa table 65501 {<br>
roa 1.2.3.0/24 max 32 as 65501;<br>
}<br>
<br>
<br>
function BGP_IN(<b>int peer_as</b>) {<br>
<br>
if roa_check(<b>peer_as</b>, net, bgp_path.last) = ROA_INVALID
then {<br>
print "ROA check failed for ", net, " from ASN ",
bgp_path.last; return false;<br>
}<br>
<br>
if roa_check(<b>peer_as</b>, net, bgp_path.last) = ROA_UNKNOWN
then {<br>
print "ROA check failed: unallowed prefix - ", net, "
origin ASN ", bgp_path.last , " - AS-PATH", bgp_path , " via ",
proto; return false;<br>
}<br>
return true;<br>
} <br>
</p>
When I put the above lines in the configuration and try to
reconfigure I got the following error:<br>
<br>
<i>root@rs2-lab:/usr/local/bird-new/etc# birdc c</i><i><br>
</i><i>BIRD 1.6.3 ready.</i><i><br>
</i><i>Reading configuration from /usr/local/bird-new/etc/bird.conf</i><i><br>
</i><i>/usr/local/bird-new/etc/roa.conf, line 8: peer_as is not a
ROA table</i><br>
<br>
It makes me think that such implementation is not possible or may be
I'm totally wrong or miss a bit something.<br>
<br>
Thank you once again!<br>
<br>
Best~<br>
<br>
<div class="moz-cite-prefix">On 21.03.2018 15:40, Ondrej Zajicek
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:20180321134045.kkopyksmdsfivlw7@feanor.crfreenet.org">
<pre wrap="">On Wed, Mar 21, 2018 at 12:45:54PM +0200, Javor Kliachev wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hello,
We have been using BIRD 1.6.3 on Ubuntu 16.04 as Route Server for a long
time.
Recently we decided to implement a ROA check filtration but we're
experiencing the daemon is crashing whenever
removing roa table from the file config even when the roa table is not
applied anywhere.
</pre>
</blockquote>
<pre wrap="">
Hello
Is the issue fixed by this patch:
<a class="moz-txt-link-freetext" href="https://gitlab.labs.nic.cz/labs/bird/commit/0ff86d054efa8005c5df943acf6d2122781d3175">https://gitlab.labs.nic.cz/labs/bird/commit/0ff86d054efa8005c5df943acf6d2122781d3175</a>
?
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
.info_type {
color: #88CDD3;
font-size: 14px;
margin-right: 5px;
}
.info {
font-size: 14px;
margin-right: 5px;
}
.img {
vertical-align: bottom;
height: 1em !important;
width: 1em !important;
padding-bottom: 3px;
}
</style> ---<br>
<div style="font-family:Tahoma, sans-serif; color:#008081;
font-size:14px;">
<h2 style="font-family:Tahoma, sans-serif; font-weight: 700;
color:#008081; font-size:14px; margin: 0 0 0px; line-height:
18px;">Javor Kliachev</h2>
<h4 style="color: #88CDD3; font-weight: 100; font-size: 14px;
margin: 0 0 0px 0;">Senior Engineer IP Services</h4>
<span class="info_type">office:</span><span class="info">+359 2
974 33 11</span><br>
<span class="info_type">mobile:</span><span class="info">+359
885 98 84 95 </span><br>
</div>
<a href="http://www.neterra.net" style="font-size:14px;
font-family:Verdana; color:#008081; text-decoration:none
!important;">www.neterra.net</a> <a
href="https://bg.linkedin.com/pub/javor-kliachev/11/b46/843"
style="text-decoration:none;"> <img
src="http://old.neterra.net/public/signatures/LinkedIn-icon-mini.png"
class="img"> </a> <br>
<br>
<br>
</div>
</body>
</html>