From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH 2/2] convert-to-location: Regenerate firewall chains. Date: Sat, 11 Jul 2020 12:11:02 +0200 Message-ID: <20200711101102.2528-2-stefan.schantl@ipfire.org> In-Reply-To: <20200711101102.2528-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6418878658178286837==" List-Id: --===============6418878658178286837== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The firewall chain for location based rules has been renamed to LOCATIONBLOCK and therefore the fiewall needs to be restarted and the chains regenerated. Signed-off-by: Stefan Schantl --- src/scripts/convert-to-location | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/scripts/convert-to-location b/src/scripts/convert-to-location index db61d3c79..9149b854d 100755 --- a/src/scripts/convert-to-location +++ b/src/scripts/convert-to-location @@ -44,6 +44,9 @@ if [ -f "$FW_CONF_DIR/geoipblock" ]; then # Rename file to the new name. mv "$HOSTS_CONF_DIR/customgeoipgrp" "$HOSTS_CONF_DIR/customlocationgrp" + + # Regenerate firewall chains. + /etc/init.d/firewall restart fi # Finished. -- 2.20.1 --===============6418878658178286837==--