BGP and passwords

Elmar K. Bins elmi at noir.de
Wed Aug 27 10:05:48 CEST 2025


Hello friends,

running current BIRD2 on FreeBSD, 2.17.1.

Starting a few updates ago I get a nagging warning in my log files for BGP
sessions that carry a password, namely:

---
    /usr/local/etc/bird.peers:94:1: Missing authentication option, assuming MD5
---

Yet, when I try to add the algo option, like this:
---
    protocol bgp <nei> from <templ> {
      neighbor <ip>;
      password "<pass>" { algorithm MD5; };
    };
---
BIRD still hates on me:
---
    /usr/local/etc/bird.peers:94:20 syntax error, unexpected '{', expecting ';'
---

I suppose this only works with BIRD 3?

BIRD2 documents as follows:
---
password string

    Use this password for MD5 authentication of BGP sessions (RFC 2385). When
    used on BSD systems, see also setkey option below. Default: no
    authentication.
---

So - how do I fix this?

Thanks for any help,
                    Elmar.


More information about the Bird-users mailing list