banip: update 0.0.6

* support multiple WAN interfaces in iptables rules,
  set 'ban_iface' option accordingly (as space separated list)
  or use the LuCI frontend
* add new "refresh" mode while triggered by fw changes (no download)
* add required ip dependency
* fix wrong 'settype' definition for firehol1 in config

Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
Dirk Brenken
2018-11-16 21:06:48 +01:00
parent 58f79231ed
commit dcaddb5297
5 changed files with 56 additions and 19 deletions
+8 -2
View File
@@ -4,8 +4,9 @@
START=30
USE_PROCD=1
EXTRA_COMMANDS="status"
EXTRA_HELP=" status Print runtime information"
EXTRA_COMMANDS="refresh status"
EXTRA_HELP=" refresh Refresh ipsets only (no new download!)
status Print runtime information"
ban_init="/etc/init.d/banip"
ban_script="/usr/bin/banip.sh"
@@ -42,6 +43,11 @@ stop_service()
rc_procd start_service
}
refresh()
{
rc_procd start_service "refresh"
}
status()
{
local key keylist value rtfile="$(uci_get banip global ban_rtfile)"