mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
update-location-database: Export database to ipset compatible format now.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org> Reviewed-by: Peter Müller <peter.mueller@ipfire.org> Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Peter Müller
parent
07106467b8
commit
edad13b46b
@@ -42,8 +42,8 @@ fi
|
||||
|
||||
# Get the latest location database from server.
|
||||
if /usr/bin/location update --cron=$UPDATE_INTERVAL; then
|
||||
# Call location and export all countries in xt_geoip compatible format.
|
||||
if /usr/bin/location export --directory=/usr/share/xt_geoip --family=ipv4 --format=xt_geoip; then
|
||||
# Call location and export all countries in an ipset compatible format.
|
||||
if /usr/bin/location export --directory=/var/lib/location/ipset --family=ipv4 --format=ipset; then
|
||||
|
||||
# Call initscript to reload the firewall.
|
||||
/etc/init.d/firewall reload
|
||||
|
||||
Reference in New Issue
Block a user