diff --git a/web/public/js/components.js b/web/public/js/components.js
index f4f6e865..c38d51a4 100644
--- a/web/public/js/components.js
+++ b/web/public/js/components.js
@@ -88,7 +88,7 @@ Vue.component("traffic-map-box",{props:["v-stats","v-is-attack"],mounted:functio
-`}),Vue.component("node-ddos-protection-config-box",{props:["v-ddos-protection-config","v-default-configs","v-is-node","v-cluster-is-on"],data:function(){let e=this.vDdosProtectionConfig;return null==(e=null==e?{tcp:{isPrior:!1,isOn:!1,maxConnections:0,maxConnectionsPerIP:0,newConnectionsRate:0,denyNewConnectionsRate:0,allowIPList:[],ports:[]}}:e).tcp&&(e.tcp={isPrior:!1,isOn:!1,maxConnections:0,maxConnectionsPerIP:0,newConnectionsRate:0,denyNewConnectionsRate:0,allowIPList:[],ports:[]}),{config:e,defaultConfigs:this.vDefaultConfigs,isNode:this.vIsNode,isAddingPort:!1}},methods:{changeTCPPorts:function(e){this.config.tcp.ports=e},changeTCPAllowIPList:function(e){this.config.tcp.allowIPList=e}},template:`
+
`}),Vue.component("node-ddos-protection-config-box",{props:["v-ddos-protection-config","v-default-configs","v-is-node","v-cluster-is-on"],data:function(){let e=this.vDdosProtectionConfig;return null==(e=null==e?{tcp:{isPrior:!1,isOn:!1,maxConnections:0,maxConnectionsPerIP:0,newConnectionsRate:0,newConnectionsRateBlockTimeout:0,newConnectionsSecondlyRate:0,newConnectionSecondlyRateBlockTimeout:0,allowIPList:[],ports:[]}}:e).tcp&&(e.tcp={isPrior:!1,isOn:!1,maxConnections:0,maxConnectionsPerIP:0,newConnectionsRate:0,newConnectionsRateBlockTimeout:0,newConnectionsSecondlyRate:0,newConnectionSecondlyRateBlockTimeout:0,allowIPList:[],ports:[]}),{config:e,defaultConfigs:this.vDefaultConfigs,isNode:this.vIsNode,isAddingPort:!1}},methods:{changeTCPPorts:function(e){this.config.tcp.ports=e},changeTCPAllowIPList:function(e){this.config.tcp.allowIPList=e}},template:`
@@ -122,23 +122,12 @@ Vue.component("traffic-map-box",{props:["v-stats","v-is-attack"],mounted:functio
- | 单IP TCP新连接速率 |
+ 单IP TCP新连接速率(分钟) |
-
-
- 个新连接/每分钟
-
-
- |
-
-
- | 单IP TCP新连接速率黑名单 |
-
-
+
@@ -147,13 +136,37 @@ Vue.component("traffic-map-box",{props:["v-stats","v-is-attack"],mounted:functio
-
-
+
+
+ |
+
+
+ | 单IP TCP新连接速率(秒钟) |
+
+
+
+
|
@@ -452,7 +465,7 @@ Vue.component("traffic-map-box",{props:["v-stats","v-is-attack"],mounted:functio
-`}),Vue.component("ns-node-ddos-protection-config-box",{props:["v-ddos-protection-config","v-default-configs","v-is-node","v-cluster-is-on"],data:function(){let e=this.vDdosProtectionConfig;return null==(e=null==e?{tcp:{isPrior:!1,isOn:!1,maxConnections:0,maxConnectionsPerIP:0,newConnectionsRate:0,denyNewConnectionsRate:0,allowIPList:[],ports:[]}}:e).tcp&&(e.tcp={isPrior:!1,isOn:!1,maxConnections:0,maxConnectionsPerIP:0,newConnectionsRate:0,denyNewConnectionsRate:0,allowIPList:[],ports:[]}),{config:e,defaultConfigs:this.vDefaultConfigs,isNode:this.vIsNode,isAddingPort:!1}},methods:{changeTCPPorts:function(e){this.config.tcp.ports=e},changeTCPAllowIPList:function(e){this.config.tcp.allowIPList=e}},template:`
+
`}),Vue.component("ns-node-ddos-protection-config-box",{props:["v-ddos-protection-config","v-default-configs","v-is-node","v-cluster-is-on"],data:function(){let e=this.vDdosProtectionConfig;return null==(e=null==e?{tcp:{isPrior:!1,isOn:!1,maxConnections:0,maxConnectionsPerIP:0,newConnectionsRate:0,newConnectionsRateBlockTimeout:0,newConnectionsSecondlyRate:0,newConnectionSecondlyRateBlockTimeout:0,allowIPList:[],ports:[]}}:e).tcp&&(e.tcp={isPrior:!1,isOn:!1,maxConnections:0,maxConnectionsPerIP:0,newConnectionsRate:0,newConnectionsRateBlockTimeout:0,newConnectionsSecondlyRate:0,newConnectionSecondlyRateBlockTimeout:0,allowIPList:[],ports:[]}),{config:e,defaultConfigs:this.vDefaultConfigs,isNode:this.vIsNode,isAddingPort:!1}},methods:{changeTCPPorts:function(e){this.config.tcp.ports=e},changeTCPAllowIPList:function(e){this.config.tcp.allowIPList=e}},template:`
@@ -486,23 +499,12 @@ Vue.component("traffic-map-box",{props:["v-stats","v-is-attack"],mounted:functio
- | 单IP TCP新连接速率 |
+ 单IP TCP新连接速率(分钟) |
-
-
- 个新连接/每分钟
-
-
- |
-
-
- | 单IP TCP新连接速率黑名单 |
-
-
+
@@ -511,13 +513,37 @@ Vue.component("traffic-map-box",{props:["v-stats","v-is-attack"],mounted:functio
-
-
+
+
+ |
+
+
+ | 单IP TCP新连接速率(秒钟) |
+
+
+
+
|
diff --git a/web/public/js/components.src.js b/web/public/js/components.src.js
index 72049ffb..2aea1308 100755
--- a/web/public/js/components.src.js
+++ b/web/public/js/components.src.js
@@ -449,7 +449,9 @@ Vue.component("node-ddos-protection-config-box", {
maxConnections: 0,
maxConnectionsPerIP: 0,
newConnectionsRate: 0,
- denyNewConnectionsRate: 0,
+ newConnectionsRateBlockTimeout: 0,
+ newConnectionsSecondlyRate: 0,
+ newConnectionSecondlyRateBlockTimeout: 0,
allowIPList: [],
ports: []
}
@@ -464,7 +466,9 @@ Vue.component("node-ddos-protection-config-box", {
maxConnections: 0,
maxConnectionsPerIP: 0,
newConnectionsRate: 0,
- denyNewConnectionsRate: 0,
+ newConnectionsRateBlockTimeout: 0,
+ newConnectionsSecondlyRate: 0,
+ newConnectionSecondlyRateBlockTimeout: 0,
allowIPList: [],
ports: []
}
@@ -521,23 +525,12 @@ Vue.component("node-ddos-protection-config-box", {
- | 单IP TCP新连接速率 |
+ 单IP TCP新连接速率(分钟) |
-
-
- 个新连接/每分钟
-
-
- |
-
-
- | 单IP TCP新连接速率黑名单 |
-
-
+
@@ -546,13 +539,37 @@ Vue.component("node-ddos-protection-config-box", {
-
-
+
+
+ |
+
+
+ | 单IP TCP新连接速率(秒钟) |
+
+
+
+
|
@@ -1515,7 +1532,9 @@ Vue.component("ns-node-ddos-protection-config-box", {
maxConnections: 0,
maxConnectionsPerIP: 0,
newConnectionsRate: 0,
- denyNewConnectionsRate: 0,
+ newConnectionsRateBlockTimeout: 0,
+ newConnectionsSecondlyRate: 0,
+ newConnectionSecondlyRateBlockTimeout: 0,
allowIPList: [],
ports: []
}
@@ -1530,7 +1549,9 @@ Vue.component("ns-node-ddos-protection-config-box", {
maxConnections: 0,
maxConnectionsPerIP: 0,
newConnectionsRate: 0,
- denyNewConnectionsRate: 0,
+ newConnectionsRateBlockTimeout: 0,
+ newConnectionsSecondlyRate: 0,
+ newConnectionSecondlyRateBlockTimeout: 0,
allowIPList: [],
ports: []
}
@@ -1587,23 +1608,12 @@ Vue.component("ns-node-ddos-protection-config-box", {
- | 单IP TCP新连接速率 |
+ 单IP TCP新连接速率(分钟) |
-
-
- 个新连接/每分钟
-
-
- |
-
-
- | 单IP TCP新连接速率黑名单 |
-
-
+
@@ -1612,13 +1622,37 @@ Vue.component("ns-node-ddos-protection-config-box", {
-
-
+
+
+ |
+
+
+ | 单IP TCP新连接速率(秒钟) |
+
+
+
+
|
diff --git a/web/views/@default/@layout.css b/web/views/@default/@layout.css
index 718a66c6..5121ee24 100644
--- a/web/views/@default/@layout.css
+++ b/web/views/@default/@layout.css
@@ -164,7 +164,7 @@ span.disabled {
a.enabled,
span.enabled,
span.green {
- color: #2c662d;
+ color: #21ba45;
}
span.grey,
label.grey,
diff --git a/web/views/@default/@layout.less b/web/views/@default/@layout.less
index 3a5fb7ee..976f3dea 100644
--- a/web/views/@default/@layout.less
+++ b/web/views/@default/@layout.less
@@ -19,7 +19,7 @@ a.disabled, a.disabled:hover, a.disabled:active, span.disabled {
}
a.enabled, span.enabled, span.green {
- color: #2c662d;
+ color: #21ba45;
}
span.grey, label.grey, p.grey {