aaron murrihy aaron murrihy reannz co nz
play

AARON MURRIHY aaron.murrihy@reannz.co.nz 1 Apricot 2020 RPKI Feb - PowerPoint PPT Presentation

SECURING THE INTERNET VALIDATING ROUTING WITH RPKI AARON MURRIHY aaron.murrihy@reannz.co.nz 1 Apricot 2020 RPKI Feb 20 ABOUT US 2 Apricot 2020 RPKI Feb 20 ABOUT REANNZ New Zealands NREN Engineering team of 7


  1. SECURING THE INTERNET – VALIDATING ROUTING WITH RPKI AARON MURRIHY aaron.murrihy@reannz.co.nz 1 Apricot 2020 RPKI – Feb 20

  2. ABOUT US 2 Apricot 2020 RPKI – Feb 20

  3. ABOUT REANNZ New Zealand’s NREN • Engineering team of 7 • AS38022 • Peering points in 3 countries • – NZ, Australia, US 100G backbone • 3 Apricot 2020 RPKI – Feb 20

  4. THE PROBLEM 4 Apricot 2020 RPKI – Feb 20

  5. PROBLEM ROUTE HIJACKING 192.168.0.0/20 BGP has no mechanism for ensuring trust! 192.168.0.0/21 192.168.8.0/21 5 Apricot 2020 RPKI – Feb 20

  6. PROBLEM ROUTE HIJACKING 192.168.0.0/20 192.168.0.0/20 6 Apricot 2020 RPKI – Feb 20

  7. PROBLEM ROUTE HIJACKING 192.168.0.0/20 g n i r e e P Can be malicious or accidental 7 Apricot 2020 RPKI – Feb 20

  8. PROBLEM MITIGATIONS Route filters based on IRR information • – Which registry? – What about transit providers? – Still no mechanism for ensuring trust Or… • 8 Apricot 2020 RPKI – Feb 20

  9. RPKI 9 Apricot 2020 RPKI – Feb 20

  10. RPKI ABOUT RPKI R esource P ublic K ey I nfrastructure RFC6480 (and many others) • Binds route prefix to origin ASN • – Signed cryptographically – Ensures trust (sort of) Recommended for MANRS compliance • – https://www.manrs.org Signed prefixes stored (and distributed) by the 5 RIRs • https://blog.cloudflare.com/rpki/ 10 Apricot 2020 RPKI – Feb 20

  11. RPKI WHAT DOES RPKI PROTECT AGAINST (#1) Super Fun Time Party 11 Apricot 2020 RPKI – Feb 20

  12. RPKI WHAT DOES RPKI PROTECT AGAINST (#1) Super Fun Time Can I join Party the party? 12 Apricot 2020 RPKI – Feb 20

  13. RPKI WHAT DOES RPKI PROTECT AGAINST (#1) Super What’s your Fun Time name? Party 13 Apricot 2020 RPKI – Feb 20

  14. RPKI WHAT DOES RPKI PROTECT AGAINST (#1) Super Fun Time Party Jamie 14 Apricot 2020 RPKI – Feb 20

  15. RPKI WHAT DOES RPKI PROTECT AGAINST (#1) Super From Fun Time Wellington? Party 15 Apricot 2020 RPKI – Feb 20

  16. RPKI WHAT DOES RPKI PROTECT AGAINST (#1) Super Fun Time Na, from Party Sydney 16 Apricot 2020 RPKI – Feb 20

  17. RPKI WHAT DOES RPKI PROTECT AGAINST (#1) Super Sorry, buddy. You’re not on Fun Time my list Party 17 Apricot 2020 RPKI – Feb 20

  18. RPKI WHAT DOES RPKI PROTECT AGAINST (#1) Another ASN advertising your routes Super Fun Time Party 18 Apricot 2020 RPKI – Feb 20

  19. RPKI WHAT DOES RPKI PROTECT AGAINST (#2) Super Fun Time Party 19 Apricot 2020 RPKI – Feb 20

  20. RPKI WHAT DOES RPKI PROTECT AGAINST (#2) Super Fun Time Can I join Party the party? 20 Apricot 2020 RPKI – Feb 20

  21. RPKI WHAT DOES RPKI PROTECT AGAINST (#2) Super What’s your Fun Time name? Party 21 Apricot 2020 RPKI – Feb 20

  22. RPKI WHAT DOES RPKI PROTECT AGAINST (#2) Super Fun Time Party Jamie 22 Apricot 2020 RPKI – Feb 20

  23. RPKI WHAT DOES RPKI PROTECT AGAINST (#2) Super From Fun Time Wellington? Party 23 Apricot 2020 RPKI – Feb 20

  24. RPKI WHAT DOES RPKI PROTECT AGAINST (#2) Super Fun Time Party Yep 24 Apricot 2020 RPKI – Feb 20

  25. RPKI WHAT DOES RPKI PROTECT AGAINST (#2) Super Fun Time Jamie Senior? Party 25 Apricot 2020 RPKI – Feb 20

  26. RPKI WHAT DOES RPKI PROTECT AGAINST (#2) Super Fun Time Party No, Jamie Junior 26 Apricot 2020 RPKI – Feb 20

  27. RPKI WHAT DOES RPKI PROTECT AGAINST (#2) Super Sorry, buddy. I’ve been specifically asked by your Fun Time Dad to only let him in. Party 27 Apricot 2020 RPKI – Feb 20

  28. RPKI WHAT DOES RPKI PROTECT AGAINST (#2) The same or a different ASN advertising a more specific route Super Fun Time Party 28 Apricot 2020 RPKI – Feb 20

  29. RPKI WHAT DOESN’T RPKI PROTECT AGAINST Super Fun Time Party 29 Apricot 2020 RPKI – Feb 20

  30. RPKI WHAT DOESN’T RPKI PROTECT AGAINST Super Fun Time Can I join Party the party? 30 Apricot 2020 RPKI – Feb 20

  31. RPKI WHAT DOESN’T RPKI PROTECT AGAINST Super What’s your Fun Time name? Party 31 Apricot 2020 RPKI – Feb 20

  32. RPKI WHAT DOESN’T RPKI PROTECT AGAINST Super Fun Time Party Jamie 32 Apricot 2020 RPKI – Feb 20

  33. RPKI WHAT DOESN’T RPKI PROTECT AGAINST Super From Fun Time Wellington? Party 33 Apricot 2020 RPKI – Feb 20

  34. RPKI WHAT DOESN’T RPKI PROTECT AGAINST Super Fun Time Party Umm… OK, Sure 34 Apricot 2020 RPKI – Feb 20

  35. RPKI WHAT DOESN’T RPKI PROTECT AGAINST Super That’s good enough Fun Time for me. Come on in! Party 35 Apricot 2020 RPKI – Feb 20

  36. RPKI WHAT DOESN’T RPKI PROTECT AGAINST Malicious party forging your ASN as the origin Super Fun Time Party 36 Apricot 2020 RPKI – Feb 20

  37. RPKI TLDR Protects against • – accidental advertisement of incorrect routes – route hijacking with more specific prefixes Doesn’t protect against • – malicious advertisement of routes with impersonated origin ASN – accidental transit of peer routes Validating the AS path is a whole other kettle of cryptographic fish 37 Apricot 2020 RPKI – Feb 20

  38. RPKI IMPLEMENTATION 38 Apricot 2020 RPKI – Feb 20

  39. RPKI IMPLEMENTATION RPKI ARCHITECTURE RSYNC RPKI-RTR ROA Validator BGP Routers 39 Apricot 2020 RPKI – Feb 20

  40. RPKI IMPLEMENTATION ROA https://myapnic.net -> Resources -> (Route Management) Routes 40 Apricot 2020 RPKI – Feb 20

  41. RPKI IMPLEMENTATION ROA Just tick the ROA option - trivial 41 Apricot 2020 RPKI – Feb 20

  42. RPKI IMPLEMENTATION VALIDATOR (RELYING PARTY) RIPE RPKI Validator – Infrastructure Java • 2 x containers • Ansible-managed • Memory-hungry (~6GB) • – Capability Downloads ROAs with RSYNC • Validates ROAs cryptographically • ROA overrides (Ignore, Whitelist) • Performs the RTR transfer to your BGP routers • Validated data can be exposed via JSON API • https://blog.apnic.net/2019/10/28/how-to-installing-an-rpki-validator/ 42 Apricot 2020 RPKI – Feb 20

  43. RPKI IMPLEMENTATION VALIDATOR (RELYING PARTY) 43 Apricot 2020 RPKI – Feb 20

  44. RPKI IMPLEMENTATION ADVERTISE VALIDATED DATA TO NETWORK RPKI to Router (RTR) protocol – RFC6810 – Unencrypted filter protect-re { term rpki-rtr { routing-options { from { validation { notification-rib [ some-inet.0 some-inet6.0 ]; source-prefix-list { rpki-rtr-validators; group rpki-wlg { session 203.0.113.14 { } protocol tcp; port 8282; source-port 8282; local-address 192.0.2.1 } } then accept; } } } } } 44 Apricot 2020 RPKI – Feb 20

  45. RPKI IMPLEMENTATION ENABLING RPKI POLICY Just add an import filter to your peering policy term valid { term invalid { term unknown { from { from { from { protocol bgp; protocol bgp; protocol bgp; validation-database valid; validation-database invalid; validation-database unknown; } } } then { then { then { validation-state valid; validation-state invalid; validation-state unknown; next policy; reject; next policy; } } } } } } 45 Apricot 2020 RPKI – Feb 20

  46. RPKI IMPLEMENTATION REANNZ RPKI BEST PRACTICE Apply on external BGP feeds • – Peerings, Transit Providers, R&E Not applying to customers • – Exact route filters already in place (built from IPAM) Begin by logging invalid routes • Then act on RPKI validation • – Valid == Accept – Invalid == Reject – Unknown == Accept 46 Apricot 2020 RPKI – Feb 20

  47. RPKI IMPLEMENTATION REANNZ RPKI BEST PRACTICE Use exact prefix lengths for ROAs • Automate regular checks of your configured ROAs • aaron@nms-wlg:~$ check_reannz_roas Missing ROAs: 140.200.0.0/24 AS38022 140.200.1.0/24 AS38299 Extra ROA's: 140.200.1.0/24 AS38022 47 Apricot 2020 RPKI – Feb 20

  48. RPKI IMPLEMENTATION SHOULD I ENABLE RPKI VALIDATION? Pro • – Gain benefit without full (internet-wide) implementation – Security improves as adoption increases – BGP performance/reliability unaffected – Cleanly handles failure – Operationally, pretty simple to implement/run Con • – Requires ensuring ROAs are kept up-to-date – Some extra training for the NOC 48 Apricot 2020 RPKI – Feb 20

  49. RPKI IMPLEMENTATION SHOULD I ENABLE RPKI VALIDATION? Pro • N o – Gain benefit without full (internet-wide) implementation t i f y o – Security improves as adoption increases u r e c – BGP performance/reliability unaffected e i v e – Cleanly handles failure t h e d – Operationally, pretty simple to implement/run e f a u l t r o u t e Con • ! – Requires ensuring ROAs are kept up-to-date – Some extra training for the NOC 49 Apricot 2020 RPKI – Feb 20

  50. RPKI IMPLEMENTATION Number of reported faults: 0 http://sg-pub.ripe.net/jasper/rpki-web-test 50 Apricot 2020 RPKI – Feb 20

  51. RPKI IMPLEMENTATION Number of reported faults: 2 http://sg-pub.ripe.net/jasper/rpki-web-test 51 Apricot 2020 RPKI – Feb 20

  52. RPKI IMPLEMENTATION LESSONS LEARNED Keep your WHOIS contact details up-to-date • Automate checks of validity of your ROAs • – https://github.com/taiji-k/roamon-verify Implement a check of what IP space disappears when rejecting invalid • routes – Ignore where there is a valid covering route – https://nusenu.github.io/RPKI-Observatory/unreachable-networks.html 52 Apricot 2020 RPKI – Feb 20

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend