BUG12015: Redirecting to Captive portal does not work afterIPFire restart

Message ID 20190620050430.6719-1-alexander.marx@ipfire.org
State Accepted
Commit 1722701a9aab07e1a96ae25d2cedcbac403ddb76
Headers
Series BUG12015: Redirecting to Captive portal does not work afterIPFire restart |

Commit Message

Alexander Marx June 20, 2019, 3:04 p.m. UTC
  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(+)
  

Patch

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