-
-
Notifications
You must be signed in to change notification settings - Fork 70
/
routinator.1
1727 lines (1727 loc) · 61.8 KB
/
routinator.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
.\" Man page generated from reStructuredText.
.
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\$1 \\n[an-margin]
level \\n[rst2man-indent-level]
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
-
\\n[rst2man-indent0]
\\n[rst2man-indent1]
\\n[rst2man-indent2]
..
.de1 INDENT
.\" .rstReportMargin pre:
. RS \\$1
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
. nr rst2man-indent-level +1
.\" .rstReportMargin post:
..
.de UNINDENT
. RE
.\" indent \\n[an-margin]
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "ROUTINATOR" "1" "Jun 20, 2024" "0.14.1-dev" "Routinator"
.SH NAME
routinator \- RPKI relying party software
.SH SYNOPSIS
.sp
\fBroutinator\fP [\fBoptions\fP] \fI\%vrps\fP [\fBvrps\-options\fP] [\fB\-o \fP\fIoutput\-file\fP] [\fB\-f \fP\fIformat\fP]
.sp
\fBroutinator\fP [\fBoptions\fP] \fI\%validate\fP [\fBvalidate\-options\fP] [\fB\-a \fP\fIasn\fP] [\fB\-p \fP\fIprefix\fP]
.sp
\fBroutinator\fP [\fBoptions\fP] \fI\%server\fP [\fBserver\-options\fP]
.sp
\fBroutinator\fP [\fBoptions\fP] \fI\%update\fP [\fBupdate\-options\fP]
.sp
\fBroutinator\fP \fI\%man\fP [\fB\-o \fP\fIfile\fP]
.sp
\fBroutinator\fP \fB\-h\fP
.sp
\fBroutinator\fP \fB\-V\fP
.SH DESCRIPTION
.sp
Routinator collects and processes Resource Public Key Infrastructure (RPKI)
data. It validates the Route Origin Attestations contained in the data and
makes them available to your BGP routing workflow.
.sp
It can run in one\-shot mode outputting a list of validated ROA payloads in
various formats, as a server for the RPKI\-to\-Router (RTR) protocol that many
routers implement to access the data, or via HTTP.
.sp
These modes and additional operations can be chosen via commands. For the
available commands, see \fI\%COMMANDS\fP below.
.SH OPTIONS
.sp
The available options are:
.INDENT 0.0
.TP
.B \-c path, \-\-config=path
Provides the path to a file containing basic configuration. If this
option is not given, Routinator will try to use
\fB$HOME/.routinator.conf\fP if that exists. If that doesn\(aqt exist,
either, default values for the options as described here are used.
.sp
See \fI\%CONFIGURATION FILE\fP below for more information on the format and
contents of the configuration file.
.UNINDENT
.INDENT 0.0
.TP
.B \-r dir, \-\-repository\-dir=dir
Specifies the directory to keep the local repository in. This is
the place where Routinator stores the RPKI data it has collected
and thus is a copy of all the data referenced via the trust
anchors.
.sp
If omitted, defaults to \fB$HOME/.rpki\-cache/repository\fP\&.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-no\-rir\-tals
If present, Routinator will not use the bundled trust anchor locators
(TALs) of the five Regional Internet Registries (RIRs).
.sp
Trust anchor locators are the starting points for collecting and
validating RPKI data. Each of the five RIRs provides a TAL that adds
resources from their area. For normal production installations, these
are the only TALs that should be used.
.sp
Using this option as well as the \fI\%\-\-tal\fP and
\fI\%\-\-extra\-tals\-dir\fP options you can change which TALs
Routinator should use.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-tal=name
Use the bundled TAL with the given name in addition to any other TAL.
.sp
Each RIR TAL is available through this option as well as TALs for a
few select test environments. If you use this option with the name
\fIlist\fP, Routinator will print a list of all available bundled TALS and
exit.
.sp
The option can be given more than once.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-extra\-tals\-dir=dir
Specifies a directory containing additional trust anchor locators
(TALs) to use. Routinator will use all files in this directory with
an extension of \fI\&.tal\fP as TALs. These files need to be in the format
described by \fI\%RFC 8630\fP\&.
.sp
Note that Routinator will use all TALs provided. That means that if a
TAL in this directory is one of the bundled TALs, then these resources
will be validated twice.
.UNINDENT
.INDENT 0.0
.TP
.B \-x file, \-\-exceptions=file
Provides the path to a local exceptions file. The option can be used
multiple times to specify more than one file to use. Each file is a
JSON file as described in \fI\%RFC 8416\fP\&. It lists both route origins that
should be filtered out of the output as well as origins that should be
added.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-strict
If this option is present, the repository will be validated in strict
mode following the requirements laid out by the standard documents very
closely. With the current RPKI repository, using this option will lead
to a rather large amount of invalid route origins and should therefore
not be used in practice.
.sp
See \fI\%RELAXED DECODING\fP below for more information.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-stale=policy
This option defines how deal with stale objects. In RPKI, manifests and
CRLs can be stale if the time given in their \fInext\-update\fP field is in
the past, indicating that an update to the object was scheduled but
didn\(aqt happen. This can be because of an operational issue at the
issuer or an attacker trying to replay old objects.
.sp
There are three possible policies that define how Routinator should
treat stale objects.
.sp
A policy of \fIreject\fP instructs Routinator to consider all stale objects
invalid. This will result in all material published by the CA issuing
this manifest and CRL to be invalid including all material of any child
CA.
.sp
The \fIwarn\fP policy will allow Routinator to consider any stale object to
be valid. It will, however, print a warning in the log allowing an
operator to follow up on the issue.
.sp
Finally, the \fIaccept\fP policy will cause Routinator to quietly accept
any stale object as valid.
.sp
In Routinator 0.8.0 and newer, \fIreject\fP is the default policy if the
option is not provided. In version 0.7.0 the default for this option
was \fIwarn\fP\&. In all previous versions \fIwarn\fP was hard\-wired.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-unsafe\-vrps=policy
This option defines how to deal with \(dqunsafe VRPs.\(dq If the address
prefix of a VRP overlaps with any resources assigned to a CA that has
been rejected because if failed to validate completely, the VRP is said
to be unsafe since using it may lead to legitimate routes being flagged
as RPKI invalid.
.sp
There are three options how to deal with unsafe VRPs:
.sp
A policy of \fIreject\fP will filter out these VRPs. Warnings will be
logged to indicate which VRPs have been filtered
.sp
The \fIwarn\fP policy will log warnings for unsafe VRPs but will add them
to the valid VRPs.
.sp
Finally, the \fIaccept\fP policy will quietly add unsafe VRPs to the valid
VRPs. This is the default policy.
.sp
For more information on the process of validation implemented in
Routinator, see the section \fI\%VALIDATION\fP below.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-unknown\-objects=policy
Defines how to deal with unknown types of RPKI objects. Currently,
only certificates (.cer), CRLs (.crl), manifests (.mft), ROAs (.roa),
and Ghostbuster Records (.gbr) are allowed to appear in the RPKI
repository.
.sp
There are, once more, three policies for dealing with an object of any
other type:
.sp
The \fIreject\fP policy will reject the object as well as the entire CA.
Consequently, an unknown object appearing in a CA will mark all other
objects issued by the CA as invalid as well.
.sp
The policy of \fIwarn\fP will log a warning, ignore the object, and accept
all known objects issued by the CA.
.sp
The similar policy of \fIaccept\fP will quietly ignore the object and
accept all known objects issued by the CA.
.sp
The default policy if the option is missing is \fIwarn\fP\&.
.sp
Note that even if unknown objects are accepted, they must appear in
the manifest and the hash over their content must match the one given
in the manifest. If the hash does not match, the CA and all its objects
are still rejected.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-limit\-v4\-len=length, \-\-limit\-v6\-len=length
If present, defines the maximum length of IPv4 prefixes or IPv6
prefixes, respectively, that will be included in the VRP data set. All
VRPs for prefixes with a longer prefix length will be ignored. Note that
only the prefix length itself, not the max length is considered.
.sp
If either option is missing, VRPs for all prefixes of that particular
address family are included.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-allow\-dubious\-hosts
As a precaution, Routinator will reject rsync and HTTPS URIs from RPKI
data with dubious host names. In particular, it will reject the name
\fIlocalhost\fP, host names that consist of IP addresses, and a host name
that contains an explicit port.
.sp
This option allows to disable this filtering.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-fresh
Delete and re\-initialize the local data storage before starting. This
option should be used when Routinator fails after reporting corrupt
data storage.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-disable\-rsync
If this option is present, rsync is disabled and only RRDP will be
used.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-rsync\-command=command
Provides the command to run for rsync. This is only the command itself.
If you need to provide options to rsync, use the \fBrsync\-args\fP
configuration file setting instead.
.sp
If this option is not given, Routinator will simply run rsync and hope
that it is in the path.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-rsync\-timeout=seconds
Sets the number of seconds an rsync command is allowed to run before it
is terminated early. This protects against hanging rsync commands that
prevent Routinator from continuing. The default is 300 seconds which
should be long enough except for very slow networks. Set the option to
0 to disable the timeout.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-disable\-rrdp
If this option is present, RRDP is disabled and only rsync will be
used.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-rrdp\-fallback=policy
Defines the circumstance when access via rsync should be tried for a
CA that announces it can be updated via RRDP. In general, access via
RRDP is less resource intensive and more secure than rsync and will
therefore be preferred. This option specifies what to do when access
to an RRDP repository fails.
.sp
The policy \fBnever\fP means that rsync is never tried for a CA that
announces RRDP.
.sp
The policy \fBstale\fP means that rsync is tried if an update via RRDP
fails and there is no current local copy of the RRDP repository. A
local copy is considered current if it was last updated within a
time span chosen on a per\-repository basis between the
\fI\%\-\-refresh\fP time and \fI\%\-\-rrdp\-fallback\-time\fP\&.
.sp
The policy \fBnew\fP means that rsync is tried if an update via RRDP
fails and there is no local copy of the RRDP repository at all. In
other words, an update via RRDP has never succeeded for the repository.
Choosing this policy allows a repository operator some leeway when
first enabling RRDP support.
.sp
The default policy if this option is not given is \fBstale\fP\&.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-rrdp\-fallback\-time=seconds
Sets the maximum time in seconds since a last successful update of an
RRDP repository before Routinator falls back to using rsync. The
default is 3600 seconds. If the given value is smaller than twice the
refresh time, it is silently increased to that value.
.sp
The actual time is chosen at random between the refresh time and this
value in order to spread out load on the rsync server.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-rrdp\-max\-delta\-count=count
If the number of deltas necessary to update an RRDP repository is
larger than the value provided by this option, the snapshot is used
instead. If the option is missing, the default of 100 is used.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-rrdp\-max\-delta\-list\-len=len
If the number of deltas included in the notification file of an RRDP
repository is larger than the value provided, the delta list is
considered empty and the snapshot is used instead. If the option is
missing, the default of 500 is used.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-rrdp\-timeout=seconds
Sets the timeout in seconds for any RRDP\-related network operation,
i.e., connects, reads, and writes. If this option is omitted, the
default timeout of 300 seconds is used. Set the option to 0 to disable
the timeout.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-rrdp\-connect\-timeout=seconds
Sets the timeout in seconds for RRDP connect requests. If omitted, the
general timeout will be used.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-rrdp\-tcp\-keepalive=seconds
Sets the value of the TCP keepalive duration in seconds for RRDP
connections. The default if this option is omitted is 60 seconds. Set
the option to 0 to disable the use of TCP keepalives.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-rrdp\-local\-addr=addr
If present, sets the local address that the RRDP client should bind to
when doing outgoing requests.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-rrdp\-root\-cert=path
This option provides a path to a file that contains a certificate in
PEM encoding that should be used as a trusted certificate for HTTPS
server authentication. The option can be given more than once.
.sp
Providing this option does \fInot\fP disable the set of regular HTTPS
authentication trust certificates.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-rrdp\-proxy=uri
This option provides the URI of a proxy to use for all HTTP connections
made by the RRDP client. It can be either an HTTP or a SOCKS URI. The
option can be given multiple times in which case proxies are tried in
the given order.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-rrdp\-keep\-responses=path
If this option is enabled, the bodies of all HTTPS responses received
from RRDP servers will be stored under \fIpath\fP\&. The sub\-path will be
constructed using the components of the requested URI. For the
responses to the notification files, the timestamp is appended to the
path to make it possible to distinguish the series of requests made
over time.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-max\-object\-size=BYTES
Limits the size of individual objects received via either rsync or RRDP
to the given number of bytes. The default value if this option is not
present is 20,000,000 (i.e., 20 MBytes). Use a value of 0 to disable
the limit.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-max\-ca\-depth=count
The maximum number of CAs a given CA may be away from a trust anchor
certificate before it is rejected. The default value is 32.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-enable\-bgpsec
If this option is present, BGPsec router keys will be processed
during validation and included in the produced data set.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-dirty
If this option is present, unused files and directories will not be
deleted from the repository directory after each validation run.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-validation\-threads=count
Sets the number of threads to distribute work to for validation. Note
that the current processing model validates trust anchors all in one
go, so you are likely to see less than that number of threads used
throughout the validation run.
.UNINDENT
.INDENT 0.0
.TP
.B \-v, \-\-verbose
Print more information. If given twice, even more information is
printed.
.sp
More specifically, a single \fI\%\-v\fP increases the log level from
the default of \fIwarn\fP to \fIinfo\fP, specifying it more than once increases
it to \fIdebug\fP\&.
.sp
See \fI\%LOGGING\fP below for more information on what information is logged
at the different levels.
.UNINDENT
.INDENT 0.0
.TP
.B \-q, \-\-quiet
Print less information. Given twice, print nothing at all.
.sp
A single \fI\%\-q\fP will drop the log level to \fIerror\fP\&. Repeating
\fI\%\-q\fP more than once turns logging off completely.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-syslog
Redirect logging output to syslog.
.sp
This option is implied if a command is used that causes Routinator to
run in daemon mode.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-syslog\-facility=facility
If logging to syslog is used, this option can be used to specify the
syslog facility to use. The default is \fIdaemon\fP\&.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-logfile=path
Redirect logging output to the given file.
.UNINDENT
.INDENT 0.0
.TP
.B \-h, \-\-help
Print some help information.
.UNINDENT
.INDENT 0.0
.TP
.B \-V, \-\-version
Print version information.
.UNINDENT
.SH COMMANDS
.sp
Routinator provides a number of operations around the local RPKI repository.
These can be requested by providing different commands on the command line.
.INDENT 0.0
.TP
.B vrps
This command requests that Routinator update the local repository and
then validate the Route Origin Attestations in the repository and output
the valid route origins, which are also known as Validated ROA Payloads
or VRPs, as a list.
.INDENT 7.0
.TP
.B \-o file, \-\-output=file
Specifies the output file to write the list to. If this option is
missing or file is \fB\-\fP the list is printed to standard output.
.UNINDENT
.INDENT 7.0
.TP
.B \-f format, \-\-format=format
The output format to use. Routinator currently supports the
following formats:
.INDENT 7.0
.TP
.B csv
The list is formatted as lines of comma\-separated values of
the autonomous system number, the prefix in slash notation,
the maximum prefix length, and an abbreviation for the
trust anchor the entry is derived from. The latter is the
name of the TAL file without the extension \fI\&.tal\fP\&. This can
be overwritten with the \fItal\-labels\fP config file option.
.sp
This is the default format used if the \fI\%\-f\fP option
is missing.
.TP
.B csvcompat
The same as \fIcsv\fP except that all fields are embedded in
double quotes and the autonomous system number is given
without the prefix \fBAS\fP\&. This format is pretty much
identical to the CSV produced by the RIPE NCC Validator.
.TP
.B csvext
An extended version of csv each line contains these
comma\-separated values: the rsync URI of the ROA the line
is taken from (or \(dqN/A\(dq if it isn\(aqt from a ROA), the
autonomous system number, the prefix in slash notation, the
maximum prefix length, the not\-before date and not\-after
date of the validity of the ROA.
.sp
This format was used in the RIPE NCC RPKI Validator version
1. That version produces one file per trust anchor. This is
not currently supported by Routinator \-\- all entries will
be in one single output file.
.TP
.B json
The list is placed into a JSON object with up to four
members: \fIroas\fP contains the validated route origin
authorizations, \fIrouterKeys\fP contains the validated
BGPsec router keys, \fIaspas\fP contains the validated
ASPA payload, and \fImetadata\fP contains some information
about the validation run itself. Of the first three, only
those members are present that have not been disabled or
excluded.
.sp
The \fIroas\fP member contains an array of objects with four
elements each: The autonomous system number of the network
authorized to originate a prefix in \fIasn\fP, the prefix in
slash notation in \fIprefix\fP, the maximum prefix length of
the announced route in \fImaxLength\fP, and the trust anchor
from which the authorization was derived in \fIta\fP\&.
.sp
The \fIrouterKeys\fP member contains an array of objects with
four elements each: The autonomous system using the router
key is given in \fIasn\fP, the key identifier as a string of
hexadecimal digits in \fISKI\fP, the actual public key as a
Base 64 encoded string in \fIrouterPublicKey\fP, and the trust
anchor from which the authorization was derived in \fIta\fP\&.
.sp
The \fIaspa\fP member contains an array of objects with four
members each: The \fIcustomer\fP member contains the customer
ASN, \fIafi\fP the address family as either \(dqipv4\(dq or \(dqipv6\(dq,
\fIproviders\fP contains the provider ASN set as an array, and
the trust anchor from which the authorization was derived
in \fIta\fP\&.
.sp
The output object also includes a member named \fImetadata\fP
which provides additional information. Currently, this is a
member \fIgenerated\fP which provides the time the list was
generated as a Unix timestamp, and a member \fIgeneratedTime\fP
which provides the same time but in the standard ISO date
format.
.sp
If only route origins are included, this format is identical
to that produced by the RIPE NCC
RPKI Validator except for different naming of the trust
anchor.
Routinator uses the name of the TAL file without the
extension \fI\&.tal\fP whereas the RIPE NCC Validator has a
dedicated name for each.
.TP
.B jsonext
The list is placed into a JSON object with up to four
members: \fIroas\fP contains the validated route origin
authorizations, \fIrouterKeys\fP contains the validated
BGPsec router keys, \fIaspas\fP contains the validated
ASPA payload, and \fImetadata\fP contains some information
about the validation run itself. Of the first three, only
those members are present that have not been disabled or
excluded.
.sp
The \fIroas\fP member contains an array of objects with four
elements each: The autonomous system number of the network
authorized to originate a prefix in \fIasn\fP, the prefix in
slash notation in \fIprefix\fP, the maximum prefix length of
the announced route in \fImaxLength\fP, and extended
information about the source of the authorization in
\fIsource\fP\&.
.sp
The \fIrouterKeys\fP member contains an array of objects with
four elements each: The autonomous system using the router
key is given in \fIasn\fP, the key identifier as a string of
hexadecimal digits in \fISKI\fP, the actual public key as a
Base 64 encoded string in \fIrouterPublicKey\fP, and extended
information about the source of the key is contained in
\fIsource\fP\&.
.sp
The \fIaspa\fP member contains an array of objects with four
members each: The \fIcustomer\fP member contains the customer
ASN, \fIafi\fP the address family as either \(dqipv4\(dq or \(dqipv6\(dq,
\fIproviders\fP contains the provider ASN set as an array, and
information about the source of the data can be found in
\fIsource\fP\&.
.sp
This source information the same for route origins and
router keys. It consists of an array. Each item in that
array is an object providing details of a source.
The object will have a \fItype\fP of \fIroa\fP if it was derived
from a valid ROA object, \fIcer\fP if it was derived from
a published router certificate, or \fIexception\fP if it was an
assertion in a local exception file.
.sp
For RPKI objects, \fItal\fP provides the name of the trust
anchor locator the object was published under, \fIuri\fP
provides the rsync URI of the ROA or router certificate,
\fIvalidity\fP provides the validity of the ROA itself,
\fIchainValidity\fP the validity considering the validity of
the certificates along the validation chain, and
\fIstale\fP the time when any of the publication points along
the validation chain becomes stale.
.sp
For assertions from local exceptions, \fIpath\fP will provide
the path of the local exceptions file and, optionally,
\fIcomment\fP will provide the comment if given for the
assertion.
.sp
The output object also includes a member named \fImetadata\fP
which provides additional information. Currently, this is a
member \fIgenerated\fP which provides the time the list was
generated as a Unix timestamp, and a member \fIgeneratedTime\fP
which provides the same time but in the standard ISO date
format.
.sp
Please note that because of this additional information,
output in \fBjsonext\fP format will be quite large.
.TP
.B slurm
The list is formatted as locally added assertions of a
local exceptions file defined by RFC 8416 (also known as
SLURM). The produced file will have empty validation
output filters.
.TP
.B openbgpd
Choosing this format causes Routinator to produce a
\fIroa\-set\fP configuration item for the OpenBGPD
configuration.
.TP
.B bird1
Choosing this format causes Routinator to produce a \fIroa
table\fP configuration item for the BIRD1 configuration.
.TP
.B bird2
Choosing this format causes Routinator to produce a \fIroa
table\fP configuration item for the BIRD2 configuration.
.TP
.B rpsl
This format produces a list of RPSL objects with the
authorization in the fields \fIroute\fP, \fIorigin\fP, and
\fIsource\fP\&. In addition, the fields \fIdescr\fP, \fImnt\-by\fP,
\fIcreated\fP, and \fIlast\-modified\fP, are present with more or
less meaningful values.
.TP
.B summary
This format produces a summary of the content of the RPKI
repository. For each trust anchor, it will print the number
of verified ROAs and VRPs. Note that this format does not
take filters into account. It will always provide numbers
for the complete repository.
.TP
.B none
This format produces no output whatsoever.
.UNINDENT
.UNINDENT
.INDENT 7.0
.TP
.B \-n, \-\-noupdate
The repository will not be updated before producing the list.
.UNINDENT
.INDENT 7.0
.TP
.B \-\-complete
If any of the rsync commands needed to update the repository
failed, complete the operation but provide exit status 2. If this
option is not given, the operation will complete with exit status
0 in this case.
.UNINDENT
.INDENT 7.0
.TP
.B \-a asn, \-\-select\-asn=asn
Only output VRPs for the given ASN. The option can be given
multiple times, in which case VRPs for all provided ASNs are
provided. ASNs can be given with or without the prefix \fIAS\fP\&.
.UNINDENT
.INDENT 7.0
.TP
.B \-p prefix, \-\-select\-prefix=prefix
Only output VRPs with an address prefix that covers the given
prefix, i.e., whose prefix is equal to or less specific than the
given prefix. This will include VRPs regardless of their ASN and
max length. In other words, the output will include all VRPs that
need to be considered when deciding whether an announcement for
the prefix is RPKI valid or invalid.
.sp
The option can be given multiple times, in which case VRPs for all
prefixes are provided. It can also be combined with one or more
ASN selections. Then all matching VRPs are included. That is,
selectors combine as \(dqor\(dq not \(dqand\(dq.
.UNINDENT
.INDENT 7.0
.TP
.B \-m, \-\-more\-specifics
Include VRPs with prefixes that are more specifics of those given
by the \fI\%\-p\fP option. Without this option, only VRPs with
prefixes equal or less specific are included.
.sp
Note that VRPs with more specific prefixes have no influence on
whether a route is RPKI valid or invalid and therefore these VRPs
are of an informational nature only.
.UNINDENT
.INDENT 7.0
.TP
.B \-\-no\-route\-origins, \-\-no\-router\-keys, \-\-no\-aspas
These three options can be used to exclude the various payload
types from being included in the output.
.UNINDENT
.UNINDENT
.INDENT 0.0
.TP
.B validate
This command can be used to perform RPKI route origin validation for
one or more route announcements. Routinator will determine whether the
provided announcements are RPKI valid, invalid, or not found.
.sp
A single route announcement can be given directly on the command line:
.INDENT 7.0
.TP
.B \-a asn, \-\-asn=asn
The AS Number of the autonomous system that originated the
route announcement. ASNs can be given with or without the
prefix \fIAS\fP\&.
.UNINDENT
.INDENT 7.0
.TP
.B \-p prefix, \-\-prefix=prefix
The address prefix the route announcement is for.
.UNINDENT
.INDENT 7.0
.TP
.B \-j, \-\-json
A detailed analysis on the reasoning behind the validation is
printed in JSON format including lists of the VRPs that caused
the particular result. If this option is omitted, Routinator
will only print the determined state.
.UNINDENT
.sp
Alternatively, a list of route announcements can be read from a file
or standard input.
.INDENT 7.0
.TP
.B \-i file, \-\-input=file
If present, input is read from the given file. If the file is
given is a single dash, input is read from standard output.
.UNINDENT
.INDENT 7.0
.TP
.B \-j, \-\-json
If this option is provided, the input is assumed to be JSON
format. It should consist of a single object with one member
\fIroutes\fP which contains an array of objects. Each object
describes one route announcement through its \fIprefix\fP and \fIasn\fP
members which contain a prefix and originating AS Number as
strings, respectively.
.sp
If the option is not provided, the input is assumed to consist
of simple plain text with one route announcement per line,
provided as a prefix followed by an ASCII\-art arrow =>
surrounded by white space and followed by the AS Number of
originating autonomous system.
.UNINDENT
.sp
The following additional options are available independently of the
input method.
.INDENT 7.0
.TP
.B \-o file, \-\-output=file
Output is written to the provided file. If the option is
omitted or \fIfile\fP is given as a single dash, output is written
to standard output.
.UNINDENT
.INDENT 7.0
.TP
.B \-n, \-\-noupdate
The repository will not be updated before performing
validation.
.UNINDENT
.INDENT 7.0
.TP
.B \-\-complete
If any of the rsync commands needed to update the repository
failed, complete the operation but provide exit status 2. If
this option is not given, the operation will complete with exit
status 0 in this case.
.UNINDENT
.UNINDENT
.INDENT 0.0
.TP
.B server
This command causes Routinator to act as a server for the
RPKI\-to\-Router (RTR) and HTTP protocols. In this mode, Routinator will
read all the Trust Anchor Locators and will stay attached to the
terminal unless the \fI\%\-d\fP option is given.
.sp
The server will periodically update the local repository, every ten
minutes by default, notify any clients of changes, and let them fetch
validated data. It will not, however, reread the trust anchor
locators. Thus, if you update them, you will have to restart
Routinator.
.sp
You can provide a number of addresses and ports to listen on for RTR
and HTTP through command line options or their configuration file
equivalent. Currently, Routinator will only start listening on these
ports after an initial validation run has finished.
.sp
It will not listen on any sockets unless explicitly specified. It will
still run and periodically update the repository. This might be useful
for use with \fI\%vrps\fP mode with the \fI\%\-n\fP option.
.INDENT 7.0
.TP
.B \-d, \-\-detach
If present, Routinator will detach from the terminal after a
successful start.
.UNINDENT
.INDENT 7.0
.TP
.B \-\-rtr=addr:port
Specifies a local address and port to listen on for incoming
RTR connections.
.sp
Routinator supports both protocol version 0 defined in
\fI\%RFC 6810\fP and version 1 defined in \fI\%RFC 8210\fP\&. However, it
does not support router keys introduced in version 1. IPv6
addresses must be enclosed in square brackets. You can provide
the option multiple times to let Routinator listen on multiple
address\-port pairs.
.UNINDENT
.INDENT 7.0
.TP
.B \-\-rtr\-tls=addr:port
Specifies a local address and port to listen for incoming
TLS\-encrypted RTR connections.
.sp
The private key and server certificate given via the
\fI\%\-\-rtr\-tls\-key\fP and \fI\%\-\-rtr\-tls\-cert\fP or their
equivalent config file options will be used for connections.
.sp
The option can be given multiple times, but the same key and
certificate will be used for all connections.
.UNINDENT
.INDENT 7.0
.TP
.B \-\-http=addr:port
Specifies the address and port to listen on for incoming HTTP
connections. See \fI\%HTTP SERVICE\fP below for more information on
the HTTP service provided by Routinator.
.UNINDENT
.INDENT 7.0
.TP
.B \-\-http\-tls=addr:port
Specifies a local address and port to listen of for incoming
TLS\-encrypted HTTP connections.
.sp
The private key and server certificate given via the
\fI\%\-\-http\-tls\-key\fP and \fI\%\-\-http\-tls\-cert\fP or their
equivalent config file options will be used for connections.
.sp
The option can be given multiple times, but the same key and
certificate will be used for all connections.
.UNINDENT
.INDENT 7.0
.TP
.B \-\-listen\-systemd
The RTR listening socket will be acquired from systemd via
socket activation. Use this option together with systemd\(aqs
socket units to allow a Routinator running as a regular user to
bind to the default RTR port 323.
.sp
Currently, all TCP listener sockets handed over by systemd will
be used for the RTR protocol.
.UNINDENT
.INDENT 7.0
.TP
.B \-\-rtr\-tcp\-keepalive=seconds
The number of seconds to wait before sending a TCP keepalive on
an established RTR connection. By default, TCP keepalive is
enabled on all RTR connections with an idle time of 60 seconds.
Set this option to 0 to disable keepalives.
.sp
On some systems, notably OpenBSD, this option only enables TCP
keepalives if set to any value other than 0. You will have to
use the system\(aqs own mechanisms to change the idle times.
.UNINDENT
.INDENT 7.0
.TP
.B \-\-rtr\-client\-metrics
If provided, the server metrics will include separate metrics
for every RTR client. Clients are identified by their RTR
source IP address. This is disabled by default to avoid
accidentally leaking information about the local network
topology.
.UNINDENT
.INDENT 7.0
.TP
.B \-\-rtr\-tls\-key
Specifies the path to a file containing the private key to be
used for RTR\-over\-TLS connections. The file has to contain
exactly one private key encoded in PEM format.
.UNINDENT
.INDENT 7.0
.TP
.B \-\-rtr\-tls\-cert
Specifies the path to a file containing the server certificates
to be used for RTR\-over\-TLS connections. The file has to
contain one or more certificates encoded in PEM format.
.UNINDENT
.INDENT 7.0
.TP
.B \-\-http\-tls\-key
Specifies the path to a file containing the private key to be
used for HTTP\-over\-TLS connections. The file has to contain
exactly one private key encoded in PEM format.
.UNINDENT
.INDENT 7.0
.TP
.B \-\-http\-tls\-cert
Specifies the path to a file containing the server certificates
to be used for HTTP\-over\-TLS connections. The file has to
contain one or more certificates encoded in PEM format.
.UNINDENT
.INDENT 7.0
.TP
.B \-\-refresh=seconds
The amount of seconds the server should wait after having
finished updating and validating the local repository before
starting to update again. The next update will be earlier if
objects in the repository expire earlier. The default value is
600 seconds.
.UNINDENT
.INDENT 7.0
.TP
.B \-\-retry=seconds
The amount of seconds to suggest to an RTR client to wait
before trying to request data again if that failed. The default
value is 600 seconds, as recommended in \fI\%RFC 8210\fP\&.
.UNINDENT
.INDENT 7.0
.TP
.B \-\-expire=seconds
The amount of seconds to an RTR client can keep using data if
it cannot refresh it. After that time, the client should
discard the data. Note that this value was introduced in
version 1 of the RTR protocol and is thus not relevant for
clients that only implement version 0. The default value, as
recommended in \fI\%RFC 8210\fP, is 7200 seconds.
.UNINDENT
.INDENT 7.0
.TP
.B \-\-history=count
In RTR, a client can request to only receive the changes that
happened since the last version of the data it had seen. This
option sets how many change sets the server will at most keep.
If a client requests changes from an older version, it will get
the current full set.
.sp
Note that routers typically stay connected with their RTR
server and therefore really only ever need one single change
set. Additionally, if RTR server or router are restarted, they
will have a new session with new change sets and need to
exchange a full data set, too. Thus, increasing the value
probably only ever increases memory consumption.
.sp
The default value is 10.
.UNINDENT
.INDENT 7.0
.TP
.B \-\-pid\-file=path
States a file which will be used in daemon mode to store the
processes PID. While the process is running, it will keep the
file locked.
.UNINDENT
.INDENT 7.0
.TP
.B \-\-working\-dir=path
The working directory for the daemon process. In daemon mode,
Routinator will change to this directory while detaching from
the terminal.
.UNINDENT
.INDENT 7.0
.TP
.B \-\-chroot=path
The root directory for the daemon process. If this option is