firewall: Rename GEOIPBLOCK table to LOCATIONBLOCK

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2020-06-12 16:00:34 +02:00
parent d00923cef8
commit 0e6eca78b8
2 changed files with 6 additions and 6 deletions

View File

@@ -612,7 +612,7 @@ sub p2pblock {
sub geoipblock {
# Flush iptables chain.
run("$IPTABLES -F GEOIPBLOCK");
run("$IPTABLES -F LOCATIONBLOCK");
# If geoip blocking is not enabled, we are finished here.
if ($geoipsettings{'GEOIPBLOCK_ENABLED'} ne "on") {
@@ -625,7 +625,7 @@ sub geoipblock {
# is enabled.
foreach my $location (@locations) {
if(exists $geoipsettings{$location} && $geoipsettings{$location} eq "on") {
run("$IPTABLES -A GEOIPBLOCK -m geoip --src-cc $location -j DROP");
run("$IPTABLES -A LOCATIONBLOCK -m geoip --src-cc $location -j DROP");
}
}
}