fff-firewall: Restart when network configuration changes

The configuration of our firewall depends on the network configuration.
Most importantly, the firewall has to be restarted, if the WAN-interface
is changed.

Therefore, a procd reload trigger is added to the init-script, so our
firewall is automatically restarted, when the network configuration is
changed.

Fixes: #46 (gitea)

Signed-off-by: Robert Langhammer <rlanghammer@web.de>
[fabian@blaese.de: Remove unrelated changes]
Signed-off-by: Fabian Bläse <fabian@blaese.de>
Reviewed-by: Robert Langhammer <rlanghammer@web.de>
Reviewed-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
Robert Langhammer 2019-04-25 19:49:22 +02:00 committed by Adrian Schmutzler
parent aea773a2a9
commit 3eb744e491
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ FIREWALL_DIR=/usr/lib/firewall.d
service_triggers()
{
procd_add_reload_trigger "fff-firewall"
procd_add_reload_trigger "fff-firewall" "network"
}
start_service()