rtrclient(1)
β¨ rtrclient β the rtr rpki client β¨
okay bestie, welcome to rtrclient, section 1 of the General Commands Manual π she's a little command-line cutie that talks to RPKI/RTR cache servers, and honestly? she ate.
πΈ NAME πΈ
rtrclient β the rtr rpki client π
β SYNOPSIS β
rtrclient [-kph] SOCKETS...
π¦ SOCKETS π¦
tcp [-kpb bindaddr] HOST PORT
ssh [-kpb bindaddr] HOST PORT USERNAME (PRIVATE_KEY|PASSWORD) [HOST_KEY]
like, those are your two transport flavours, pick your fighter π«Ά
π DESCRIPTION π
rtrclient connects to an RPKI/RTR cache server and prints out prefix updates, origin AS updates, and router key updates. she can ride in on plain tcp or ssh transport to get to that RPKI/RTR cache server, and the way she counts β the amount is not limited and you can mix different transport types arbitrarily. no cap, go wild. π₯
For tcp you must specify the HOST and PORT. non-negotiable bestie.
For ssh you must specify the HOST, PORT, USERNAME, and either a file containing the PRIVATE_KEY or a PASSWORD. By default rtrclient will try to guess which of the two you entered (she's perceptive like that β¨). If you want to explicitly specify which one it is, peek at -w and -s. You may also specify a file containing a list of *HOST_KEY*s, in the well known SSH_KNOWN_HOSTS file format. See sshd(8) for the deets.
β¨ OPTIONS β¨
-bbindaddr β set an explicit bind address π-hβ print the help message π-kβ print info about router key updates π-pβ print info about prefix and origin AS updates π-sβ print info about connection status updates π‘-eβ export ROAs after completing synchronisation and then exit πͺ-tβ select the template for pfx export. May be a built in template (see-l) or a file path to a custom template (see TEMPLATES) π-lβ print available templates and exit. Prints the specified template when used together with-tπ-oβ output file for export π-wβ force ssh authentication information to be interpreted as a password π-sβ force ssh authentication information to be interpreted as a private key ποΈ
not me pointing out that -s shows up twice in this list β once for connection status updates and once for private keys β but that is literally what the page says, so there it is, bestie. π
π§ TEMPLATES π§
Templates are how you export ROA information in a custom format, and they're written in the mustache(https://mustache.github.io/) templating language. it's giving artisanal, handcrafted, bespoke β¨
A template should contain a section called roas, which may contain the variables prefix, length, maxlen and origin. The content of this section is expanded for every entry in the ROA table. The special variable last is true for the last entry of the prefix table. See the json template for a usage example π
π EXAMPLES π
Print prefix and origin AS updates from a tcp based server:
rtrclient tcp -k rpki.example.com 323
Print prefix and router key updates from a ssh based server:
rtrclient ssh -k -p rpki.example.com 22 rtr-ssh ~/.ssh/id_rsa ~/.ssh/known_hosts
Use multiple rtr servers, and print prefix updates for some:
rtrclient tcp -p rpki.example.com 323 tcp rpki2.example.com 323 ssh -p rpki.example.com 22 rtr-ssh ~/.ssh/id_rsa
and that's the whole page, bestie π«Ά it's rtrclient from the General Commands Manual, section 1, and yeah that's literally all the footer had to say for itself. slay, go read a manual, ily πππ¦
π¦ where this page comes from
- alpine 3.24: rtrlib-doc 0.8.0-r6 Β· MIT
- debian bookworm: rtr-tools 0.8.0-1+b1 Β· MIT
- debian trixie: rtr-tools 0.8.0-1.1+b1 Β· MIT
- fedora 44: rtr-tools 0.8.0-2.fc44 Β· MIT AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause
- nixos 26.05: rtrlib 0.8.0
- nixpkgs unstable: rtrlib 0.8.0
- opensuse-leap 16.0: rtr-tools 0.8.0-160000.2.2 Β· MIT
- opensuse-leap 16.0: rtr-tools 0.8.0-160000.2.2 Β· MIT
- opensuse-leap 16.0: rtr-tools 0.8.0-160000.2.2 Β· MIT
- opensuse-leap 16.0: rtr-tools 0.8.0-160000.2.2 Β· MIT
- ubuntu jammy: rtr-tools 0.8.0-1 Β· MIT
- ubuntu noble: rtr-tools 0.8.0-1.1build1 Β· MIT
- ubuntu questing: rtr-tools 0.8.0-1.1build1
- ubuntu resolute: rtr-tools 0.8.0-7 Β· MIT
- ubuntu stonking: rtr-tools 0.8.0-7 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms