Set src address of the route
Alexey Boldyrev
ne-vlezay80 at yandex.ru
Thu Jun 19 22:49:40 CEST 2025
protocol kernel4 {
ipv4 {
import none;
export filter {krt_prefsrc=90.189.177.10; accept;};
};
}
protocol kernel6 {
ipv6 {
import none;
export filter {krt_prefsrc=2a0d:8770:21ac:10::1; accept;};
}
}
On 19.06.2025 18:11, Max Tulyev wrote:
> Hello,
>
> is it possible for bird (v 2.x) to manually set in the routing table in Linux the source address of the route came via BGP?
>
> i.e. I got the route 192.168.0.0/16 with nexthop 10.1.1.1, and need to export to the kernel something like this:
> "ip ro add 192.168.0.0/16 via 10.1.1.1 dev eth0.5 proto bird SRC 172.16.0.1"
>
> The real life example: the bird router connected to Internet Exchange point, learned the route from the peer or the route server. When something from this router wants to connect to something within this route, the source address of this connection will be the address of the Internet Exchange interface, which is not globally routed, and connection will fail.
>
> Any ideas?
>
> Thank you!
>
More information about the Bird-users
mailing list