Skip to content

Commit

Permalink
routinator running
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderBand committed Jan 10, 2019
1 parent 3e7ce22 commit 33959c2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 99 deletions.
110 changes: 11 additions & 99 deletions source/routinator/configuration.rst
Original file line number Diff line number Diff line change
@@ -1,104 +1,16 @@
.. _doc_routinator_configuration:

.. note:: The Routinator comes pre-installed with the Trust Anchor Locators (TALs)
of four out of the five RIRs. The ARIN TAL is not automatically loaded,
as users must confirm their acceptance of the `ARIN Relying Party Agreement
(RPA) <https://www.arin.net/resources/rpki/tal.html>`_.

When running the Routinator for the first time, follow the instructions
closely to download and include the ARIN TAL and get the full RPKI data set.

Configuration
=============

There are currently two major functions of the Routinator: printing the
list of valid route origins, also known as Validated ROA Payload (VRP),
and providing the service for routers to access this list via a protocol
known as RPKI-to-Router protocol (RTR).

These (and all other functions) of Routinator are accessible on the
command line via sub-commands. The commands are ``vrps`` and ``rtrd``,
respectively.

Printing a list of valid route origins
--------------------------------------

The Routinator can print a list of valid route origins in four different formats:

- csv: The list is formatted as lines of comma-separated values of the prefix in
slash notation, the maximum prefix length, the autonomous system number, and an abbreviation for the trust anchor the entry is derived from. The latter is the
name of the TAL file without the extension *.tal*. This is the default format
used if the ``-f`` option is missing.
- json: The list is placed into a JSON object with a single element *roas* which
contains an array of objects with four elements each: The autonomous system
number of the network authorised to originate a prefix in *asn*, the prefix
in slash notation in *prefix*, the maximum prefix length of the announced route
in *maxLength*, and the trust anchor from which the authorisation was derived
in *ta*. This format is identical to that produced by the RIPE NCC validator
except for different naming of the trust anchor. The Routinator uses the name of
the TAL file without the extension *.tal* whereas the RIPE NCC Validator has a
dedicated name for each.
- openbgpd: Choosing this format causes the Routinator to produce a *roa-set* configuration item for the OpenBGPD configuration.
- rpsl: This format produces a list of RPSL objects with the authorisation in the
fields *route*, *origin*, and *source*. In addition, the fields *descr*, *mnt-by*, *created*, and *last-modified*, are present with more or less meaningful values.
- none: This format produces no output whatsoever.

Usage
"""""

.. code-block:: bash
routinator vrps
If this is the first time you’ve been using the Routinator, it will create ``$HOME/.rpki-cache``, put the Trust Anchor Locators (TALs) of the five RIRs there,
and then complain that ARIN’s TAL is in fact not really there.

Follow the instructions provided and try again. You can also add
additional trust anchors by simple dropping their TAL file in RFC 7730
format into ``$HOME/.rpki-cache/tals``.

Now Routinator will rsync the entire RPKI repository to your machine
(which will take a while during the first run), validate it and produce
a long list of AS numbers and prefixes.

Information about additional command line arguments is available via the
``-h`` option or you can look at the more detailed man page via the ``man``
sub-command:

.. code-block:: bash
routinator man
It is also available online on the `NLnetLabs documentation site <https://www.nlnetlabs.nl/documentation/rpki/routinator/>`.

Feeding a Router with RPKI-RTR
------------------------------

Routinator supports RPKI-RTR as specified in RFC 8210 as well as the older
version from RFC 6810. It will act as an RTR server if you start it with
the ``rtrd`` sub-command. It will do so as a daemon and detach from your
terminal unless you provide the ``-a`` (for attached) option.

You can specify the address(es) to listen on via the ``-l`` (or ``--listen``)
option. If you don’t, it will listen on ``127.0.0.1:3323`` by default. This
isn’t the IANA-assigned default port for the protocol, which would be 323.
But since that is a privileged port you’d need to be running Routinator as
root when otherwise there is no reason to do that. Also, note that the
default address is a localhost address for security reasons.

So, in order to run Routinator as an RTR server listening on port 3323 on
both 192.0.2.13 and 2001:0DB8::13 without detaching from the terminal, run:

.. code-block:: bash
routinator rtrd -a -l 192.0.2.13:3323 -l [2001:0DB8::13]:3323
By default, the repository will be updated and re-validated every hour as
per the recommendation in the RFC. You can change this via the
``--refresh`` option and specify the interval between re-validations in
seconds. That is, if you rather have Routinator validate every fifteen
minutes, the above command becomes:

.. code-block:: bash
routinator rtrd -a -l 192.0.2.13:3323 -l [2001:0DB8::13]:3323 --refresh=900
Routinator can take its configuration from a file. You can specify
such a configuration file via the ``-c`` option. If you don’t, Routinator
will check if there is a file ``$HOME/.routinator.conf`` and if it exists,
use it. If it doesn’t exist and there is no ``-c`` option, default values
are used.

The configuration file is a TOML file. Its entries are named similarly to
the command line options. Details about the available entries and there
meaning can be found in the manual page. In addition, a complete sample
configuration file showing all the default values can be found in the
repository at `etc/routinator.conf <https://github.com/NLnetLabs/routinator/blob/master/etc/routinator.conf>`_.
1 change: 1 addition & 0 deletions source/routinator/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Routinator is free, open source RPKI Relying Party software written in the Rust

installation
configuration
running

.. history
.. authors
Expand Down

0 comments on commit 33959c2

Please sign in to comment.