{"id":18011497,"url":"https://github.com/tmiland/csf-custom-regex","last_synced_at":"2025-03-26T15:32:56.381Z","repository":{"id":70814976,"uuid":"347512526","full_name":"tmiland/csf-custom-regex","owner":"tmiland","description":"enable CSF Firewall native fail2ban like support","archived":false,"fork":false,"pushed_at":"2022-05-08T09:49:49.000Z","size":111,"stargazers_count":6,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-22T02:04:10.991Z","etag":null,"topics":["abuse","abuse-detection","bind9","blocking","buster","csf","csf-firewall","debian","fail2ban","lfd","nginx","perl","postfix","regex","smtp","virtualmin"],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tmiland.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-14T00:46:15.000Z","updated_at":"2024-10-29T16:19:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"8be00ddc-aa77-4fca-b96e-a7899cc72d5c","html_url":"https://github.com/tmiland/csf-custom-regex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmiland%2Fcsf-custom-regex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmiland%2Fcsf-custom-regex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmiland%2Fcsf-custom-regex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmiland%2Fcsf-custom-regex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmiland","download_url":"https://codeload.github.com/tmiland/csf-custom-regex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245681601,"owners_count":20655231,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["abuse","abuse-detection","bind9","blocking","buster","csf","csf-firewall","debian","fail2ban","lfd","nginx","perl","postfix","regex","smtp","virtualmin"],"created_at":"2024-10-30T03:10:52.094Z","updated_at":"2025-03-26T15:32:56.376Z","avatar_url":"https://github.com/tmiland.png","language":"Perl","readme":"# csf custom regex\n enable CSF Firewall custom regex support\n\n### ***Work in progress***\n\nSee the script in action:\n\u003ca href=\"https://www.abuseipdb.com/user/28030\" title=\"AbuseIPDB is an IP address blacklist for webmasters and sysadmins to report IP addresses engaging in abusive behavior on their networks\" alt=\"AbuseIPDB Contributor Badge\"\u003e\n\t\u003cimg src=\"https://www.abuseipdb.com/contributor/28030.svg\" style=\"width: 401px;\"\u003e\n\u003c/a\u003e\n\nInspiration from: [enable CSF Firewall native fail2ban like support](https://community.centminmod.com/posts/62343/)\n\n## Installation\n\n```bash\n$ wget https://github.com/tmiland/csf-custom-regex/raw/master/csf_custom_regex.sh\n$ chmod +x csf_custom_regex.sh\n$ ./csf_custom_regex.sh --install\n```\n\n- Install option will download [regex.custom.pm](https://github.com/tmiland/csf-custom-regex/raw/master/regex.custom.pm)\n- Status option will run ```tail -f /var/log/lfd.log | grep 'LF_CUSTOMTRIGGER'```\n\nYou will see lines like: ```Mar 15 00:05:46 vps lfd[688]: (nginx_444) Nginx 444 [IP Adress] (CA/Canada/-): 5 in the last 3600 secs - *Blocked in csf* for 86400 secs [LF_CUSTOMTRIGGER]```\n\n**Logpaths are currently hardcoded to match Debian 10 with Virtualmin.**\n\n* If Virtualmin or CSF is not installed, you will get the question to install.\nThis will source the [Virtualmin install script](https://github.com/virtualmin/virtualmin-install) and [CSF installer script](https://github.com/tmiland/csf)\n\n## Tested on:\n\n* Debian 10\n\n## Compatibility and Requirements\n\n* Debian 9 and later\n  - Might add Compatibility on request \n* Virtualmin is required\n  * Might change in the future \n\n## Credits\n- Code is customized from these sources:\n  * [enable CSF Firewall native fail2ban like support](https://community.centminmod.com/posts/62343/)\n  * [Custom REGEX rules for CSF](https://forum.configserver.com/viewtopic.php?t=7517)\n  * [sillsdev/ops-ansible-common-roles](https://github.com/sillsdev/ops-ansible-common-roles/blob/master/csf_config/files/regex.custom.pm)\n  * [configserver](http://www.configserver.com)\n\n## Donations\n\u003ca href=\"https://www.buymeacoffee.com/tmiland\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" alt=\"Buy Me A Coffee\" style=\"height: 60px !important;width: 217px !important;\" \u003e\u003c/a\u003e\n- [PayPal me](https://paypal.me/milanddata)\n- [BTC] : 33mjmoPxqfXnWNsvy8gvMZrrcG3gEa3YDM\n\n## Web Hosting\n\nSign up for web hosting using this link, and receive $100 in credit over 60 days.\n\n[DigitalOcean](https://m.do.co/c/f1f2b475fca0)\n\n#### Disclaimer \n\n*** ***Use at own risk*** ***\n\n### License\n\n[![MIT License Image](https://upload.wikimedia.org/wikipedia/commons/thumb/0/0c/MIT_logo.svg/220px-MIT_logo.svg.png)](https://github.com/tmiland/csf-custom-regex/blob/master/LICENSE)\n\n[MIT License](https://github.com/tmiland/csf-custom-regex/blob/master/LICENSE)\n","funding_links":["https://www.buymeacoffee.com/tmiland","https://paypal.me/milanddata"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmiland%2Fcsf-custom-regex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmiland%2Fcsf-custom-regex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmiland%2Fcsf-custom-regex/lists"}