{"id":1427,"date":"2020-02-03T11:39:00","date_gmt":"2020-02-03T10:39:00","guid":{"rendered":"https:\/\/www.alblog.it\/?p=1427"},"modified":"2020-01-22T12:43:54","modified_gmt":"2020-01-22T11:43:54","slug":"fail2ban-per-aggiungere-protezioni-ad-apache","status":"publish","type":"post","link":"https:\/\/www.alblog.it\/index.php\/2020\/02\/03\/fail2ban-per-aggiungere-protezioni-ad-apache\/","title":{"rendered":"fail2ban per aggiungere protezioni ad Apache"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"135\" height=\"130\" src=\"https:\/\/www.alblog.it\/wp-content\/images\/fail2ban_logo.png\" alt=\"\" class=\"wp-image-1428\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Se gi\u00e0 usate fail2ban per proteggere l'accesso ssh e avete anche un web server Apache installato <strong>\u00e8 una buona idea aggiungere alcuni protezioni<\/strong> che fail2ban \u00e8 in grado di offrire per apache.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ci sono gi\u00e0 diversi moduli pronti che possono essere attivati con poco sforzo. Basta aggiungere un file .conf in \/etc\/fail2ban\/jail.d con la parte di configurazione che modifica quella standard. Per esempio per aggiungere la <strong>protezione all'autenticazione<\/strong> di Apache il codice \u00e8<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[apache-auth] <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">enabled  = true<br> port     = http,https<br> logpath  = \/var\/log\/apache2\/error.log<br> maxretry = 3<br> findtime = 600<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ci sono anche altri moduli interessanti: apache-overflows apache-badbots php-url-fopen: <a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-protect-an-apache-server-with-fail2ban-on-ubuntu-14-04\">qui<\/a> trovate qualche dettaglio in pi\u00f9 oppure direttamente sul <a href=\"https:\/\/www.fail2ban.org\/wiki\/index.php\/Main_Page\">wiki di fail2ban<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Se gi\u00e0 usate fail2ban per proteggere l'accesso ssh e avete anche un web server Apache installato \u00e8 una buona idea aggiungere alcuni protezioni che fail2ban \u00e8 in grado di offrire per apache. Ci sono gi\u00e0 diversi moduli pronti che possono essere attivati con poco sforzo. Basta aggiungere un file .conf in \/etc\/fail2ban\/jail.d con la parte <a href=\"https:\/\/www.alblog.it\/index.php\/2020\/02\/03\/fail2ban-per-aggiungere-protezioni-ad-apache\/\" class=\"more-link\">...continua a leggere<span class=\"screen-reader-text\"> \"fail2ban per aggiungere protezioni ad Apache\"<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2],"tags":[466,471,166,292,502,457],"class_list":["post-1427","post","type-post","status-publish","format-standard","category-varie","tag-apache","tag-hacking","tag-linux","tag-password","tag-php","tag-sicurezza","h-entry","hentry","h-as-article"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.alblog.it\/index.php\/wp-json\/wp\/v2\/posts\/1427","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.alblog.it\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.alblog.it\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.alblog.it\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.alblog.it\/index.php\/wp-json\/wp\/v2\/comments?post=1427"}],"version-history":[{"count":0,"href":"https:\/\/www.alblog.it\/index.php\/wp-json\/wp\/v2\/posts\/1427\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.alblog.it\/index.php\/wp-json\/wp\/v2\/media?parent=1427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.alblog.it\/index.php\/wp-json\/wp\/v2\/categories?post=1427"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.alblog.it\/index.php\/wp-json\/wp\/v2\/tags?post=1427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}