fail2ban的默认iptables封禁策略为 REJECT --reject-with icmp-port-unreachable
在/etc/fail2ban/action.d/目录下创建文件 iptables-blocktype.local
内容如下:
[Init] blocktype = DROP
重启fail2ban服务后,iptables封禁策略变更为DROP
fail2ban的默认iptables封禁策略为 REJECT --reject-with icmp-port-unreachable
在/etc/fail2ban/action.d/目录下创建文件 iptables-blocktype.local
内容如下:
[Init] blocktype = DROP
重启fail2ban服务后,iptables封禁策略变更为DROP
LeetCode 571. Find Median Given Frequency of Numbers
The Numbers table keeps the value of number and its frequency.
+----------+-------------+ | Number | Frequency | +----------+-------------| | 0 | 7 | | 1 | 1 | | 2 | 3 | | 3 | 1 | +----------+-------------+
In this table, the numbers are 0, 0, 0, 0 ...
LeetCode Weekly Contest 30是LeetCode举办的第三十五场正式周赛,共4道题目,比赛时长1.5小时。
比赛链接:https://leetcode.com/contest/leetcode-weekly-contest-30/
题解列表:
LeetCode 566. Reshape the Matrix
LeetCode 560. Subarray Sum Equals K
LeetCode 568. Maximum Vacation Days
LeetCode wants to give one of its best employees the option to travel among N cities to collect algorithm problems. But all work and no play makes Jack a dull boy, you could take ...
LeetCode 567. Permutation in String
Given two strings s1 and s2, write a function to return true if s2 contains the permutation of s1. In other words, one of the first string's permutations is the substring of the second ...