Last active
December 6, 2022 23:00
-
-
Save kenjij/9016204 to your computer and use it in GitHub Desktop.
Create GeoIP database for iptables in Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install necessary packages | |
sudo apt-get unzip | |
sudo apt-get install libtext-csv-xs-perl | |
# Create database location | |
sudo mkdir /usr/share/xt_geoip | |
# Download the database file and convert | |
/usr/lib/xtables-addons/xt_geoip_dl | |
sudo /usr/lib/xtables-addons/xt_geoip_build -D /usr/share/xt_geoip *.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment