mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
firewall: Rename GEOIPBLOCK table to LOCATIONBLOCK
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user