{"id":13446327,"url":"https://github.com/Sean-Der/fail2web","last_synced_at":"2025-03-21T06:31:07.210Z","repository":{"id":17962256,"uuid":"20952205","full_name":"Sean-Der/fail2web","owner":"Sean-Der","description":"a fail2ban GUI powered by fail2rest","archived":false,"fork":false,"pushed_at":"2017-04-25T20:50:20.000Z","size":545,"stargazers_count":557,"open_issues_count":8,"forks_count":49,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-03-14T22:07:06.510Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Sean-Der.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-18T06:46:04.000Z","updated_at":"2025-03-14T03:42:53.000Z","dependencies_parsed_at":"2022-07-10T07:01:04.026Z","dependency_job_id":null,"html_url":"https://github.com/Sean-Der/fail2web","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sean-Der%2Ffail2web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sean-Der%2Ffail2web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sean-Der%2Ffail2web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sean-Der%2Ffail2web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sean-Der","download_url":"https://codeload.github.com/Sean-Der/fail2web/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244750594,"owners_count":20504087,"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":[],"created_at":"2024-07-31T05:00:51.413Z","updated_at":"2025-03-21T06:31:06.872Z","avatar_url":"https://github.com/Sean-Der.png","language":"JavaScript","readme":"# fail2web\n\nfail2web is a [fail2ban](http://www.fail2ban.org) GUI that communicates with a fail2ban instance via [fail2rest](https://github.com/Sean-Der/fail2rest)\n\nfail2ban allows you to administer the following\n\n* **Failregex** - Delete and add new failregexes\n* **Banned IPs** - Ban and Unban IP address\n* **Per Jail Config** - Configure find time, max retry and usedns per jail, and view the filelist per jail\n* **Alerting** - Notifications when an IP address is banned and unbanned with a user configurable time span\n* **Regex Testing** - Testing ignore+fail regexes on your current logs to quickly build and debug regexes\n* **Reporting** - Expose the time that an IP address was banned, and show trends via visualizations\n\n![alt text](http://i.imgur.com/Duy0aKM.gif \"fail2web Demo\")\n![alt text](http://i.imgur.com/vDKYnql.gif \"fail2web Demo2\")\n\n## Requirements\nfail2web communicates with fail2ban via a REST server called [fail2rest](https://github.com/Sean-Der/fail2rest)\nbefore fail2web can be used you will need an operational fail2rest instance.\n\nfail2web has been reported to work on IE8 or newer, but is not actively tested on older platforms.\n\n## Installing\nA guide to install fail2web on Ubuntu can be found [here](http://siobud.com/blog/installing-fail2web)\n\nIf you find any errors open an PR against the markdown [here](https://github.com/Sean-Der/sioBuD.com/blob/master/lisp/blog/installing-fail2web.md)\n\n### Production\nTo install the production build of fail2web download the newest release. A fully built release will then be in the\n`web` directory. Now you just need to serve the index.html, you can find further instructions [here](https://github.com/Sean-Der/fail2web#deploying-and-configuration)\n\n### Development\n* **Install build requirements**\n    * nodejs and npm for browserify (not a runtime requirement) [Installing Node.js](https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager)\n* **Install libraries**\n    * execute `npm install` in the root of the fail2web repository\n* **Building**\n    * When writing code run `npm run watch` this will rebuild web/bundle.js on every change\n    * When deploying run `npm run build` this will build once and exit\n\n## Deploying and Configuration\nfail2web is best accessed via a HTTP server, you can find example HTTP server configs [here](https://github.com/Sean-Der/fail2web/tree/master/http-configs)\n\nFail2web has only one configuration option available via config.json in the root of the web folder.\nThis config option allows you to specify the path to your fail2rest handler. Currently the config.json uses /api/\nwhich is what all the example HTTP configs are configured to do.\n\n## Security\nIt is very important that you configured fail2rest correctly, a public facing fail2rest server could be very dangerous\n(someone could add inclusive regexes, remove themselves from the banned IP lists etc..)\n\nOut of the box fail2rest has no authentication, and I have no plans of rolling my own authentication.\n\n### HTTP Basic Auth\nThe HTTP configs are both set to use HTTP basic auth, this and SSL should be the absolute minimum security\nrequirements. In both HTTP configs you will see a placeholder with the label of `YOUR_HTPASSWD_FILE`\n\nTo generate a HTTPASSWD file you can use the `htpasswd` util distributed with Apache HTTPD\nand `htpasswd -c YOUR_HTPASSWD_FILE USERNAME` will create it.\n\n### SSH Tunnel\nI also recommend only serving fail2web/fail2rest on loopback only. You would access the server via a\nSSH tunnel, you can find more info [Here](http://www.revsys.com/writings/quicktips/ssh-tunnel.html)\n\n## Getting Help\nPlease make a GitHub issue, this will allow others in the future to find the issue in the future.\n\nMost of the time I will not be able to respond to emails in a timely manner, however with GitHub issues I try\nmy best to keep the count 0.\n\n## License\nThe MIT License (MIT)\n\nCopyright (c) 2014 Sean DuBois\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSean-Der%2Ffail2web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSean-Der%2Ffail2web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSean-Der%2Ffail2web/lists"}