BGPView / Backend-API

[WIP] IP/ASN information aggregator and analysis platform
18 stars 8 forks source link

Install manual? #14

Open asafov opened 4 years ago

asafov commented 4 years ago

Hello, how to install this product? I execute composer install and php artisan key:generate. When i try to access page there are infinite redirect to API_DOCS_URL. Need assist.

asafov commented 4 years ago

scripts/update_bgp_ribs.sh has errors.

  1. bgpview require libbz2.so, but cannot find it. Solution:

    yum install bzip2-devel
    ln -s `find /usr/lib64/ -type f -name "libbz2.so.1*"` /usr/lib64/libbz2.so.1.0
  2. wget have ipv6 only option, need to delete -6 in string.

  3. This script call many heavy parsing, which kill my server

  4. cat for implode files into one will work much better, if files will builded on RAM-disk, not HDD

  5. go-bgpparse hardcoded (path, login, pass, etc)

  6. go-bgpparse require root access for set max_allowed_packet, but it's don't check actual value (Already setted)

asafov commented 4 years ago
$rand_ip = '[2a06:9f81:'.rand(1, 9999).':f001:e141:f435:1010:deed]';
$socket_options = array( 'socket' => array('bindto' => $rand_ip.':0') );
$socket_context = stream_context_create($socket_options);

Seems that this code is only for query by ipv6 subnet to avoid request limit?

asafov commented 4 years ago

With redis is more faster. Think that in example must be redis, not sync.