mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-03-15 17:37:22 +01:00
Add own changes
This commit is contained in:
5
conf/cron/local_clean_mail
Normal file
5
conf/cron/local_clean_mail
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
doveadm expunge -A mailbox Trash savedbefore 120d
|
||||
doveadm expunge -A mailbox Spam savedbefore 120d
|
||||
|
||||
24
conf/fail2ban/filter.d/nginx-badbots.conf
Normal file
24
conf/fail2ban/filter.d/nginx-badbots.conf
Normal file
@@ -0,0 +1,24 @@
|
||||
# Fail2Ban configuration file
|
||||
#
|
||||
# Regexp to catch known spambots and software alike. Please verify
|
||||
# that it is your intent to block IPs which were driven by
|
||||
# above mentioned bots.
|
||||
|
||||
|
||||
[Definition]
|
||||
|
||||
badbotscustom = EmailCollector|WebEMailExtrac|TrackBack/1\.02|sogou music spider|(?:Mozilla/\d+\.\d+ )?Jorgee
|
||||
badbots = Atomic_Email_Hunter/4\.0|atSpider/1\.0|autoemailspider|bwh3_user_agent|China Local Browse 2\.6|ContactBot/0\.2|ContentSmartz|DataCha0s/2\.0|DBrowse 1\.4b|DBrowse 1\.4d|Demo Bot DOT 16b|Demo Bot Z 16b|DSurf15a 01|DSurf15a 71|DSurf15a 81|DSurf15a VA|EBrowse 1\.4b|Educate Search VxB|EmailSiphon|EmailSpider|EmailWolf 1\.00|ESurf15a 15|ExtractorPro|Franklin Locator 1\.8|FSurf15a 01|Full Web Bot 0416B|Full Web Bot 0516B|Full Web Bot 2816B|Guestbook Auto Submitter|Industry Program 1\.0\.x|ISC Systems iRc Search 2\.1|IUPUI Research Bot v 1\.9a|LARBIN-EXPERIMENTAL \(efp@gmx\.net\)|LetsCrawl\.com/1\.0 \+http\://letscrawl\.com/|Lincoln State Web Browser|LMQueueBot/0\.2|LWP\:\:Simple/5\.803|Mac Finder 1\.0\.xx|MFC Foundation Class Library 4\.0|Microsoft URL Control - 6\.00\.8xxx|Missauga Locate 1\.0\.0|Missigua Locator 1\.9|Missouri College Browse|Mizzu Labs 2\.2|Mo College 1\.9|MVAClient|Mozilla/2\.0 \(compatible; NEWT ActiveX; Win32\)|Mozilla/3\.0 \(compatible; Indy Library\)|Mozilla/3\.0 \(compatible; scan4mail \(advanced version\) http\://www\.peterspages\.net/?scan4mail\)|Mozilla/4\.0 \(compatible; Advanced Email Extractor v2\.xx\)|Mozilla/4\.0 \(compatible; Iplexx Spider/1\.0 http\://www\.iplexx\.at\)|Mozilla/4\.0 \(compatible; MSIE 5\.0; Windows NT; DigExt; DTS Agent|Mozilla/4\.0 efp@gmx\.net|Mozilla/5\.0 \(Version\: xxxx Type\:xx\)|NameOfAgent \(CMS Spider\)|NASA Search 1\.0|Nsauditor/1\.x|PBrowse 1\.4b|PEval 1\.4b|Poirot|Port Huron Labs|Production Bot 0116B|Production Bot 2016B|Production Bot DOT 3016B|Program Shareware 1\.0\.2|PSurf15a 11|PSurf15a 51|PSurf15a VA|psycheclone|RSurf15a 41|RSurf15a 51|RSurf15a 81|searchbot admin@google\.com|ShablastBot 1\.0|snap\.com beta crawler v0|Snapbot/1\.0|Snapbot/1\.0 \(Snap Shots, \+http\://www\.snap\.com\)|sogou develop spider|Sogou Orion spider/3\.0\(\+http\://www\.sogou\.com/docs/help/webmasters\.htm#07\)|sogou spider|Sogou web spider/3\.0\(\+http\://www\.sogou\.com/docs/help/webmasters\.htm#07\)|sohu agent|SSurf15a 11 |TSurf15a 11|Under the Rainbow 2\.2|User-Agent\: Mozilla/4\.0 \(compatible; MSIE 6\.0; Windows NT 5\.1\)|VadixBot|WebVulnCrawl\.unknown/1\.0 libwww-perl/5\.803|Wells Search II|WEP Search 00
|
||||
|
||||
failregex = ^<HOST> -.*"(GET|POST|HEAD).*HTTP.*"(?:%(badbots)s|%(badbotscustom)s)"$
|
||||
|
||||
ignoreregex =
|
||||
|
||||
datepattern = ^[^\[]*\[({DATE})
|
||||
{^LN-BEG}
|
||||
|
||||
# DEV Notes:
|
||||
# List of bad bots fetched from http://www.user-agents.org
|
||||
# Generated on Thu Nov 7 14:23:35 PST 2013 by files/gen_badbots.
|
||||
#
|
||||
# Author: Yaroslav Halchenko
|
||||
237
conf/fail2ban/filter.d/webexploits.conf
Normal file
237
conf/fail2ban/filter.d/webexploits.conf
Normal file
@@ -0,0 +1,237 @@
|
||||
# Fail2Ban Web Exploits Filter
|
||||
# Author & Copyright: Mitchell Krog - mitchellkrog@gmail.com
|
||||
# REPO: https://github.com/mitchellkrogza/Fail2Ban.WebExploits
|
||||
# V0.1.27
|
||||
# Last Updated: Tue May 8 11:08:42 SAST 2018
|
||||
|
||||
[Definition]
|
||||
|
||||
|
||||
failregex = ^<HOST> -.*(GET|POST|HEAD).*(/\.git/config)
|
||||
^<HOST> -.*(GET|POST).*/administrator/index\.php.*500
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/:8880/)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/1\.sql)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/addons/theme/stv1/_static/image/favicon\.ico)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/addons/theme/stv1/_static/ts2/layout\.css)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/addons/theme/stv2/_static/ts2/layout\.css)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/Admin/Common/HelpLinks\.xml)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/admin-console)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/admin/inc/xml\.xslt)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/administrator/components/com_xcloner-backupandrestore/index2\.php)
|
||||
# ^<HOST> -.*(GET|POST|HEAD).*(/administrator/index\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/administrator/manifests/files/joomla\.xml)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/admin/mysql2/index\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/admin/mysql/index\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/admin/phpMyAdmin/index\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/admin/pma/index\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/admin/PMA/index\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/admin/SouthidcEditor/ButtonImage/standard/componentmenu\.gif)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/admin/SouthidcEditor/Dialog/dialog\.js)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/admin/SouthidcEditor/ewebeditor\.asp)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/API/DW/Dwplugin/SystemLabel/SiteConfig\.htm)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/API/DW/Dwplugin/TemplateManage/login_site\.htm)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/API/DW/Dwplugin/TemplateManage/manage_site\.htm)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/API/DW/Dwplugin/TemplateManage/save_template\.htm)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/API/DW/Dwplugin/ThirdPartyTags/SiteFactory\.xml)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/api/jsonws/invoke)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/app/home/skins/default/style\.css)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/app/js/source/wcmlib/WCMConstants\.js)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/apple-app-site-association)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/app/Tpl/fanwe_1/js/)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/app/etc/local\.xml)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/Autodiscover/Autodiscover\.xml)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/_asterisk/)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/backup\.sql)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/bencandy\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/blog/administrator/index\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/boaform/admin/formLogin)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/cardamom\.html)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/cgi-bin/php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/cgi-bin/php5)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/cgi/common\.cgi)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/CGI/Execute)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/check\.proxyradar\.com/azenv\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/ckeditor/ckfinder/ckfinder\.html)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/ckeditor/ckfinder/install\.txt)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/ckfinder/ckfinder\.html)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/ckfinder/install\.txt)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/ckupload\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/claroline/phpMyAdmin/index\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/clases\.gone\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/cms/administrator)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/command\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/components/com_adsmanager/js/fullnoconflict\.js)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/components/com_b2jcontact/css/b2jcontact\.css)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/components/com_b2jcontact/router\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/components/com_foxcontact/js/jtext\.js)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/components/com_sexycontactform/assets/js/index\.html)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/console/)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/console/auth/reg_newuser\.jsp)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/console/include/not_login\.htm)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/console/js/CTRSRequestParam\.js)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/console/js/CWCMDialogHead\.js)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/customer/account/login/referer/)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/currentsetting\.htm)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/CuteSoft_Client/CuteEditor/Help/default\.htm)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/CuteSoft_Client/CuteEditor/ImageEditor/listfiles\.aspx)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/CuteSoft_Client/CuteEditor/Images/log\.gif)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/data/admin/ver\.txt)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/database\.sql)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/data\.sql)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/datacenter/downloadApp/showDownload\.do)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/db/)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/dbadmin/)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/dbadmin/index\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/db_backup\.sql)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/dbdump\.sql)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/db\.sql)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/db/index\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/dump\.sql)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/deptWebsiteAction\.do)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/eams/static/scripts/grade/course/input\.js)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/editor/js/fckeditorcode_ie\.js)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(\.env\.dev\.local)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/\.env\.development\.local)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/\.env\.prod\.local)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/\.env\.production\.local)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/examples/file-manager\.html)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/getcfg\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/get_password\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/\.git/info/)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/Hello\.World)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/hndUnblock\.cgi)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/images/login9/login_33\.jpg)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/include/dialog/config\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/include/install_ocx\.aspx)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/index\.action)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/ip_js\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/issmall/)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/jenkins/script)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/jenkins/login)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/jm-ajax/upload_file/)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/jmx-console)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/js/tools\.js)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/letrokart.sql)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/libraries/sfn\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/localhost\.sql)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(login\.destroy\.session)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/login/Jeecms\.do)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/logo_img\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/maintlogin\.jsp)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/manager/html)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/manager/status)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/magmi/conf/magmi\.ini)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/master/login\.aspx)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/media/com_hikashop/js/hikashop\.js)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/modules/attributewizardpro/config\.xml)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/modules/columnadverts/config\.xml)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/modules/fieldvmegamenu/config\.xml)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/modules/homepageadvertise2/config\.xml)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/modules/homepageadvertise/config\.xml)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/modules/mod_simplefileuploadv1\.3/elements/udd\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/modules/pk_flexmenu/config\.xml)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/modules/pk_vertflexmenu/config\.xml)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/modules/wdoptionpanel/config\.xml)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/msd)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/msd1\.24\.4)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/msd1\.24stable)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(mstshash=NCRACK_USER)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/muieblackcat)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/myadmin2/index\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/myadmin/index\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/myadmin/scripts/setup\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/MyAdmin/scripts/setup\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/mysql-admin/index\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/mysqladmin/index\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/mysqldumper)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/mySqlDumper)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/MySQLDumper)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/mysqldump\.sql)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/mysql\.sql)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/phpadmin/index\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/phpma/index\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/phpMyadmin_bak/index\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/phpMyAdmin/index\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/phpMyAdmin/phpMyAdmin/index\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/phpMyAdmin/scripts/setup\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/plugins/anchor/anchor\.js)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/plugins/filemanager/filemanager/js)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/plus/download\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/plus/heightsearch\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/plus/rssmap\.html)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/plus/sitemap\.html)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/pma/)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/PMA/)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/PMA2/index\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/pma/index\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/PMA/index\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/pmamy2/index\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/pmamy/index\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/pma-old/index\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/pma/scripts/setup\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/pmd/index\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/privacy\.txt)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/resources/style/images/login/btn\.png)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/Scripts/jquery/maticsoft\.jquery\.min\.js)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/script/valid_formdata\.js)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/siteserver/login\.aspx)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/siteserver/upgrade/default\.aspx)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/site\.sql)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/sql\.sql)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(soap:Envelope)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/solr/admin/info/system)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/stalker_portal/c)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/stalker_portal/server/adm/tv-channels/iptv-list-json)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/stalker_portal/server/adm/users/users-list-json)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/stssys\.htm)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/sys\.cache\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/system/assets/jquery/jquery-2\.x\.min\.js)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/system_api\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/template/1/bluewise/_files/jspxcms\.css)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/templates/jsn_glass_pro/ext/hikashop/jsn_ext_hikashop\.css)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/test_404_page/)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/test_for_404/)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/temp\.sql)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/translate\.sql)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(Test Wuz Here)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/tmUnblock\.cgi)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/tools/phpMyAdmin/index\.ph)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/uc_server/control/admin/db\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/upload/bank-icons/)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/UserCenter/css/admin/bgimg/admin_all_bg\.png)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/\.user\.ini)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(\.bitcoin)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(wallet\.dat)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(bitcoin\.dat)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/magento2/admin)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/user/register?element_parents=account)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/user/themes/antimatter/js/antimatter\.js)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/user/themes/antimatter/js/modernizr\.custom\.71422\.js)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/user/themes/antimatter/js/slidebars\.min\.js)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/users\.sql)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/vendor/phpunit/phpunit)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/w00tw00t)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/webbuilder/script/locale/wb-lang-zh_CN\.js)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/web-console)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/webdav)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/web/phpMyAdmin/index\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/whir_system/login\.aspx)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/whir_system/module/security/login\.aspx)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/wls-wsat/CoordinatorPortType)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/wpbase/url\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/wp-content/plugins/)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/wp-content/uploads/dump\.sql)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/wp-includes/wlwmanifest\.xml)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/wp-login\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(/www/phpMyAdmin/index\.php)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(\x00Cookie:)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(\x22cache_name_function)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(\x22JDatabaseDriverMysqli)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(\x22JSimplepieFactory)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(\x22sanitize)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(\x22SimplePie)
|
||||
^<HOST> -.*(GET|POST|HEAD).*(\x5C0disconnectHandlers)
|
||||
^<HOST> -.*(GET).*(\.\./wp-config.php)
|
||||
|
||||
|
||||
ignoreregex =
|
||||
17
conf/fail2ban/jail.d/geoipblock.conf
Normal file
17
conf/fail2ban/jail.d/geoipblock.conf
Normal file
@@ -0,0 +1,17 @@
|
||||
[geoipblocknginx]
|
||||
enabled = true
|
||||
port = http,https
|
||||
filter = nginx-geoipblock
|
||||
logpath = /var/log/nginx/geoipblock.log
|
||||
maxretry = 1
|
||||
findtime = 120m
|
||||
bantime = 15m
|
||||
|
||||
[geoipblockssh]
|
||||
enabled = true
|
||||
port = ssh
|
||||
filter = ssh-geoipblock
|
||||
logpath = /var/log/syslog
|
||||
maxretry = 1
|
||||
findtime = 120m
|
||||
bantime = 15m
|
||||
8
conf/fail2ban/jail.d/webexploits.conf
Normal file
8
conf/fail2ban/jail.d/webexploits.conf
Normal file
@@ -0,0 +1,8 @@
|
||||
[webexploits]
|
||||
enabled = true
|
||||
port = http,https
|
||||
filter = webexploits
|
||||
logpath = /var/log/nginx/access.log
|
||||
maxretry = 2
|
||||
findtime = 240m
|
||||
bantime = 60m
|
||||
@@ -5,13 +5,16 @@
|
||||
# Whitelist our own IP addresses. 127.0.0.1/8 is the default. But our status checks
|
||||
# ping services over the public interface so we should whitelist that address of
|
||||
# ours too. The string is substituted during installation.
|
||||
ignoreip = 127.0.0.1/8 PUBLIC_IP
|
||||
ignoreip = 127.0.0.1/8 PUBLIC_IP ADMIN_HOME_IP
|
||||
bantime = 15m
|
||||
findtime = 120m
|
||||
maxretry = 4
|
||||
|
||||
[dovecot]
|
||||
enabled = true
|
||||
filter = dovecotimap
|
||||
logpath = /var/log/mail.log
|
||||
findtime = 30
|
||||
findtime = 2m
|
||||
maxretry = 20
|
||||
|
||||
[miab-management]
|
||||
@@ -20,7 +23,7 @@ filter = miab-management-daemon
|
||||
port = http,https
|
||||
logpath = /var/log/syslog
|
||||
maxretry = 20
|
||||
findtime = 30
|
||||
findtime = 15m
|
||||
|
||||
[miab-munin]
|
||||
enabled = true
|
||||
@@ -28,7 +31,7 @@ port = http,https
|
||||
filter = miab-munin
|
||||
logpath = /var/log/nginx/access.log
|
||||
maxretry = 20
|
||||
findtime = 30
|
||||
findtime = 15m
|
||||
|
||||
[miab-owncloud]
|
||||
enabled = true
|
||||
@@ -36,7 +39,7 @@ port = http,https
|
||||
filter = miab-owncloud
|
||||
logpath = STORAGE_ROOT/owncloud/nextcloud.log
|
||||
maxretry = 20
|
||||
findtime = 120
|
||||
findtime = 15m
|
||||
|
||||
[miab-postfix587]
|
||||
enabled = true
|
||||
@@ -44,7 +47,7 @@ port = 587
|
||||
filter = miab-postfix-submission
|
||||
logpath = /var/log/mail.log
|
||||
maxretry = 20
|
||||
findtime = 30
|
||||
findtime = 2m
|
||||
|
||||
[miab-roundcube]
|
||||
enabled = true
|
||||
@@ -52,11 +55,13 @@ port = http,https
|
||||
filter = miab-roundcube
|
||||
logpath = /var/log/roundcubemail/errors.log
|
||||
maxretry = 20
|
||||
findtime = 30
|
||||
findtime = 15m
|
||||
|
||||
[recidive]
|
||||
enabled = true
|
||||
maxretry = 10
|
||||
bantime = 2w
|
||||
findtime = 3d
|
||||
action = iptables-allports[name=recidive]
|
||||
# In the recidive section of jail.conf the action contains:
|
||||
#
|
||||
@@ -74,5 +79,8 @@ enabled = true
|
||||
|
||||
[sshd]
|
||||
enabled = true
|
||||
maxretry = 7
|
||||
maxretry = 4
|
||||
bantime = 3600
|
||||
mode = aggressive
|
||||
|
||||
|
||||
|
||||
28
conf/nginx-webonlydomains.conf
Normal file
28
conf/nginx-webonlydomains.conf
Normal file
@@ -0,0 +1,28 @@
|
||||
# Expose this directory as static files.
|
||||
root $ROOT;
|
||||
index index.html index.htm;
|
||||
|
||||
location = /robots.txt {
|
||||
log_not_found off;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
location = /favicon.ico {
|
||||
log_not_found off;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
# ADDITIONAL DIRECTIVES HERE
|
||||
|
||||
# Disable viewing dotfiles (.htaccess, .svn, .git, etc.)
|
||||
# This block is placed at the end. Nginx's precedence rules means this block
|
||||
# takes precedence over all non-regex matches and only regex matches that
|
||||
# come after it (i.e. none of those, since this is the last one.) That means
|
||||
# we're blocking dotfiles in the static hosted sites but not the FastCGI-
|
||||
# handled locations for Nextcloud (which serves user-uploaded files that might
|
||||
# have this pattern, see #414) or some of the other services.
|
||||
location ~ /\.(ht|svn|git|hg|bzr) {
|
||||
log_not_found off;
|
||||
access_log off;
|
||||
deny all;
|
||||
}
|
||||
Reference in New Issue
Block a user