compress-roas wades through the ROAs rcynic (from RPKI.net, see below) collects and compresses the prefixes based on the prefix length and max length specified in the ROA.
For simplicity, compress-roas produces an output with the same format as scan_roas (from RPKI.net):
[Time] [ASN] [IP_Prefix] [maxLength]compress-roas prints A ROA per line.
Make sure you have the following installed before running compress-roas:
- RPKI.net Relying Party tools.
- Installation instructions here
- Pytrie (you can use
pipto install this package) - netaddr (you can use
pipto install this package)
You can use compress-roas with rpki-rtr(from RPKI.net) to create a database for an RPKI cache server:
rpki-rtr cronjob --scan-roas compress-roas [server/PDU-directory]You can also use compress-roas on its own (you will need to use it with "sudo" if not used under the user "rpki"):
compress-roasTo reproduce the results from "MaxLength Considered Harmful to the RPKI" (https://eprint.iacr.org/2016/1015.pdf) use the "Reproducibility" branch (see README).