]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
BUG12015: Redirecting to Captive portal does not work after IPFire restart
authorAlexander Marx <alexander.marx@ipfire.org>
Thu, 20 Jun 2019 05:04:30 +0000 (07:04 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 21 Jun 2019 00:39:18 +0000 (01:39 +0100)
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
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/system/firewall

index da89857d8b17b75dbeda6515745d5068d9869204..b3483a744085c0a7b22e281632560afe04e3b12d 100644 (file)
@@ -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