<div dir="ltr">Hello K.<div><br></div><div>Thanks for checking in this issue.</div><div>But, I can't understand.</div><div>If it was because of the iptables, it would have been a problem for BGP as well.<br></div><div>And I'm not using iptables rules, So Any packets weren't dropped.</div><div><br></div><div>* iptables status</div><div>============================================================</div><div># iptables -L<br>Chain INPUT (policy ACCEPT)<br>target Â  Â  prot opt source Â  Â  Â  Â  Â  Â  Â  destination<br><br>Chain FORWARD (policy ACCEPT)<br>target Â  Â  prot opt source Â  Â  Â  Â  Â  Â  Â  destination<br><br>Chain OUTPUT (policy ACCEPT)<br>target Â  Â  prot opt source Â  Â  Â  Â  Â  Â  Â  destination<br>============================================================<br></div><div><br></div><div>* Port status<br>============================================================ </div><div># netstat -lnp | grep bird<br>tcp Â  Â  Â  Â 0 Â  Â  Â 0 <a href="http://0.0.0.0:179">0.0.0.0:179</a> Â  Â  Â  Â  Â  Â  0.0.0.0:* Â  Â  Â  Â  Â  Â  Â  LISTEN Â  Â  Â 44890/bird<br>udp Â  Â  Â  Â 0 Â  Â  Â 0 <a href="http://0.0.0.0:3784">0.0.0.0:3784</a> Â  Â  Â  Â  Â  Â 0.0.0.0:* Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  44890/bird<br>udp Â  Â  Â  Â 0 Â  Â  Â 0 <a href="http://0.0.0.0:4784">0.0.0.0:4784</a> Â  Â  Â  Â  Â  Â 0.0.0.0:* Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  44890/bird<br>unix Â 2 Â  Â  Â [ ACC ] Â  Â  STREAM Â  Â  LISTENING Â  Â  320049 Â  44890/bird Â  Â  Â  Â  Â  /run/bird/bird.ctl<br>unix Â 2 Â  Â  Â [ ACC ] Â  Â  STREAM Â  Â  LISTENING Â  Â  398938 Â  44893/bird6 Â  Â  Â  Â  Â /run/bird/bird6.ctl<br></div><div>

============================================================

 <br></div><div><br></div><div>* BIRD Status<br>============================================================ </div><div># birdc show bfd sessions<br>BIRD 1.6.8 ready.<br>bfd1:<br>IP address Â  Â  Â  Â  Â  Â  Â  Â Interface Â State Â  Â  Â Since Â  Â  Â  Interval Â Timeout<br>10.11.251.4 Â  Â  Â  Â  Â  Â  Â  --- Â  Â  Â  Â Init Â  Â  Â  09:37:57 Â  Â  Â 2.000 Â  Â 6.000<br>10.11.250.4 Â  Â  Â  Â  Â  Â  Â  --- Â  Â  Â  Â Init Â  Â  Â  09:37:56 Â  Â  Â 2.000 Â  Â 6.000<br></div><div><br></div><div># birdc show protocols<br>BIRD 1.6.8 ready.<br>name Â  Â  proto Â  Â table Â  Â state Â since Â  Â  Â  info<br>kernel1 Â Kernel Â  master Â  up Â  Â  09:37:52<br>direct1 Â Direct Â  master Â  up Â  Â  09:37:52<br>device1 Â Device Â  master Â  up Â  Â  09:37:52<br>static1 Â Static Â  master Â  up Â  Â  09:37:52<br>bfd1 Â  Â  BFD Â  Â  Â master Â  up Â  Â  09:37:52<br>as1 Â  Â  Â BGP Â  Â  Â master Â  up Â  Â  09:37:56 Â  Â Established<br>as2 Â  Â  Â BGP Â  Â  Â master Â  up Â  Â  09:37:57 Â  Â Established<br></div><div>

