Configuration requirements to enable ASN blocking in Pangolin
Try free on Pangolin Cloud
Fastest way to get started with Pangolin using the hosted control plane. No credit card required.
To enable ASN blocking in Pangolin Community you must download and place the Maxmind ASN database into the config/ directory and update the config file. This can be done for free.
Remember to keep the ASN database updated regularly, as ASN assignments and network mappings can change over time. You can just repeat the download and extraction steps periodically to ensure your database is current.
It is possible to automate this process with a Docker container from Maxmind themself.
Have a look at this Community guide on how to implement this!
You can use the installer to download and place the database for you, just grab the latest installer:
Download and extract the GeoLite2 ASN database using the following commands:
# Download the GeoLite2 ASN databasecurl -L -o GeoLite2-ASN.tar.gz https://github.com/GitSquared/node-geolite2-redist/raw/refs/heads/master/redist/GeoLite2-ASN.tar.gz# Extract the databasetar -xzf GeoLite2-ASN.tar.gz# Move the .mmdb file to the config directorymv GeoLite2-ASN_*/GeoLite2-ASN.mmdb config/# Clean up the downloaded filesrm -rf GeoLite2-ASN.tar.gz GeoLite2-ASN_*
2
Update the Pangolin config file
Update your Pangolin configuration to point to the new ASN database file. Edit your config/config.yml file to include the following entry: