ASN Experiment

Why?

How?

What?

Constraints

Advantages

Requirements

Disclaimer

Special Thanks


So how exactly does one gain an ASN?

Umm, what now?

RIPE Database

BGP with BIRD

#/etc/bird/bird.conf
log syslog all;  
router id 0.0.0.0; 
protocol static static_bgp {  
    ipv6;  
    route 2a0f:85c1:362::00/48 via 0.0.0.0;  
} 
protocol device { scan time 5; }  
protocol direct {  
    interface "dummy*";  
    ipv6 { import all; };  
}  
protocol kernel {  
    ipv6 { export all; };  
    scan time 15;  
}  
protocol bgp frantech {  
    local as 215634;
    source address 0.0.0.0;  
    neighbor 1.1.1.1 as 53667;
    password "secret";
    multihop 2;  
    ipv6 {  
        import none;  
        export where proto = "static_bgp";  
    };  
    graceful restart on;  
}

And now we're into the juicy bit.

traceroute to 0.0.0.0 (0.0.0.0), 30 hops max, 60 byte packets  
1  1.1.1.2 (1.1.1.2)  0.142 ms  0.128 ms  0.144 ms  
2  1.1.1.1 (1.1.1.1)  0.380 ms  0.352 ms  0.301 ms

RPKI

RPKI portal

Krill

Feb 01 06:34:58 localhost systemd[1]: krill.service: Start request repeated too quickly.  
Feb 01 06:34:58 localhost systemd[1]: krill.service: Failed with result 'signal'.
[870804.049696] krill invoked oom-killer: gfp_mask=0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), order=0, oom_score_adj=0
[870850.692584] krill invoked oom-killer: gfp_mask=0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), order=0, oom_score_adj=0  
[870875.469858] krill invoked oom-killer: gfp_mask=0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), order=0, oom_score_adj=0
...

View route on Cloudflare's RPKI tool

Success!

Once RPKI routes were published, my routes started propagating to Frantech's peers.

If your network has IPv6 support, you can connect to a little nginx webserver I have running on the router at route0.sethmb.xyz

Future Plans

I would quite like to stop relying on the Frantech server at some point. For this, I would run a Raspberry Pi on my home network and publish BGP announcements from there. This is limited however as my ISP does not allow BGP announcements (I asked) so I would need to use BGP over GRE and partner up with someone like Tunnelbroker to get this working. Further investigation required!