============================================================

 <br></div><div><br></div><div>Is it related to the increase in this value?<br></div><div><div>============================================================<br></div><div># netstat -s</div><div>...</div><div>Udp:<br>  Â  52759 packets received<br>  Â  0 packets to unknown port received<br>  Â  0 packet receive errors<br>  Â  34365164 packets sent<br>  Â  0 receive buffer errors<br>  Â  0 send buffer errors<br>  Â  IgnoredMulti: 3399<br>...</div><div><div>============================================================<br></div><div><br></div><div>Please check it.</div><div><br></div><div>Regards.</div><div></div></div><div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">2020ë…„ 7ě›” 16일 (목) ě˜¤í›„ 8:05, Kees Meijs | Nefos <<a href="mailto:kees@nefos.nl">kees@nefos.nl</a>>님이 ěž‘성:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    Hi Seunghwan,<br>
    <br>
    It might be your problem isn't BIRD but packet filter related.<br>
    <br>
    Please check the BFD packets are allowed in iptables c.q. netfilter
    using the correct ports and/or addresses.<br>
    <br>
    A possible reason why it starts working after a manual protocol
    restart is a ESTABLISHED, RELATED rule.<br>
    <br>
    References:<br>
    <ul>
      <li><a href="https://tools.ietf.org/html/rfc5881" target="_blank">https://tools.ietf.org/html/rfc5881</a> (Encapsulation, IANA
        Considerations)<br>
      </li>
      <li><a href="https://tools.ietf.org/html/rfc5883" target="_blank">https://tools.ietf.org/html/rfc5883</a> (IANA Considerations)<br>
      </li>
    </ul>
    <br>
    K.<br>
    <br>
    <div>On 16-07-2020 11:00, seunghwan hwang
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">Hello.
        <div>BFD is Not working normally.</div>
        <div>My configuration is shown below.</div>
        <div><br>
        </div>
        <div>OS: Ubuntu 18.04</div>
        <div>Kernel: 4.15.0-54-generic</div>
        <div>BIRD ver: 1.6.8</div>
        <div>==================================</div>
        <div>protocol bfd {<br>
          Â  Â  Â  Â  multihop {<br>
          Â  Â  Â  Â  Â  Â  min rx interval 300 ms;<br>
          Â  Â  Â  Â  Â  Â  min tx interval 300 ms;<br>
          Â  Â  Â  Â  Â  Â  multiplier 3;<br>
          Â  Â  Â  Â  };<br>
          }<br>
        </div>
        <div><br>
        </div>
        <div>protocol bgp as1 {<br>
          Â  Â  Â  Â  import all;<br>
          Â  Â  Â  Â  export all;<br>
          <br>
          Â  Â  Â  Â  local ~ as ~;<br>
          Â  Â  Â  Â  neighbor ~  as ~;  <br>
          Â  Â  Â  Â  enable route refresh off;<br>
          Â  Â  Â  Â  hold time 90;<br>
          Â  Â  Â  Â  bfd on;<br>
          }<br>
          <br>
          protocol bgp as2 {<br>
          Â  Â  Â  Â  import all;<br>
          Â  Â  Â  Â  export all;
          <br>
          <br>
          Â  Â  Â  Â  local ~ as ~;<br>
          Â  Â  Â  Â  neighbor ~  as ~;  <br>
          Â  Â  Â  Â  enable route refresh off;<br>
          Â  Â  Â  Â  hold time 90;<br>
          Â  Â  Â  Â  bfd on;  <br>
          }<br>
        </div>
        <div>==================================  <br>
        </div>
        <div><br>
        </div>
        <div>After system reboot(# shutdown -r now), BGP neighbor is
          established, But BFD sessions are stuck in 'INIT' status. And
          BIRD does not send BFD packets.<br>
        </div>
        <div>BFD sessions have recovered after restart protocol bfd1(#
          birdc restart bfd1).</div>
        <div><br>
        </div>
        <div>Is it a normal situation?</div>
        <div>I think BFD has to start the mechanism after BGP neighbor
          is UP.</div>
        <div>Is there any missing part of my configurations?<br>
        </div>
        <div>Please check it.</div>
        <div><br>
        </div>
        <div>Regards</div>
      </div>
    </blockquote>
    <br>
  </div>

</blockquote></div>