实现自动SYN Flood防护

This commit is contained in:
GoEdgeLab
2022-01-10 19:54:29 +08:00
parent 0e531443f2
commit 81388d43e6
9 changed files with 186 additions and 18 deletions

View File

@@ -59,6 +59,39 @@
<p class="comment" v-if="firewallPolicy.useLocalFirewall">可以在合适的时候自动使用系统自带防火墙进行防御。</p>
</td>
</tr>
<tr>
<td>SYN Flood防御</td>
<td>
<span v-if="firewallPolicy.synFlood == null || !firewallPolicy.synFlood.isOn" class="disabled">未启用</span>
<table class="ui table selectable" v-if="firewallPolicy.synFlood != null && firewallPolicy.synFlood.isOn">
<tr>
<td class="title">是否启用</td>
<td>
<span class="green">启用</span>
</td>
</tr>
<tr>
<td>空连接次数</td>
<td>
{{firewallPolicy.synFlood.minAttempts}}次/分钟
</td>
</tr>
<tr>
<td>封禁时间</td>
<td>
{{firewallPolicy.synFlood.timeoutSeconds}}秒
</td>
</tr>
<tr>
<td>忽略局域网访问</td>
<td>
<span v-if="firewallPolicy.synFlood.ignoreLocal" class="green">Y</span>
<span class="disabled" v-else>N</span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>描述</td>
<td>

View File

@@ -43,26 +43,32 @@
<checkbox name="useLocalFirewall" v-model="firewallPolicy.useLocalFirewall"></checkbox>
<p class="comment">开启后,可以在合适的时候自动使用系统自带防火墙进行防御。</p>
</td>
</tr>
<tr>
<td>SYN Flood防御</td>
<td>
<firewall-syn-flood-config-box :v-syn-flood-config="firewallPolicy.synFloodConfig"></firewall-syn-flood-config-box>
</td>
</tr>
<tr>
<td colspan="2"><more-options-indicator></more-options-indicator></td>
</tr>
<tbody v-show="moreOptionsVisible">
<tr>
<td>描述</td>
<td>
<textarea name="description" rows="3" v-model="firewallPolicy.description"></textarea>
</td>
</tr>
<tr>
<td>是否启用</td>
<td>
<div class="ui checkbox">
<input type="checkbox" name="isOn" value="1" v-model="firewallPolicy.isOn"/>
<label></label>
</div>
</td>
</tr>
<tr>
<td>描述</td>
<td>
<textarea name="description" rows="3" v-model="firewallPolicy.description"></textarea>
</td>
</tr>
<tr>
<td>是否启用</td>
<td>
<div class="ui checkbox">
<input type="checkbox" name="isOn" value="1" v-model="firewallPolicy.isOn"/>
<label></label>
</div>
</td>
</tr>
</tbody>
</table>
<submit-btn></submit-btn>