mirror of
https://github.com/evilsocket/opensnitch.git
synced 2026-06-08 20:27:34 +00:00
This commit adds a new bash script that automates the synchronization of IP-to-ASN and AS names databases for OpenSnitch. The script: 1. Downloads pre-processed ASN data from a GitHub repository 2. Creates backups of existing files before updates 3. Updates ipasn_db.dat.gz and asnames.json files 4. Restores backups if downloads fail 5. Can be run via cron to keep the databases updated The script is designed to be easily integrated into system automation tasks and includes error handling for common issues like missing dependencies (wget) or failed downloads.