{"id":19501,"date":"2017-04-09T06:56:24","date_gmt":"2017-04-08T22:56:24","guid":{"rendered":"https:\/\/2blog.ilc.edu.tw\/25793\/2017\/04\/09\/proxmox-%e8%a7%a3%e6%b1%ba%e5%9c%a8-centos-7-%e4%b8%8a%e5%95%9f%e5%8b%95-fail2ban-%e5%87%ba%e7%8f%be%e7%9a%84%e9%8c%af%e8%aa%a4%e8%a8%8a%e6%81%af\/"},"modified":"2017-04-09T06:56:24","modified_gmt":"2017-04-08T22:56:24","slug":"proxmox-%e8%a7%a3%e6%b1%ba%e5%9c%a8-centos-7-%e4%b8%8a%e5%95%9f%e5%8b%95-fail2ban-%e5%87%ba%e7%8f%be%e7%9a%84%e9%8c%af%e8%aa%a4%e8%a8%8a%e6%81%af","status":"publish","type":"post","link":"https:\/\/2blog.ilc.edu.tw\/25793\/2017\/04\/09\/proxmox-%e8%a7%a3%e6%b1%ba%e5%9c%a8-centos-7-%e4%b8%8a%e5%95%9f%e5%8b%95-fail2ban-%e5%87%ba%e7%8f%be%e7%9a%84%e9%8c%af%e8%aa%a4%e8%a8%8a%e6%81%af\/","title":{"rendered":"Proxmox &#8211; \u89e3\u6c7a\u5728 CentOS 7 \u4e0a\u555f\u52d5 fail2ban \u51fa\u73fe\u7684\u932f\u8aa4\u8a0a\u606f"},"content":{"rendered":"<p>\u555f\u52d5 fail2ban \u51fa\u73fe\u932f\u8aa4\u8a0a\u606f<br \/># <span style=\"color: #ff0000;\">systemctl status fail2ban<\/span><br \/><span style=\"color: #0000ff;\">\u25cf fail2ban.service &#8211; Fail2Ban Service<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0 Loaded: loaded (\/usr\/lib\/systemd\/system\/fail2ban.service; enabled; vendor preset: disabled)<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0 Active: failed (Result: start-limit) since Fri 2017-02-17 12:46:16 CST; 2min 55s ago<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0\u00a0\u00a0 Docs: man:fail2ban(1)<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 Process: 972 ExecStart=\/usr\/bin\/fail2ban-client -x start (code=exited, status=255)<\/span><\/p>\n<p><span style=\"color: #0000ff;\">Feb 17 12:46:16 NPC11 systemd[1]: Failed to start Fail2Ban Service.<\/span><br \/><span style=\"color: #0000ff;\">Feb 17 12:46:16 NPC11 systemd[1]: Unit fail2ban.service entered failed state.<\/span><br \/><span style=\"color: #0000ff;\">Feb 17 12:46:16 NPC11 systemd[1]: fail2ban.service failed.<\/span><br \/><span style=\"color: #0000ff;\">Feb 17 12:46:16 NPC11 systemd[1]: fail2ban.service holdoff time over, sche&#8230;t.<\/span><br \/><span style=\"color: #0000ff;\">Feb 17 12:46:16 NPC11 systemd[1]: start request repeated too quickly for f&#8230;ce<\/span><br \/><span style=\"color: #0000ff;\">Feb 17 12:46:16 NPC11 systemd[1]: Failed to start Fail2Ban Service.<\/span><br \/><span style=\"color: #0000ff;\">Feb 17 12:46:16 NPC11 systemd[1]: Unit fail2ban.service entered failed state.<\/span><br \/><span style=\"color: #0000ff;\">Feb 17 12:46:16 NPC11 systemd[1]: fail2ban.service failed.<\/span><br \/><span style=\"color: #0000ff;\">Hint: Some lines were ellipsized, use -l to show in full.<\/span><\/p>\n<p><span style=\"color: #0000ff;\"><span style=\"color: #000000;\">\u6aa2\u67e5<\/span><span style=\"color: #0000ff;\"> \/var\/log\/message<\/span> <span style=\"color: #000000;\">\u4e2d\u7684\u7d00\u9304<\/span><br \/># <span style=\"color: #ff0000;\">grep -i fail2ban \/var\/log\/message<br \/><\/span>Feb 17 04:46:15 NPC11 systemd: Starting Fail2Ban Service&#8230;<\/span><br \/><span style=\"color: #0000ff;\">Feb 17 04:46:15 NPC11 <span style=\"color: #ff0000;\">fail2ban-client: ERROR\u00a0 There is no directory \/var\/run\/fail2ban to contain the socket file \/var\/run\/fail2ban\/fail2ban.sock.<\/span><\/span><br \/><span style=\"color: #0000ff;\">Feb 17 04:46:15 NPC11 systemd: fail2ban.service: control process exited, code=exited status=255<\/span><br \/><span style=\"color: #0000ff;\">Feb 17 04:46:15 NPC11 systemd: Failed to start Fail2Ban Service.<\/span><br \/><span style=\"color: #0000ff;\">Feb 17 04:46:15 NPC11 systemd: Unit fail2ban.service entered failed state.<\/span><br \/><span style=\"color: #0000ff;\">Feb 17 04:46:15 NPC11 systemd: fail2ban.service failed.<\/span><\/p>\n<p>\u770b\u8d77\u4f86\u4f3c\u4e4e\u662f\u5728 <span style=\"color: #0000ff;\">\/var\/run\/fail2ban<\/span> \u76ee\u9304\u4e0b\u627e\u4e0d\u5230 fail2ban.sock \u9019\u4e00\u500b\u6a94\u6848<br \/>[@more@]\u89e3\u6c7a\u65b9\u5f0f\uff1a<br \/>1. \u5efa\u7acb\u76ee\u9304<br \/># <span style=\"color: #ff0000;\">mkdir \/var\/run\/fail2ban<\/span><\/p>\n<p>2. \u91cd\u65b0\u555f\u52d5 fail2ban \u5c31\u6b63\u5e38\u4e86\uff01<br \/># <span style=\"color: #ff0000;\">systemctl enable fail2ban.service;systemctl start fail2ban.service<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u555f\u52d5 fail2ban \u51fa\u73fe\u932f\u8aa4\u8a0a\u606f# systemctl status fail2ban\u25cf fail2ban &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/2blog.ilc.edu.tw\/25793\/2017\/04\/09\/proxmox-%e8%a7%a3%e6%b1%ba%e5%9c%a8-centos-7-%e4%b8%8a%e5%95%9f%e5%8b%95-fail2ban-%e5%87%ba%e7%8f%be%e7%9a%84%e9%8c%af%e8%aa%a4%e8%a8%8a%e6%81%af\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008Proxmox &#8211; \u89e3\u6c7a\u5728 CentOS 7 \u4e0a\u555f\u52d5 fail2ban \u51fa\u73fe\u7684\u932f\u8aa4\u8a0a\u606f\u3009<\/span><\/a><\/p>\n","protected":false},"author":55,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[117,191],"tags":[],"class_list":["post-19501","post","type-post","status-publish","format-standard","hentry","category-c-78462","category-c-104943"],"meta_key":{"_pingme":["1"],"_encloseme":["1"],"lt_post_id":["686284"]},"_links":{"self":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/19501"}],"collection":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/comments?post=19501"}],"version-history":[{"count":0,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/19501\/revisions"}],"wp:attachment":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/media?parent=19501"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/categories?post=19501"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/tags?post=19501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}