Open engee974 opened 5 years ago
@engee974 how do we compute the local AS? We take our public IP address and match it for AS?
If possible to set a option with the local ASN as it's done for local networks
for example for AS65501 :
--local-asn=65501
I suppose It could be possible to have several local AS.
The best way to implement this enhancement is to expand any of the ASes specified in --local-asn
with all it's networks to basically update the list --local-networks
.
However, performing such expansions isn't possible with the GeoIP libmaxminddb library we are using (https://github.com/maxmind/libmaxminddb/blob/master/doc/libmaxminddb.md) as it doesn't allow to query for an ASN. That is, given an ASN, it is not possible to retrieve the whole list of its networks. The only queries we can do are those on IP addresses.
We could perform the lookup on any of the IP addresses we see to decide if it is local or remote but this will break the 'local networks' page as there will be local hosts not showing up there.
For these reasons we cannot accomodate the implementation of this enhancement. If you find a quick way to use libmaxminndb to retrieve the list of networks belonging to an AS, feel free to comment and we will reconsider opening this request.
Could add a way to indicate our own ASN as it's done for networks ? Then add an option to hide/show the local AS in the Autonomous Systems view. Not urgent
Thanks