diff --git a/web/public/js/components/server/firewall-syn-flood-config-box.js b/web/public/js/components/server/firewall-syn-flood-config-box.js index b689d229..e3c56930 100644 --- a/web/public/js/components/server/firewall-syn-flood-config-box.js +++ b/web/public/js/components/server/firewall-syn-flood-config-box.js @@ -48,7 +48,7 @@ Vue.component("firewall-syn-flood-config-box", { - 已启用 / 空连接次数:{{config.minAttempts}}次/分钟 / 封禁时间:{{config.timeoutSeconds}}秒 / 忽略局域网访问 + 已启用 / 空连接次数:{{config.minAttempts}}次/分钟 / 封禁时长:{{config.timeoutSeconds}}秒 / 忽略局域网访问 未启用 @@ -73,7 +73,7 @@ Vue.component("firewall-syn-flood-config-box", { - 封禁时间 + 封禁时长
diff --git a/web/public/js/components/server/firewall-syn-flood-config-viewer.js b/web/public/js/components/server/firewall-syn-flood-config-viewer.js index a7e64075..f2f98aab 100644 --- a/web/public/js/components/server/firewall-syn-flood-config-viewer.js +++ b/web/public/js/components/server/firewall-syn-flood-config-viewer.js @@ -16,7 +16,7 @@ Vue.component("firewall-syn-flood-config-viewer", { }, template: `
- 已启用 / 空连接次数:{{config.minAttempts}}次/分钟 / 封禁时间:{{config.timeoutSeconds}}秒 / 忽略局域网访问 + 已启用 / 空连接次数:{{config.minAttempts}}次/分钟 / 封禁时长:{{config.timeoutSeconds}}秒 / 忽略局域网访问 未启用
` diff --git a/web/public/js/components/server/http-firewall-actions-box.js b/web/public/js/components/server/http-firewall-actions-box.js index 9251495a..d614ce24 100644 --- a/web/public/js/components/server/http-firewall-actions-box.js +++ b/web/public/js/components/server/http-firewall-actions-box.js @@ -643,7 +643,7 @@ Vue.component("http-firewall-actions-box", { - 封锁时间 + 封禁时长
@@ -652,14 +652,14 @@ Vue.component("http-firewall-actions-box", { - 封锁范围 + 封禁范围 -

只封锁用户对当前网站服务的访问,其他服务不受影响。

-

封锁用户对所有网站服务的访问。

+

只封禁用户对当前网站服务的访问,其他服务不受影响。

+

封禁用户对所有网站服务的访问。

diff --git a/web/public/js/components/server/http-firewall-block-options-viewer.js b/web/public/js/components/server/http-firewall-block-options-viewer.js index 6832068d..b128da6a 100644 --- a/web/public/js/components/server/http-firewall-block-options-viewer.js +++ b/web/public/js/components/server/http-firewall-block-options-viewer.js @@ -8,7 +8,7 @@ Vue.component("http-firewall-block-options-viewer", { template: `
默认设置
- 状态码:{{options.statusCode}} / 提示内容:[{{options.body.length}}字符][无] / 超时时间:{{options.timeout}}秒 + 状态码:{{options.statusCode}} / 提示内容:[{{options.body.length}}字符][无] / 超时时间:{{options.timeout}}秒 / 最大封禁时长:{{options.timeoutMax}}秒
` diff --git a/web/public/js/components/server/http-firewall-block-options.js b/web/public/js/components/server/http-firewall-block-options.js index 3ff7b0bb..7d3b0538 100644 --- a/web/public/js/components/server/http-firewall-block-options.js +++ b/web/public/js/components/server/http-firewall-block-options.js @@ -5,6 +5,7 @@ Vue.component("http-firewall-block-options", { blockOptions: this.vBlockOptions, statusCode: this.vBlockOptions.statusCode, timeout: this.vBlockOptions.timeout, + timeoutMax: this.vBlockOptions.timeoutMax, isEditing: false } }, @@ -24,6 +25,14 @@ Vue.component("http-firewall-block-options", { } else { this.blockOptions.timeout = timeout } + }, + timeoutMax: function (v) { + let timeoutMax = parseInt(v) + if (isNaN(timeoutMax)) { + this.blockOptions.timeoutMax = 0 + } else { + this.blockOptions.timeoutMax = timeoutMax + } } }, methods: { @@ -33,7 +42,9 @@ Vue.component("http-firewall-block-options", { }, template: `
- 状态码:{{statusCode}} / 提示内容:[{{blockOptions.body.length}}字符][无] / 超时时间:{{timeout}}秒 + 状态码:{{statusCode}} / 提示内容:[{{blockOptions.body.length}}字符][无] / 封禁时长:{{timeout}}秒 + / 最大封禁时长:{{timeoutMax}}秒 + @@ -48,13 +59,23 @@ Vue.component("http-firewall-block-options", { - + + + + +
状态码
超时时间封禁时长
-

触发阻止动作时,封锁客户端IP的时间。

+

触发阻止动作时,封禁客户端IP的时间。

+
最大封禁时长 +
+ + +
+

如果最大封禁时长大于封禁时长({{timeout}}秒),那么表示每次封禁的时候,将会在这两个时长数字之间随机选取一个数字作为最终的封禁时长。