afrinic presentation - resource certification by amreesh phokeer

25
Resource Certification (RPKI) @AFRINIC Amreesh Phokeer IWeek’16, JNB, ZA September 20, 2016

Upload: afrinic

Post on 20-Feb-2017

27 views

Category:

Internet


1 download

TRANSCRIPT

Page 1: AFRINIC Presentation - Resource certification by Amreesh Phokeer

Resource Certification (RPKI) @AFRINIC

Amreesh PhokeerIWeek’16, JNB, ZASeptember 20, 2016

Page 2: AFRINIC Presentation - Resource certification by Amreesh Phokeer

Agenda

● What is the rationale behind RPKI?

● What is resource certification?

● How to get your resources certified?

● How to sign your routing announcements?

● How to make your router talk RPKI?

● How to build filters based on validated routes?

● Demo

● Current hot topics

2

Page 3: AFRINIC Presentation - Resource certification by Amreesh Phokeer

Rationale

● Routing mostly based on trust

● BGP offer amazing possibilities but poor security

● No systematic way to filter peers and customers

● Unreliable sources of policy information

● The Internet is full of stories of:

○ Route leaks you said?

○ BGP hijacks

○ Traffic redirection

○ Blackholing

3

Page 4: AFRINIC Presentation - Resource certification by Amreesh Phokeer

Mitigation techniques

● Conservative filtering

● Use of Routing Registries but:

○ Do not have all routing information

○ Do not necessarily mirror each other

○ Routing policies not kept up-to-date

○ Error-prone

4

Page 5: AFRINIC Presentation - Resource certification by Amreesh Phokeer

Youtube and Pakistan Telecom (2008)

5

Page 6: AFRINIC Presentation - Resource certification by Amreesh Phokeer

Timeline

6

Page 7: AFRINIC Presentation - Resource certification by Amreesh Phokeer

China Telecom - Traffic redirection

7

Page 8: AFRINIC Presentation - Resource certification by Amreesh Phokeer

How do we securing Internet Routing?

● A route consist of:

○ An origin-as and a prefix

○ A path

8

Page 9: AFRINIC Presentation - Resource certification by Amreesh Phokeer

How do we securing Internet Routing?

● A route consist of:

○ An origin-as and a prefix

○ A path

9

Page 10: AFRINIC Presentation - Resource certification by Amreesh Phokeer

How do we securing Internet Routing?

● A route consist of:

○ An origin-as and a prefix

○ A path

10

Prefix originationAS_PATH

You need to secure both!!!

Page 11: AFRINIC Presentation - Resource certification by Amreesh Phokeer

Solution - RPKI

● SIDR group at the IETF

○ How to securely verify that an AS is authorised to announce a

prefix? (Origin Validation)

○ How to make sure that the AS_PATH has not been modified?

(BGPSEC)

● Origin validation

○ RFC 5280: X.509 Public Key Infrastructure

○ RFC 3779: Extensions for IP addresses and ASN

● BGPSEC (still on-going)

11

Page 12: AFRINIC Presentation - Resource certification by Amreesh Phokeer

Role of the RIR

● Receives global allocations from IANA

● Distribute and manage resources at a regional level

● Make sure information are up-to-date and accurate

● Becomes the de-facto authority as sole registry regionally

12

IANA

AFRINIC

LIR

EU

APNIC

RIPE NCC

ARIN

LACNIC

Page 13: AFRINIC Presentation - Resource certification by Amreesh Phokeer

Role of the RIR

● Receives global allocations from IANA

● Distribute and manage resources at a regional level

● Make sure information are up-to-date and accurate

● Becomes the de-facto authority as sole registry regionally

13

IANA

AFRINIC

LIR

EU

APNIC

RIPE NCC

ARIN

LACNIC

Page 14: AFRINIC Presentation - Resource certification by Amreesh Phokeer

Resource Certificates

● RPKI defines two types of certificates:

○ CA - Certificate Authority (to issue CA or EE)

○ EE - End-entity (digital signature, etc)

● Certify resources - verifiable ownership!

● AFRINIC has a self-signed root certificate

● IANA one-day!

● Opt-in service, one year validity

● Exclude legacy space/members

14

Page 15: AFRINIC Presentation - Resource certification by Amreesh Phokeer

Certificate hierarchy

15

Issuer: AFRINICSubject: ISP1Resources: 192.2.0.0/16Pub Key Info: <ISP1-key>Signed by: <root-key-priv>

Resource Allocation Hierarchy

Issuer: ISP1Subject: ISP2Resources: 192.2.200.0/22Pub Key Info: <isp2-key>Signed by: <afrinic-key-priv>

Issuer: ISP2Subject: ISP2-EEResources: 192.2.200.0/24Pub Key Info: <isp2-ee-key>Signed by: <isp2-key-priv>

ROAAS 3

192.2.200.0/24-24

Page 16: AFRINIC Presentation - Resource certification by Amreesh Phokeer

Repositories

● Public

● Certificates and ROA

● CRL and MFT

● Hosted or delegated

● HOSTED MODE only

16

IANA

AFRINIC

LIR

EU

APNIC

RIPE NCC

ARIN

LACNIC

R

R

R

R

R

R R

Publish at parent

Page 17: AFRINIC Presentation - Resource certification by Amreesh Phokeer

AFRINIC’s Repository

17

AFRINIC Root Certificate

AFRINIC member’s repository

Page 18: AFRINIC Presentation - Resource certification by Amreesh Phokeer

Demo

https://my.afrinic.net

18

Page 19: AFRINIC Presentation - Resource certification by Amreesh Phokeer

Validated caches

19

AFRINIC Validator Host: validator.afrinic.net Port: 8080

Page 20: AFRINIC Presentation - Resource certification by Amreesh Phokeer

Configure your router

20

router bgp 12345…bgp rpki server tcp 192.168.179.3 port 43779 refresh 60bgp rpki server tcp 147.28.0.84 port 93920 refresh 60

Page 21: AFRINIC Presentation - Resource certification by Amreesh Phokeer

Route announcement status

21

● Valid – A matching/covering prefix was found with a

matching AS number

● Invalid – A covering prefix was found, but the AS

number did not match, and there was no other

matching one

● NotFound – No matching or covering prefix was

found, same as today

Page 22: AFRINIC Presentation - Resource certification by Amreesh Phokeer

You define your own policy

22

Fairly Secure

route-map validity-0match rpki validset local-preference 100

route-map validity-1match rpki not-foundset local-preference 50

! invalid is dropped

Paranoid

route-map validity-0match rpki validset local-preference 110! everything else dropped

Security Geek

route-map validity-0match rpki invalidset local-preference 110! everything else dropped

Page 23: AFRINIC Presentation - Resource certification by Amreesh Phokeer

RPKI tools

● Validators:

○ RIPE Validator

○ Rcynic - www.rpki.net (CA+Validator)

○ RPSTIR

● Looking glasses:

○ bgp.he.net

○ Bgpmon

○ RIPEStat

23

Page 24: AFRINIC Presentation - Resource certification by Amreesh Phokeer

RPKI Hot topics

● Global trust anchor

○ ICANN/IANA/NRO

○ Support from local RIR community

● RPKI Adverse actions

● RPKI Validation considered

○ Transfers of resources

○ ERX spaces

24