{"id":113957,"date":"2026-10-08T01:17:31","date_gmt":"2026-10-07T17:17:31","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/113957.html"},"modified":"2026-10-08T01:17:31","modified_gmt":"2026-10-07T17:17:31","slug":"%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%a2%ab%e5%8f%8d%e5%a4%8d%e5%b0%9d%e8%af%95%e7%99%bb%e5%bd%95%e4%b9%8b%e5%90%8e%ef%bc%9afail2ban-%e5%8a%a0%e5%af%86%e9%92%a5%e7%99%bb%e5%bd%95%e7%9a%84%e4%ba%94%e9%81%93","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/113957.html","title":{"rendered":"\u670d\u52a1\u5668\u88ab\u53cd\u590d\u5c1d\u8bd5\u767b\u5f55\u4e4b\u540e\uff1afail2ban \u52a0\u5bc6\u94a5\u767b\u5f55\u7684\u4e94\u9053\u52a0\u56fa"},"content":{"rendered":"<p>\u6211\u624b\u4e0a\u90a3\u53f0\u8dd1\u6d4b\u8bd5\u7684\u670d\u52a1\u5668&#xff0c;\u67d0\u5929\u665a\u4e0a\u7ffb\u767b\u5f55\u65e5\u5fd7&#xff0c;\u5dee\u70b9\u6ca1\u5750\u4f4f\u3002Failed password \u4e00\u9875\u63a5\u4e00\u9875&#xff0c;\u9694\u51e0\u5206\u949f\u5c31\u6765\u4e00\u6ce2&#xff0c;IP \u5929\u5357\u6d77\u5317\u90fd\u6709&#xff0c;\u5178\u578b\u7684\u649e\u5e93\u626b\u63cf\u3002\u5f53\u5929\u591c\u91cc\u6211\u5c31\u628a\u5bc6\u7801\u767b\u5f55\u5173\u4e86&#xff0c;\u88c5\u4e0a fail2ban&#xff0c;\u524d\u540e\u6298\u817e\u4e86\u5927\u6982\u4e24\u5c0f\u65f6\u3002\u8fd9\u7bc7\u5c31\u628a\u6211\u4ece\u786e\u8ba4\u3001\u52a0\u56fa\u5230\u590d\u67e5\u7684\u5b8c\u6574\u8fc7\u7a0b\u5199\u4e0b\u6765&#xff0c;\u547d\u4ee4\u90fd\u662f\u80fd\u76f4\u63a5\u7167\u6284\u7684\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261007171726-6ac67ea6e5700.jpg\" alt=\"\u914d\u56fe1\" \/><\/p>\n<p>\u7b2c\u4e00\u9053&#xff1a;\u7ffb\u51fa\u767b\u5f55\u65e5\u5fd7&#xff0c;\u786e\u8ba4\u662f\u771f\u88ab\u626b\u4e86<\/p>\n<p>\u5148\u522b\u614c\u7740\u6539\u914d\u7f6e&#xff0c;\u5f97\u5148\u786e\u8ba4\u81ea\u5df1\u662f\u4e0d\u662f\u771f\u88ab\u76ef\u4e0a\u4e86\u3002\u6211\u7528\u7684\u662f Ubuntu&#xff0c;\u767b\u5f55\u65e5\u5fd7\u5728 \/var\/log\/auth.log\u3002\u770b\u6700\u8fd1\u6709\u6ca1\u6709\u4eba\u5728\u8bd5\u5bc6\u7801&#xff0c;\u4e00\u6761\u547d\u4ee4\u7684\u4e8b&#xff1a;<\/p>\n<p>tail -200 \/var\/log\/auth.log | grep \u201cFailed password\u201d<\/p>\n<p>\u8981\u662f\u5237\u5c4f&#xff0c;\u518d\u7edf\u8ba1\u4e00\u4e0b\u90fd\u662f\u54ea\u4e9b IP \u5728\u8bd5&#xff1a;<\/p>\n<p>grep \u201cFailed password\u201d \/var\/log\/auth.log | awk \u2018{print $(NF-3)}\u2019 | sort | uniq -c | sort -nr | head -20<\/p>\n<p>\u6211\u90a3\u6b21\u7edf\u8ba1\u51fa\u6765&#xff0c;\u524d\u4e09\u540d\u90fd\u662f\u5883\u5916\u673a\u623f IP&#xff0c;\u4e00\u4e2a\u5730\u5740\u5c31\u8bd5\u4e86\u51e0\u5341\u6b21\u3002\u5230\u8fd9\u4e00\u6b65\u57fa\u672c\u80fd\u65ad\u5b9a\u662f\u88ab\u5b57\u5178\u649e\u5e93\u4e86&#xff0c;\u53ef\u4ee5\u52a8\u624b\u52a0\u56fa\u3002<\/p>\n<p>\u7b2c\u4e8c\u9053&#xff1a;\u5173\u6389\u5bc6\u7801\u767b\u5f55&#xff0c;\u53ea\u7559\u5bc6\u94a5\u8fdb\u95e8<\/p>\n<p>\u88ab\u626b\u5f97\u8fd9\u4e48\u51f6&#xff0c;\u7b2c\u4e00\u4ef6\u4e8b\u5c31\u662f\u628a\u6700\u5bb9\u6613\u649e\u5f00\u7684\u9501\u6362\u6389\u3002\u6539 \/etc\/ssh\/sshd_config&#xff0c;\u8fd9\u4e24\u884c\u662f\u5173\u952e&#xff1a;<\/p>\n<p>PermitRootLogin no<br \/>\nPasswordAuthentication no<\/p>\n<p>\u6539\u5b8c\u6267\u884c systemctl restart sshd \u8ba9\u914d\u7f6e\u751f\u6548\u3002\u8fd9\u91cc\u6709\u4e2a\u6559\u8bad&#xff0c;\u6539\u4e4b\u524d\u4e00\u5b9a\u5148\u5f00\u4e00\u4e2a\u5907\u7528 SSH \u4f1a\u8bdd\u6302\u7740\u3002\u6211\u7b2c\u4e00\u56de\u6539\u7684\u65f6\u5019\u5fd8\u4e86\u786e\u8ba4\u65b0\u914d\u7f6e\u80fd\u8fde&#xff0c;\u5dee\u70b9\u628a\u81ea\u5df1\u9501\u5728\u95e8\u5916\u3002\u5bc6\u94a5\u6211\u7528 ssh-keygen \u751f\u6210\u7684 ed25519 \u5bc6\u94a5&#xff0c;\u516c\u94a5\u653e\u8fdb authorized_keys&#xff0c;\u4e4b\u540e\u5168\u9760\u5bc6\u94a5\u8fde&#xff0c;\u5bc6\u7801\u8bd5\u4e00\u4e07\u6b21\u4e5f\u8fdb\u4e0d\u6765\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261007171728-6ac67ea810c82.jpg\" alt=\"\u914d\u56fe2\" \/><\/p>\n<p>\u7b2c\u4e09\u9053&#xff1a;\u88c5\u4e0a fail2ban&#xff0c;\u5148\u8ba9\u9ed8\u8ba4\u89c4\u5219\u6321\u7740<\/p>\n<p>\u5bc6\u94a5\u767b\u5f55\u53ea\u662f\u6362\u4e86\u628a\u7ed3\u5b9e\u7684\u9501&#xff0c;fail2ban \u76f8\u5f53\u4e8e\u5728\u95e8\u53e3\u96c7\u4e86\u4e2a\u4fdd\u5b89&#xff0c;\u8c01\u8fde\u7eed\u8bd5\u5bc6\u7801\u5c31\u628a\u4ed6\u62c9\u9ed1\u3002\u88c5\u8d77\u6765\u5f88\u7b80\u5355&#xff1a;<\/p>\n<p>apt update &amp;&amp; apt install -y fail2ban<\/p>\n<p>\u88c5\u5b8c\u9ed8\u8ba4\u5c31\u5e26\u4e00\u4e2a sshd \u7684 jail\u3002\u6709\u4e2a\u5751\u63d0\u524d\u8bf4&#xff0c;\u65e5\u5fd7\u8def\u5f84\u522b\u914d\u9519&#xff0c;Debian\u3001Ubuntu \u7cfb\u662f \/var\/log\/auth.log&#xff0c;CentOS \u7cfb\u662f \/var\/log\/secure&#xff0c;\u914d\u9519\u7684\u8bdd\u540e\u9762\u9a8c\u8bc1\u4f1a\u663e\u793a\u4e0d\u5230\u4efb\u4f55\u4e1c\u897f\u3002<\/p>\n<p>\u7b2c\u56db\u9053&#xff1a;\u6309\u81ea\u5df1\u60c5\u51b5\u6539 jail&#xff0c;\u8bef\u5c01\u4e86\u81ea\u5df1\u6709\u6551<\/p>\n<p>\u9ed8\u8ba4\u89c4\u5219\u5bf9\u6211\u592a\u5bbd\u677e&#xff0c;\u6211\u6309\u5b9e\u9645\u6539\u4e86 \/etc\/fail2ban\/jail.local&#xff1a;<\/p>\n<p>[sshd]<br \/>\nenabled &#061; true<br \/>\nmaxretry &#061; 3<br \/>\nfindtime &#061; 600<br \/>\nbantime &#061; 3600<\/p>\n<p>\u610f\u601d\u662f\u4e00\u5206\u949f\u5185\u8bd5\u9519 3 \u6b21&#xff0c;\u5c31\u628a\u8fd9\u4e2a IP \u5c01\u4e00\u5c0f\u65f6\u3002\u6539\u5b8c\u91cd\u542f&#xff1a;systemctl restart fail2ban\u3002<\/p>\n<p>\u8fd9\u91cc\u6709\u4e2a\u5751\u5fc5\u987b\u8bf4&#xff0c;maxretry \u8bbe\u592a\u4e25\u5bb9\u6613\u8bef\u4f24\u3002\u6211\u6709\u6b21\u56fe\u7701\u4e8b\u8bbe\u6210 2&#xff0c;\u7ed3\u679c\u81ea\u5df1\u4e00\u4e2a\u8001\u811a\u672c\u8fd8\u5728\u7528\u5bc6\u7801\u8fde&#xff0c;\u628a\u529e\u516c\u5ba4\u7684\u51fa\u53e3 IP \u7ed9\u5c01\u4e86\u3002\u597d\u5728\u89e3\u5c01\u5f88\u5feb&#xff0c;\u4e00\u6761\u547d\u4ee4&#xff1a;<\/p>\n<p>fail2ban-client set sshd unbanip \u88ab\u5c01\u7684\u90a3\u4e2aIP<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261007171729-6ac67ea90a666.jpg\" alt=\"\u914d\u56fe3\" \/><\/p>\n<p>\u7b2c\u4e94\u9053&#xff1a;\u9a8c\u8bc1\u5c01\u7981&#xff0c;\u51e0\u5929\u540e\u56de\u5934\u590d\u67e5<\/p>\n<p>\u914d\u5b8c\u4e0d\u662f\u5c31\u5b8c\u4e8b\u4e86&#xff0c;\u5f97\u9a8c\u8bc1\u5c01\u7981\u5230\u5e95\u6709\u6ca1\u6709\u751f\u6548\u3002\u770b\u72b6\u6001&#xff1a;<\/p>\n<p>fail2ban-client status sshd<\/p>\n<p>\u6b63\u5e38\u7684\u8bdd Banned IP list \u4e0b\u9762\u4f1a\u6302\u7740\u88ab\u5c01\u7684 IP\u3002\u518d\u4ece\u9632\u706b\u5899\u4fa7\u786e\u8ba4\u89c4\u5219\u771f\u7684\u52a0\u4e0a\u4e86&#xff1a;<\/p>\n<p>iptables -L -n | grep f2b<\/p>\n<p>\u6211\u90a3\u6b21\u914d\u5b8c\u5f53\u5929\u5c31\u5c01\u4e86\u5341\u51e0\u4e2a IP&#xff0c;\u7b2c\u4e09\u5929\u518d\u7ffb auth.log&#xff0c;Failed password \u4ece\u5237\u5c4f\u964d\u5230\u57fa\u672c\u770b\u4e0d\u5230\u3002\u4e4b\u540e\u6211\u6bcf\u5468\u62bd\u67e5\u4e00\u6b21\u5c01\u7981\u5217\u8868&#xff0c;\u770b\u770b\u6709\u6ca1\u6709\u6f0f\u7f51\u7684\u3002<\/p>\n<p>\u6574\u5957SSH\u52a0\u56fa\u6d41\u7a0b\u8d70\u5b8c&#xff0c;\u6211\u5fc3\u91cc\u8e0f\u5b9e\u591a\u4e86\u3002\u670d\u52a1\u5668\u5b89\u5168\u8fd9\u79cd\u4e8b&#xff0c;\u6ca1\u51fa\u4e8b\u4e4b\u524d\u603b\u89c9\u5f97\u79bb\u81ea\u5df1\u8fdc&#xff0c;\u771f\u88ab\u626b\u4e00\u6b21\u624d\u77e5\u9053\u75bc\u3002\u8fd9\u7bc7\u662f\u670d\u52a1\u5668\u5b89\u5168\u5b9e\u64cd\u7cfb\u5217\u7684\u4e00\u7bc7&#xff0c;\u524d\u9762\u5199\u8fc7 Linux \u52a0\u56fa\u7684\u571f\u529e\u6cd5&#xff0c;\u540e\u9762\u51c6\u5907\u5199\u88ab CC \u653b\u51fb\u65f6\u7684\u5904\u7f6e\u548c webshell \u6392\u67e5&#xff0c;\u90fd\u662f\u6211\u81ea\u5df1\u8e29\u8fc7\u7684\u5751\u3002\u60f3\u770b\u540e\u7eed\u7684\u53ef\u4ee5\u5173\u6ce8\u8d26\u53f7\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u624b\u4e0a\u90a3\u53f0\u8dd1\u6d4b\u8bd5\u7684\u670d\u52a1\u5668&#xff0c;\u67d0\u5929\u665a\u4e0a\u7ffb\u767b\u5f55\u65e5\u5fd7&#xff0c;\u5dee\u70b9\u6ca1\u5750\u4f4f\u3002Failed password \u4e00\u9875\u63a5\u4e00\u9875&#xff0c;\u9694\u51e0\u5206\u949f\u5c31\u6765\u4e00\u6ce2&#xff0c;IP \u5929\u5357\u6d77\u5317\u90fd\u6709&#xff0c;\u5178\u578b\u7684\u649e\u5e93\u626b\u63cf\u3002\u5f53\u5929\u591c\u91cc\u6211\u5c31\u628a\u5bc6\u7801\u767b\u5f55\u5173\u4e86&#xff0c;\u88c5\u4e0a fail2ban&#xff0c;\u524d\u540e\u6298\u817e\u4e86\u5927\u6982\u4e24\u5c0f\u65f6\u3002\u8fd9\u7bc7\u5c31\u628a\u6211\u4ece\u786e\u8ba4\u3001\u52a0\u56fa\u5230\u590d\u67e5\u7684\u5b8c\u6574\u8fc7\u7a0b\u5199\u4e0b\u6765&#xff0c;\u547d\u4ee4\u90fd\u662f\u80fd\u76f4\u63a5\u7167\u6284\u7684\u3002\u7b2c\u4e00\u9053&#xff1a;\u7ffb\u51fa\u767b\u5f55\u65e5\u5fd7&#xff0c;\u786e\u8ba4\u662f\u771f\u88ab\u626b\u4e86<br \/>\n\u5148\u522b<\/p>\n","protected":false},"author":2,"featured_media":113954,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[7834,12962,43,1475,44],"topic":[],"class_list":["post-113957","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-fail2ban","tag-ssh","tag-43","tag-1475","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u670d\u52a1\u5668\u88ab\u53cd\u590d\u5c1d\u8bd5\u767b\u5f55\u4e4b\u540e\uff1afail2ban \u52a0\u5bc6\u94a5\u767b\u5f55\u7684\u4e94\u9053\u52a0\u56fa - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/113957.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u670d\u52a1\u5668\u88ab\u53cd\u590d\u5c1d\u8bd5\u767b\u5f55\u4e4b\u540e\uff1afail2ban \u52a0\u5bc6\u94a5\u767b\u5f55\u7684\u4e94\u9053\u52a0\u56fa - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6211\u624b\u4e0a\u90a3\u53f0\u8dd1\u6d4b\u8bd5\u7684\u670d\u52a1\u5668&#xff0c;\u67d0\u5929\u665a\u4e0a\u7ffb\u767b\u5f55\u65e5\u5fd7&#xff0c;\u5dee\u70b9\u6ca1\u5750\u4f4f\u3002Failed password \u4e00\u9875\u63a5\u4e00\u9875&#xff0c;\u9694\u51e0\u5206\u949f\u5c31\u6765\u4e00\u6ce2&#xff0c;IP \u5929\u5357\u6d77\u5317\u90fd\u6709&#xff0c;\u5178\u578b\u7684\u649e\u5e93\u626b\u63cf\u3002\u5f53\u5929\u591c\u91cc\u6211\u5c31\u628a\u5bc6\u7801\u767b\u5f55\u5173\u4e86&#xff0c;\u88c5\u4e0a fail2ban&#xff0c;\u524d\u540e\u6298\u817e\u4e86\u5927\u6982\u4e24\u5c0f\u65f6\u3002\u8fd9\u7bc7\u5c31\u628a\u6211\u4ece\u786e\u8ba4\u3001\u52a0\u56fa\u5230\u590d\u67e5\u7684\u5b8c\u6574\u8fc7\u7a0b\u5199\u4e0b\u6765&#xff0c;\u547d\u4ee4\u90fd\u662f\u80fd\u76f4\u63a5\u7167\u6284\u7684\u3002\u7b2c\u4e00\u9053&#xff1a;\u7ffb\u51fa\u767b\u5f55\u65e5\u5fd7&#xff0c;\u786e\u8ba4\u662f\u771f\u88ab\u626b\u4e86 \u5148\u522b\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/113957.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-07T17:17:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261007171726-6ac67ea6e5700.jpg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/113957.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/113957.html\",\"name\":\"\u670d\u52a1\u5668\u88ab\u53cd\u590d\u5c1d\u8bd5\u767b\u5f55\u4e4b\u540e\uff1afail2ban \u52a0\u5bc6\u94a5\u767b\u5f55\u7684\u4e94\u9053\u52a0\u56fa - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-07T17:17:31+00:00\",\"dateModified\":\"2026-10-07T17:17:31+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/113957.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/113957.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/113957.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u670d\u52a1\u5668\u88ab\u53cd\u590d\u5c1d\u8bd5\u767b\u5f55\u4e4b\u540e\uff1afail2ban \u52a0\u5bc6\u94a5\u767b\u5f55\u7684\u4e94\u9053\u52a0\u56fa\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u670d\u52a1\u5668\u88ab\u53cd\u590d\u5c1d\u8bd5\u767b\u5f55\u4e4b\u540e\uff1afail2ban \u52a0\u5bc6\u94a5\u767b\u5f55\u7684\u4e94\u9053\u52a0\u56fa - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/113957.html","og_locale":"zh_CN","og_type":"article","og_title":"\u670d\u52a1\u5668\u88ab\u53cd\u590d\u5c1d\u8bd5\u767b\u5f55\u4e4b\u540e\uff1afail2ban \u52a0\u5bc6\u94a5\u767b\u5f55\u7684\u4e94\u9053\u52a0\u56fa - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6211\u624b\u4e0a\u90a3\u53f0\u8dd1\u6d4b\u8bd5\u7684\u670d\u52a1\u5668&#xff0c;\u67d0\u5929\u665a\u4e0a\u7ffb\u767b\u5f55\u65e5\u5fd7&#xff0c;\u5dee\u70b9\u6ca1\u5750\u4f4f\u3002Failed password \u4e00\u9875\u63a5\u4e00\u9875&#xff0c;\u9694\u51e0\u5206\u949f\u5c31\u6765\u4e00\u6ce2&#xff0c;IP \u5929\u5357\u6d77\u5317\u90fd\u6709&#xff0c;\u5178\u578b\u7684\u649e\u5e93\u626b\u63cf\u3002\u5f53\u5929\u591c\u91cc\u6211\u5c31\u628a\u5bc6\u7801\u767b\u5f55\u5173\u4e86&#xff0c;\u88c5\u4e0a fail2ban&#xff0c;\u524d\u540e\u6298\u817e\u4e86\u5927\u6982\u4e24\u5c0f\u65f6\u3002\u8fd9\u7bc7\u5c31\u628a\u6211\u4ece\u786e\u8ba4\u3001\u52a0\u56fa\u5230\u590d\u67e5\u7684\u5b8c\u6574\u8fc7\u7a0b\u5199\u4e0b\u6765&#xff0c;\u547d\u4ee4\u90fd\u662f\u80fd\u76f4\u63a5\u7167\u6284\u7684\u3002\u7b2c\u4e00\u9053&#xff1a;\u7ffb\u51fa\u767b\u5f55\u65e5\u5fd7&#xff0c;\u786e\u8ba4\u662f\u771f\u88ab\u626b\u4e86 \u5148\u522b","og_url":"https:\/\/www.wsisp.com\/helps\/113957.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-07T17:17:31+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261007171726-6ac67ea6e5700.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/113957.html","url":"https:\/\/www.wsisp.com\/helps\/113957.html","name":"\u670d\u52a1\u5668\u88ab\u53cd\u590d\u5c1d\u8bd5\u767b\u5f55\u4e4b\u540e\uff1afail2ban \u52a0\u5bc6\u94a5\u767b\u5f55\u7684\u4e94\u9053\u52a0\u56fa - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-07T17:17:31+00:00","dateModified":"2026-10-07T17:17:31+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/113957.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/113957.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/113957.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u670d\u52a1\u5668\u88ab\u53cd\u590d\u5c1d\u8bd5\u767b\u5f55\u4e4b\u540e\uff1afail2ban \u52a0\u5bc6\u94a5\u767b\u5f55\u7684\u4e94\u9053\u52a0\u56fa"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/113957","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=113957"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/113957\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/113954"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=113957"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=113957"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=113957"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=113957"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}