Skip to content

Commit

Permalink
Create geo-update.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
HamedAp authored Jul 8, 2023
1 parent 7d3e4d3 commit 42bfa60
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions geo-update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
MON=$(date +"%m")
YR=$(date +"%Y")
wget https://download.db-ip.com/free/dbip-country-lite-${YR}-${MON}.csv.gz -O /usr/share/xt_geoip/dbip-country-lite.csv.gz
gunzip /usr/share/xt_geoip/dbip-country-lite.csv.gz
/usr/lib/xtables-addons/xt_geoip_build -D /usr/share/xt_geoip/ -S /usr/share/xt_geoip/
rm /usr/share/xt_geoip/dbip-country-lite.csv

0 comments on commit 42bfa60

Please sign in to comment.