From 1e56d45470fd34a628f377a314af017c52641653 Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Sun, 5 May 2024 22:04:46 +0200 Subject: luci-app-banip: sync with 0.9.5-5 Signed-off-by: Dirk Brenken --- .../luci-static/resources/view/banip/overview.js | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'applications/luci-app-banip/htdocs') 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 87a7b70a19..c57f5f633f 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 @@ -410,6 +410,7 @@ return view.extend({ o.default = '' + _('Changes on this tab needs a banIP service restart to take effect.') + ''; o = s.taboption('adv_chain', form.ListValue, 'ban_nftpriority', _('Chain Priority'), _('Set the nft chain priority within the banIP table, lower values means higher priority.')); + o.value('10'); o.value('0'); o.value('-100'); o.value('-150'); @@ -436,39 +437,42 @@ return view.extend({ o.optional = true; o.rmempty = true; - o = s.taboption('adv_chain', form.ListValue, 'ban_icmplimit', _('ICMP-Threshold'), _('ICMP-Threshold in packets per second to prevent WAN-DDoS attacks.')); - o.value('1'); + o = s.taboption('adv_chain', form.ListValue, 'ban_icmplimit', _('ICMP-Threshold'), _('ICMP-Threshold in packets per second to prevent WAN-DDoS attacks. To disable this safeguard set it to \'0\'.')); + o.value('0'); o.value('10'); o.value('50'); o.value('100'); o.value('250'); o.value('500'); + o.value('1000'); o.default = '10'; o.placeholder = _('-- default --'); o.create = true; o.optional = true; o.rmempty = true; - o = s.taboption('adv_chain', form.ListValue, 'ban_synlimit', _('SYN-Threshold'), _('SYN-Threshold in packets per second to prevent WAN-DDoS attacks.')); - o.value('1'); + o = s.taboption('adv_chain', form.ListValue, 'ban_synlimit', _('SYN-Threshold'), _('SYN-Threshold in packets per second to prevent WAN-DDoS attacks. To disable this safeguard set it to \'0\'.')); + o.value('0'); o.value('10'); o.value('50'); o.value('100'); o.value('250'); o.value('500'); + o.value('1000'); o.default = '10'; o.placeholder = _('-- default --'); o.create = true; o.optional = true; o.rmempty = true; - o = s.taboption('adv_chain', form.ListValue, 'ban_udplimit', _('UDP-Threshold'), _('UDP-Threshold in packets per second to prevent WAN-DDoS attacks.')); - o.value('1'); - o.value('10'); - o.value('50'); + o = s.taboption('adv_chain', form.ListValue, 'ban_udplimit', _('UDP-Threshold'), _('UDP-Threshold in packets per second to prevent WAN-DDoS attacks. To disable this safeguard set it to \'0\'.')); + o.value('0'); o.value('100'); o.value('250'); o.value('500'); + o.value('1000'); + o.value('2500'); + o.value('5000'); o.default = '100'; o.placeholder = _('-- default --'); o.create = true; -- cgit v1.2.3