summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-banip/htdocs/luci-static/resources/view/banip
diff options
context:
space:
mode:
authorDirk Brenken <dev@brenken.org>2021-02-17 22:28:51 +0100
committerDirk Brenken <dev@brenken.org>2021-02-17 22:32:10 +0100
commit97f6bb057f7ced52a6c5380762aeb3369bc431aa (patch)
tree9898591994ff7dc6f578be8a881a9f21ed48f305 /applications/luci-app-banip/htdocs/luci-static/resources/view/banip
parentcb0979ffb242d91f8a478438d27e2f004fb89e59 (diff)
luci-app-banip: sync with 0.7.2
* add nginx support and expose new log count options Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-banip/htdocs/luci-static/resources/view/banip')
-rw-r--r--applications/luci-app-banip/htdocs/luci-static/resources/view/banip/overview.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/applications/luci-app-banip/htdocs/luci-static/resources/view/banip/overview.js b/applications/luci-app-banip/htdocs/luci-static/resources/view/banip/overview.js
index 60e5025c11..87c232c580 100644
--- a/applications/luci-app-banip/htdocs/luci-static/resources/view/banip/overview.js
+++ b/applications/luci-app-banip/htdocs/luci-static/resources/view/banip/overview.js
@@ -676,9 +676,25 @@ return view.extend({
o.value('dropbear');
o.value('sshd');
o.value('luci');
+ o.value('nginx');
o.optional = true;
o.rmempty = true;
+ o = s.taboption('adv_log', form.Value, 'ban_ssh_logcount', _('SSH Log Count'), _('Number of the failed ssh login repetitions of the same ip in the log before banning.'));
+ o.placeholder = '3';
+ o.datatype = 'range(1,10)';
+ o.rmempty = true;
+
+ o = s.taboption('adv_log', form.Value, 'ban_luci_logcount', _('LuCI Log Count'), _('Number of the failed LuCI login repetitions of the same ip in the log before banning.'));
+ o.placeholder = '3';
+ o.datatype = 'range(1,10)';
+ o.rmempty = true;
+
+ o = s.taboption('adv_log', form.Value, 'ban_nginx_logcount', _('NGINX Log Count'), _('Number of the failed nginx requests of the same ip in the log before banning.'));
+ o.placeholder = '5';
+ o.datatype = 'range(1,20)';
+ o.rmempty = true;
+
o = s.taboption('adv_log', form.Value, 'ban_logopts_src', _('SRC Log Options'), _('Set special SRC log options, e.g. to set a limit rate.'));
o.nocreate = false;
o.unspecified = true;