Skip to Content.
Sympa Menu

netsec-sig - Re: [External] Re: [Security-WG] Generating an RPKI ROA request with lots of prefixes

Subject: Internet2 Network Security SIG

List archive

Re: [External] Re: [Security-WG] Generating an RPKI ROA request with lots of prefixes


Chronological Thread 
  • From: "Garrett, Seth B" <>
  • To: "" <>
  • Subject: Re: [External] Re: [Security-WG] Generating an RPKI ROA request with lots of prefixes
  • Date: Fri, 17 Aug 2018 20:38:29 +0000
  • Accept-language: en-US
  • Ironport-phdr: 9a23:Cmv13B1uytRw/E8ZsmDT+DRfVm0co7zxezQtwd8ZseIQLfad9pjvdHbS+e9qxAeQG9mDtbQc06L/iOPJYSQ4+5GPsXQPItRndiQuroEopTEmG9OPEkbhLfTnPGQQFcVGU0J5rTngaRAGUMnxaEfPrXKs8DUcBgvwNRZvJuTyB4Xek9m72/q99pHPYghEniaxba9vJxiqsAvdsdUbj5F/Iagr0BvJpXVIe+VSxWx2IF+Yggjx6MSt8pN96ipco/0u+dJOXqX8ZKQ4UKdXDC86PGAv5c3krgfMQA2S7XYBSGoWkx5IAw/Y7BHmW5r6ryX3uvZh1CScIMb7S60/Vza/4KdxUBLmiDkJOSMl8G/ZicJwgqBUoBO9qBNw2IPbep2ZOeBkc6/BYd8WWGxMVdtRWSxbBYO8apMCA+QAM+lCtYn9vUUBrQeiBQW0Gejh1yFHhmP23aYnzuktHxzN0Qs7H90Vv3Tbts/1NL0MXuCp16TIzCjDY+lI1jjg9YjFaxYsquyCU7J3dMre00gvFwXdg1qKs4zlPjWV2v4Ls2eF8+psTe2vi287qwFxvzig3d0ghZXOhoIQzF3P6CZ3wJ4tKNGlRkN2bsSoHZpTui2AKYd6XN8uT3tmtSs00rEKpJ+2cDYQxJg52RLSauaLfoeU7h75SuqcLi90hHx7d7+8mxq/9E2tx+LgWcWq0VtHqypInsfXuX0D0hHT5MaKR/Rn8Uqk3TuP2Rzf5+NCLEspj6TUMYQhzaQ1lpcLsUTMACv2mELuga+McUUr4emo6+L9brX7p5+cK5R0hhv/MqQzgMCwH/k3MhUWU2ia/+SzyqHj8FXkTLhEgfA6iKjUvZPAKcgFuKK1HxVZ34gt5hqnCjepytUYnX0JLFJffxKHipDkO0rVL/D3F/i/mU6snyl3x/3dP73hH4/BIWben7f8Zbp98VJTyBIvzdBD4JJZEqoBL+zvVU/srtzYDwM5Mgytz+fpB9VwzYceWWOUAq+FK6Per0WE5uMpI+mQeoAVojD9JOY55/Lwl3M2h0ISfbT6lacQPTqjE/97OUSFcD/zjf8AF3sHpAwzULashVGfG3YHfHu5Qrg9+iB+F42ODIHfS5qrjaDbmiq3A8sFSHpBDwXGPn7ybYiYR7NEUy+OIodL2HRQTrKuQpU72A2GtRK8xrZ6eLmHshYEvI7ugYAmr9bYkgs/oGR5

Wishful thinking...  It would be handy if the RPKI ROA allowed for a range and not just a limit of maxlength.  Similar to the Juniper route filter.


route-filter 129.79.0.0/16 prefix-length-range /24-/24

2001:18e8::/44 prefix-length-range /64-/64


Allows only /24's from within the /16 for IPv4 or /64's from the /44 for IPv6.  


Seth Garrett
Principal Network Engineer
Indiana University


From: <> on behalf of Brad Fleming <>
Sent: Friday, August 17, 2018 4:13 PM
To:
Subject: [External] Re: [Security-WG] Generating an RPKI ROA request with lots of prefixes
 
This message was sent from a non-IU address. Please exercise caution when clicking links or opening attachments from external sources.
Thanks very much for the script and examples.

So is prevailing notion to make a ROA including the 65K /48s within a typical /32 assignment? I suppose I’m OK with the approach, just seems like that ROA is gonna crazy huge.
--
Brad Fleming
Assistant Director for Technology
Kansas Research and Education Network

On Aug 15, 2018, at 12:55 PM, Andrew Gallo <> wrote:

Greetings, Security WG:

Seth Garrett and I have been trading some emails about creating a ROA request with a lot of prefixes.  I've written a script that can make this easier.
https://github.com/CAAREN-engineering/generateSignedROAreq

Here's the scenario and use-case:

If you have a large summary prefix, let's say an IPv4 /16, and you would like to cover this prefix AND all the /24s within it, you *could* use the Max Length feature to create a ROA request for 172.16.0.0/16-24. HOWEVER, use of Max Length field is no longer recommended (can lead to larger attack surface).

You might want ROAs covering all the constituent /24s so that they can be originated by a DDoS scrubbing service.

At this point, following best practices, you're left with entering 256 prefixes by hand in the Hosted RPKI portal.  There is another way!

You can pasted into the portal pre-formatted, pre-signed text.

ARIN's instructions are here:
https://www.arin.net/resources/rpki/roarequest.html

I wrote a script to help make this process easier.  What you'll need:
Python 3.3+
a file containing a list of prefixes you want included in the ROA (you can mix v4 and v6)
Your private key

The script will ask you some basic information needed to create the ROA request data:
Origin ASN
ROA name
Validity Start Date
Validity End Date


Let me know if you have any questions.



--
________________________________
Andrew Gallo
The George Washington University





Archive powered by MHonArc 2.6.19.

Top of Page