Skip to content

Releases: bgpkit/monocle

v0.8.0

04 Mar 19:11
c83b0af
Compare
Choose a tag to compare

New subcommand

  • added monocle pfx2as subcommand to allow bulk prefix-to-asn mapping using BGPKIT dataset
    • it takes a list of prefixes or prefix files (one prefix per line)

Example:

monocle pfx2as 1.1.1.0/24 8.8.8.0/24 --json
[
  {
    "origin": 13335,
    "prefix": "1.1.1.0/24"
  },
  {
    "origin": 15169,
    "prefix": "8.8.8.0/24"
  }
]

Maintenance

  • update dependencies
    • note that we upgraded to bgpkit-parser v0.11 and community values are now without prefixes such as lg: ecv6

v0.7.2

08 Jan 20:26
cbf5ed1
Compare
Choose a tag to compare

Improvements

  • support searching data from RIB dumps by specifying --dump-type argument
    • --dump-type updates: search updates files only
    • --dump-type rib: search RIB files only
    • --dump-type rib-updates: search RIB dump and updates
  • improved internal handling of filters and time string parsing
  • improved documentation

v0.7.1

27 Dec 19:51
c4f3a30
Compare
Choose a tag to compare

Maintenance

  • add back Cargo.lock file for reproducible builds

v0.7.0

27 Dec 17:20
249dec4
Compare
Choose a tag to compare

New Features

monocle ip command

Add a new monocle ip command to retrieve information for the current IP of the machine or any specified IP address,
including location, network (ASN, network name) and the covering IP prefix of the given IP address.

The command triggers an API call to BGPKIT API,
and it retrieves the information based on the incoming requester IP address with additional BGP information for the
enclosing IP prefixes.

➜  ~ monocle ip
+----------+--------------------------+
| ip       | 104.48.0.0               |
+----------+--------------------------+
| location | US                       |
+----------+---------+----------------+
| network  | asn     | 7018           |
|          +---------+----------------+
|          | country | US             |
|          +---------+----------------+
|          | name    | AT&T US - 7018 |
|          +---------+----------------+
|          | prefix  | 104.48.0.0/12  |
|          +---------+----------------+
|          | rpki    | valid          |
+----------+---------+----------------+

➜  ~ monocle ip 1.1.1.1
+----------+----------------------+
| ip       | 1.1.1.1              |
+----------+----------------------+
| location | US                   |
+----------+---------+------------+
| network  | asn     | 13335      |
|          +---------+------------+
|          | country | US         |
|          +---------+------------+
|          | name    | Cloudflare |
|          +---------+------------+
|          | prefix  | 1.1.1.0/24 |
|          +---------+------------+
|          | rpki    | valid      |
+----------+---------+------------+

➜  ~ monocle ip 1.1.1.1 --json
{
  "ip": "1.1.1.1",
  "location": "US",
  "network": {
    "asn": 13335,
    "country": "US",
    "name": "Cloudflare",
    "prefix": "1.1.1.0/24",
    "rpki": "valid"
  }
}

MRT export for monocle parse command

The monocle parse command now supports
exporting filtered BGP messages into MRT files by supplying an MRT file path with --mrt-path argument.

Improved time string parsing

The parsing of time strings in monocle time and monocle search now utilizes dateparser for natural
date strings like May 6 at 9:24 PM or 2019-11-29 08:08-08.
It now also allows specifying a duration like 1h or "2 hours" to replace --start-ts or --end-ts.

Other improvements

  • Updated documentation for various commands
  • Cleaned up dependencies in the Cargo.toml file

v0.6.2

28 Oct 15:49
1ea2925
Compare
Choose a tag to compare

Dependency updates

  • bgpkit-broker to v0.7.0 -> v0.7.5
  • bgpkit-parser to v0.10.9 -> v0.10.11

bgpkit-parser version v0.10.11 fixes the improper handling of AS23456 (AS_TRANS). If you previously see
AS23456 incorrectly showing on the path, it should no-longer showing up after this patchshould no-longer show up after
this patch.

Fixes

  • fixed a bug where psv format output does not actually print out content.

v0.6.1

06 Aug 05:36
e5165f0
Compare
Choose a tag to compare

This is a maintenance release that updates the following dependencies.

  • bgpkit-broker to v0.7.0 -> v0.7.1
  • bgpkit-parser to v0.10.9 -> v0.10.10
  • oneio to v0.16.7 -> v0.17.0

With the updated dependencies, monocle now supports using ONEIO_ACCEPT_INVALID_CERTS=true env variable
to run search within a network that uses self-signed certificates.

v0.6.0

28 Jun 20:09
6a31419
Compare
Choose a tag to compare

Highlights

  • monocle time now supports querying multiple time strings in a single query
  • monocle search with --sqlite-path now adds found messages to the progress bar during search
  • monocle search now shows the collector IDs in the results, included in the plaintext, json output as well as the
    sqlite database
  • monocle search now supports exporting to MRT files using --mrt-path parameter

v0.5.5

29 Mar 17:48
dc0f424
Compare
Choose a tag to compare

Highlights

  • update bgpkit-parser to v0.10.5 and oneio to v0.16.7
    • not depends on lz and xz features anymore
    • this change allows monocle to work on fresh systems with no xz library installed (e.g. more recent macOS)

v0.5.4

24 Feb 00:00
a0bbb70
Compare
Choose a tag to compare

Highlights

  • update bgpkit-parser to v0.10.1, which includes a non-trivial performance boost for processing gzip compressed MRT files.
  • added a new --simple option to monocle time command to allow simple time conversion, suitable for use in scripts.

v0.5.3

03 Feb 18:39
b516b2d
Compare
Choose a tag to compare

Highlights

  • remove openssl dependency, switching to rustls as TLS backend
  • support installation via cargo-binstall