Source IP

Setting your own IPs as the source

In some scenarios, eg if you connect to an IXP, or have Uplinks with non-routed peering IPs, you may be faced with the issue that your router can no longer reach the internet despite having a route. The issue is that the source IP used by Linux is not reachable from the internet. To fix this we need to assign an IP to our loopback interface and amend your bird config.

You can assign an IP to lo with:

ip addr add YOURPREFIX::1/128 dev lo

Then, edit the bird config:

protocol kernel {
    scan time 15;
        device routes off;
        learn on;
        import all;
        export filter {
            krt_prefsrc = YOURLOIP;