From patchwork Thu Jun 20 15:04:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Marx X-Patchwork-Id: 2308 Return-Path: Received: from mail01.ipfire.org (mail01.i.ipfire.org [172.28.1.200]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail01.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web07.i.ipfire.org (Postfix) with ESMTPS id 7F293887665 for ; Thu, 20 Jun 2019 06:04:36 +0100 (BST) Received: from mail01.i.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 45TqVq346wz5GlRC; Thu, 20 Jun 2019 06:04:35 +0100 (BST) Received: from EDV1.kappeln2011.lan (unknown [90.187.3.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 45TqVm32Vyz581gW; Thu, 20 Jun 2019 06:04:32 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201904rsa; t=1561007072; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=lbeqR1W/cEik5CNXXnavlemfwX51A/bcl7DauqBq/9g=; b=c7AN3Ijc03S/F+KcOid7X08m+iGUveAkafkdMqeFBxXdo0z/FSyoRhRxwZhKaInryTZn8d uemKMx6kncBJ4JjQKgbGfemV1tr0Uk+9q9kh0BpCPQ9L1aoBs9UwCOxvC2BPWlN1nBrf0H 38NQeN+27zgw4cOG5Hw31rseCMP3db8gSyk76GlLQIvRoKo0MGK1G9RoyGh7tZOvwXsRp1 PSi/oTDCiZkrbxesV9ej+FA13NFUa54wTL1oCXk8RUixDKwfY2AT1p4hYGOIY+nem4uH62 E6LFo4kzsSyDYK5vpiPJtS1mzzi3FNj1W82bERkNSsh9XB25oecRtLyGGDqCvQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=201904ed25519; t=1561007072; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=lbeqR1W/cEik5CNXXnavlemfwX51A/bcl7DauqBq/9g=; b=MGiKzQuKmASa2FgHeK158Pu3jR05EakBkCzN21WyzO9U7QuTHB4xDhnqzMBSmAgz7EZSYu Szdpj8XjQfas2tCA== From: Alexander Marx To: development@lists.ipfire.org Subject: [PATCH] BUG12015: Redirecting to Captive portal does not work after IPFire restart Date: Thu, 20 Jun 2019 07:04:30 +0200 Message-Id: <20190620050430.6719-1-alexander.marx@ipfire.org> X-Mailer: git-send-email 2.17.1 Authentication-Results: mail01.ipfire.org; auth=pass smtp.auth=amarx smtp.mailfrom=alexander.marx@ipfire.org X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" When the Captive portal is enabled, the needed firewall rules are applied. But when restarting IPFire, the rules are not applied because there is no call to do so. Added call to captivectrl in the initscrip 'firewall'. Fixes: #12015 --- src/initscripts/system/firewall | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/initscripts/system/firewall b/src/initscripts/system/firewall index da89857d8..b3483a744 100644 --- a/src/initscripts/system/firewall +++ b/src/initscripts/system/firewall @@ -379,6 +379,9 @@ iptables_init() { # run wirelessctrl /usr/local/bin/wirelessctrl + # run captivectrl + /usr/local/bin/captivectrl + # POLICY CHAIN iptables -N POLICYIN iptables -A INPUT -j POLICYIN