{"id":76,"date":"2021-02-20T05:49:06","date_gmt":"2021-02-20T10:49:06","guid":{"rendered":"https:\/\/www.tocobee.com\/?p=76"},"modified":"2021-02-20T05:51:48","modified_gmt":"2021-02-20T10:51:48","slug":"%e9%87%8d%e8%a3%9d-fail2ban","status":"publish","type":"post","link":"https:\/\/www.tocobee.com\/?p=76","title":{"rendered":"\u91cd\u88dd fail2ban"},"content":{"rendered":"<p>fail2ban \u597d\u7528\u4f46\u4e4b\u524d\u8dd1\u8d77\u4f86\u554f\u984c\u4e00\u5806,<\/p>\n<p>\u73fe\u5728\u624b\u52d5\u63db\u88dd\u65b0\u7248\u9806\u591a\u4e86. \u5b89\u88dd\u65b9\u6cd5<\/p>\n<p>\u53c3\u8003\u00a0<a href=\"https:\/\/github.com\/fail2ban\/fail2ban\/wiki\/How-to-install-or-upgrade-fail2ban-manually\">\u9019\u7bc7<\/a>\u00a0, \u65b0\u7248\u672c\u5728\u00a0<a href=\"https:\/\/github.com\/fail2ban\/fail2ban\/releases\">\u9019\u88e1<\/a><\/p>\n<pre><span class=\"pl-c1\">cd<\/span> \/tmp\/\r\n<span class=\"pl-c\"># 1) download deb package and signature:<\/span>\r\nwget <a class=\"linebreak\" href=\"https:\/\/github.com\/fail2ban\/fail2ban\/releases\/download\/0.11.2\/fail2ban_0.11.2-1.upstream1_all.deb\">https:\/\/github.com\/fail2ban\/fail2ban\/releases\/download\/0.11.2\/fail2ban_0.11.2-1.upstream1_all.deb<\/a> \\\r\n     <a class=\"linebreak\" href=\"https:\/\/github.com\/fail2ban\/fail2ban\/releases\/download\/0.11.2\/fail2ban_0.11.2-1.upstream1_all.deb.asc\">https:\/\/github.com\/fail2ban\/fail2ban\/releases\/download\/0.11.2\/fail2ban_0.11.2-1.upstream1_all.deb.asc<\/a>\r\n\r\n<span class=\"pl-c\"># 2) check signature (if you want to be sure file is unmodified):<\/span>\r\ngpg --verify fail2ban_0.11.2-1.upstream1_all.deb.asc fail2ban_0.11.2-1.upstream1_all.deb\r\n\r\n<span class=\"pl-c\"># 3) view details of the package:<\/span>\r\ndpkg -I fail2ban_0.11.2-1.upstream1_all.deb\r\n\r\n<span class=\"pl-c\"># 4) to ensure the upgrade run gentler (protocol of previous version may be incompatible), stop fail2ban before install:<\/span>\r\n<span class=\"pl-c\"># using service:<\/span>\r\nsudo service fail2ban stop\r\n<span class=\"pl-c\"># using client:<\/span>\r\nsudo fail2ban-client stop\r\n\r\n<span class=\"pl-c\"># 5a) either install package using dpkg (standalone package, don't regard dependencies):<\/span>\r\nsudo dpkg -i fail2ban_0.11.2-1.upstream1_all.deb\r\n<span class=\"pl-c\"># if the package introduces some \"broken\" dependencies (I don't think so in case of fail2ban which has few dependencies),<\/span>\r\n<span class=\"pl-c\"># to fix the unmet dependency issue, run this:<\/span>\r\nsudo apt -f install<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>fail2ban \u597d\u7528\u4f46\u4e4b\u524d\u8dd1\u8d77\u4f86\u554f\u984c\u4e00\u5806, \u73fe\u5728\u624b\u52d5\u63db\u88dd\u65b0\u7248\u9806\u591a\u4e86. \u5b89\u88dd\u65b9\u6cd5 \u53c3\u8003\u00a0\u9019\u7bc7\u00a0, \u65b0\u7248\u672c\u5728\u00a0\u9019\u88e1 cd \/tmp\/ # 1) download deb package and signature: wget https:\/\/github.com\/fail2ban\/fail2ban\/releases\/download\/0.11.2\/fail2ban_0.11.2-1.upstream1_all.deb \\ https:\/\/github.com\/fail2ban\/fail2ban\/releases\/download\/0.11.2\/fail2ban_0.11.2-1.upstream1_all.deb.asc # 2) check signature (if you want to be sure file is unmodified): gpg &#8211;verify fail2ban_0.11.2-1.upstream1_all.deb.asc fail2ban_0.11.2-1.upstream1_all.deb # 3) view details of the package: dpkg -I &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-76","post","type-post","status-publish","format-standard","hentry","category-2"],"_links":{"self":[{"href":"https:\/\/www.tocobee.com\/index.php?rest_route=\/wp\/v2\/posts\/76","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tocobee.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tocobee.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tocobee.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tocobee.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=76"}],"version-history":[{"count":1,"href":"https:\/\/www.tocobee.com\/index.php?rest_route=\/wp\/v2\/posts\/76\/revisions"}],"predecessor-version":[{"id":77,"href":"https:\/\/www.tocobee.com\/index.php?rest_route=\/wp\/v2\/posts\/76\/revisions\/77"}],"wp:attachment":[{"href":"https:\/\/www.tocobee.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=76"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tocobee.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=76"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tocobee.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=76"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}