Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Private IPs in database files #74

Open
EugeniuZ opened this issue Apr 19, 2022 · 4 comments
Open

Private IPs in database files #74

EugeniuZ opened this issue Apr 19, 2022 · 4 comments

Comments

@EugeniuZ
Copy link

Hi,

Currently I see these entries in the database file:

; IP-ASN32-DAT file
; Original source: rib.20220413.1800.bz2
; Converted on  : Wed Apr 13 19:48:48 2022
; Prefixes-v4   : 963212
; Prefixes-v6   : 152468
...
192.168.1.0/24  141011
192.168.2.0/24  141011
192.168.3.0/24  141011
192.168.7.0/24  141011
...

Could you please clarify why are private IP ranges assigned an ASN?

@EugeniuZ
Copy link
Author

At least it should not map to public ASNs.

@hadiasghari
Copy link
Owner

Hi @EugeniuZ ,

This isn't normally the case. It seems like an error with the MRT/RIB/BGP data. A simple fix would be to filter out these private ranges from the file. Where did you download your RIB file from?

@EugeniuZ
Copy link
Author

Hi @hadiasghari ,

This is what I see in the log:

Finding most recent archive in /route-views4/bgpdata/2022.04/RIBS ...
Downloading ftp://archive.routeviews.org//route-views4/bgpdata/2022.04/RIBS/rib.20220414.0600.bz2

We're using the provided tool to download the database (pyasn_util_download.py --latestv46)

So is this the wrong place to report the issue?

@hadiasghari
Copy link
Owner

@EugeniuZ, I am not spending much time on this project at the moment, so I cannot unfortunately debug this issue at the moment. Basically, pyasn parses the RIB file information to produce its ipasn.dat file. The RIB file is a dump from a router's BGP table (in this case from route-views4 vantage). These private v4 addresses should not appear in the RIB files--and typically don't. Perhaps this is some temporary problem with this vantage point? I'd recommend downloading a couple of recent RIB files from other vantage points (you can find them via a search), and converting those too to see if the private IP range appear in them too. That should help narrow the problem cause.... I hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants