mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-14 13:02:58 +02:00
Core90: Add GeoIP to update.
This commit is contained in:
@@ -17,10 +17,12 @@ etc/sysconfig/modules
|
||||
etc/sysconfig/rc.local
|
||||
etc/udev/rules.d/30-persistent-network.rules
|
||||
srv/web/ipfire/html/proxy.pac
|
||||
var/ipfire/time
|
||||
var/ipfire/firewall/geoipblock
|
||||
var/ipfire/fwhosts/custmgeoipgrp
|
||||
var/ipfire/ovpn/ccd.conf
|
||||
var/ipfire/ovpn/ccdroute
|
||||
var/ipfire/ovpn/ccdroute2
|
||||
var/ipfire/time
|
||||
var/log/cache
|
||||
var/state/dhcp/dhcpd.leases
|
||||
var/updatecache
|
||||
|
||||
@@ -1,7 +1,19 @@
|
||||
etc/system-release
|
||||
etc/issue
|
||||
etc/rc.d/init.d/firewall
|
||||
etc/rc.d/init.d/network-trigger
|
||||
etc/rc.d/init.d/networking/red.up/99-geoip-database
|
||||
etc/rc.d/rcsysinit.d/S90network-trigger
|
||||
srv/web/ipfire/cgi-bin/firewall.cgi
|
||||
srv/web/ipfire/cgi-bin/fwhosts.cgi
|
||||
srv/web/ipfire/cgi-bin/geoip-block.cgi
|
||||
usr/lib/firewall/firewall-lib.pl
|
||||
usr/lib/firewall/rules.pl
|
||||
usr/local/bin/xt_geoip_build
|
||||
usr/local/bin/xt_geoip_update
|
||||
var/ipfire/general-functions.pl
|
||||
var/ipfire/geoip-functions.pl
|
||||
var/ipfire/header.pl
|
||||
var/ipfire/backup/include
|
||||
var/ipfire/langs
|
||||
var/ipfire/menu.d/50-firewall.menu
|
||||
|
||||
1
config/rootfiles/core/90/filelists/perl-Text-CSV_XS
Symbolic link
1
config/rootfiles/core/90/filelists/perl-Text-CSV_XS
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../common/perl-Text-CSV_XS
|
||||
1
config/rootfiles/core/90/filelists/xtables-addons
Symbolic link
1
config/rootfiles/core/90/filelists/xtables-addons
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../common/xtables-addons
|
||||
@@ -159,6 +159,22 @@ if [ $BOOTSPACE -lt 1000 ]; then
|
||||
esac
|
||||
fi
|
||||
|
||||
# Create GeoIP related files if they do not exist yet.
|
||||
if [ ! -e "/var/ipfire/firewall/geoipblock" ]; then
|
||||
touch /var/ipfire/firewall/geoipblock
|
||||
chown nobody:nobody /var/ipfire/firewall/geoipblock
|
||||
|
||||
# Insert default value into file.
|
||||
echo "GEOIPBLOCK_ENABLED=off" >> /var/ipfire/firewall/geoipblock
|
||||
fi
|
||||
if [ ! -e "/var/ipfire/fwhosts/customgeoipgrp" ]; then
|
||||
touch /var/ipfire/fwhosts/customgeoipgrp
|
||||
chown nobody:nobody /var/ipfire/fwhosts/customgeoipgrp
|
||||
fi
|
||||
|
||||
# Download/Update GeoIP databases.
|
||||
/usr/local/bin/xt_geoip_update
|
||||
|
||||
# Update Language cache
|
||||
perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user