sean-der / fail2web Goto Github PK
View Code? Open in Web Editor NEWa fail2ban GUI powered by fail2rest
a fail2ban GUI powered by fail2rest
Currently we have no error handling mechanism, and there are a couple of program flows that would benefit from it.
You should be able to run a quick WHOIS report per BannedIP address, it should open up in a modal that just gives the output from the authoritative DNS server
Hey, the link returns 404, is it planned to return the installation instructions? Or maybe someone knows where to find these instructions? I got on the fail2web page
502 Bad Gateway - Couldn't contact fail2rest
and
Sep 10 16:17:07 server.net fail2rest[22761]: /home/username/go/src/github.com/gorilla/mux/mux.go:210 +0xcd
Sep 10 16:17:07 server.net fail2rest[22761]: net/http.(*ServeMux).ServeHTTP(0xc9d420, 0x8bedc0, 0xc42012a8c0, 0xc4201b6200)
Sep 10 16:17:07 server.net fail2rest[22761]: /usr/lib/go-1.10/src/net/http/server.go:2340 +0x130
Sep 10 16:17:07 server.net fail2rest[22761]: net/http.serverHandler.ServeHTTP(0xc420072f70, 0x8bedc0, 0xc42012a8c0, 0xc4201b6200)
Sep 10 16:17:07 server.net fail2rest[22761]: /usr/lib/go-1.10/src/net/http/server.go:2697 +0xbc
Sep 10 16:17:07 server.net fail2rest[22761]: net/http.(*conn).serve(0xc4201119a0, 0x8bf0c0, 0xc420194b40)
Sep 10 16:17:07 server.net fail2rest[22761]: /usr/lib/go-1.10/src/net/http/server.go:1830 +0x651
Sep 10 16:17:07 server.net fail2rest[22761]: created by net/http.(*Server).Serve
Sep 10 16:17:07 server.net fail2rest[22761]: /usr/lib/go-1.10/src/net/http/server.go:2798 +0x27b```
Hello,
Thank you for this great app :)
We just upgraded some old servers from Debian 9 up to Debian 11 with fail2web installed.
service fail2rest is active (running)
But the fail2web interface displays the following error :
invalid pickle version
It seems to be related to the python version, but not sure...
Could anyone please help us to solve this problem ?
Thank you very much :)
Mathieu.
Add a global config that will auto-refresh a jail every N seconds, also give desktop notifications if a new IP has been banned.
Write a short intro on
Implement some basic line graphs to show trends of bans/fails
Hello,
First of all, I would like to commend you for creating an awesome tool with a stunning objective! I'm just a beginner, novice when it comes to Linux. Yet, it's a good thing that I have installed fail2ban manually. Now, how can I use this script?
By the way, I installed fail2ban 0.9.0.
Thanks.
Hi,
In the installing section of the readme, the link https://www.phillmoore.com/9-programming/7-setting-up-fail2web-with-apache seems to be dead.
Do you know where to find the doc to install your web interface please ?
[Error] Error: [$injector:modulerr] Failed to instantiate module fail2web due to:
[$injector:nomod] Module 'fail2web' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.3.2/$injector/nomod?p0=fail2web
http://fail2web.repziw4.de/bundle.js:708:32
http://fail2web.repziw4.de/bundle.js:2392:32
ensure@http://fail2web.repziw4.de/bundle.js:2316:45
module@http://fail2web.repziw4.de/bundle.js:2390:20
http://fail2web.repziw4.de/bundle.js:4658:35
forEach@http://fail2web.repziw4.de/bundle.js:967:24
loadModules@http://fail2web.repziw4.de/bundle.js:4642:12
createInjector@http://fail2web.repziw4.de/bundle.js:4568:22
doBootstrap@http://fail2web.repziw4.de/bundle.js:2079:34
bootstrap@http://fail2web.repziw4.de/bundle.js:2100:23
angularInit@http://fail2web.repziw4.de/bundle.js:1994:14
http://fail2web.repziw4.de/bundle.js:26345:16
trigger@http://fail2web.repziw4.de/bundle.js:3337:9
eventHandler@http://fail2web.repziw4.de/bundle.js:3607:25
http://errors.angularjs.org/1.3.2/$injector/modulerr?p0=fail2web&p1=%5B%24injector%3Anomod%5D%20Module%20'fail2web'%20is%20not%20available!%20You%20either%20misspelled%20the%20module%20name%20or%20forgot%20to%20load%20it.%20If%20registering%20a%20module%20ensure%20that%20you%20specify%20the%20dependencies%20as%20the%20second%20argument.%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.3.2%2F%24injector%2Fnomod%3Fp0%3Dfail2web%0Ahttp%3A%2F%2Ffail2web.repziw4.de%2Fbundle.js%3A708%3A32%0Ahttp%3A%2F%2Ffail2web.repziw4.de%2Fbundle.js%3A2392%3A32%0Aensure%40http%3A%2F%2Ffail2web.repziw4.de%2Fbundle.js%3A2316%3A45%0Amodule%40http%3A%2F%2Ffail2web.repziw4.de%2Fbundle.js%3A2390%3A20%0Ahttp%3A%2F%2Ffail2web.repziw4.de%2Fbundle.js%3A4658%3A35%0AforEach%40http%3A%2F%2Ffail2web.repziw4.de%2Fbundle.js%3A967%3A24%0AloadModules%40http%3A%2F%2Ffail2web.repziw4.de%2Fbundle.js%3A4642%3A12%0AcreateInjector%40http%3A%2F%2Ffail2web.repziw4.de%2Fbundle.js%3A4568%3A22%0AdoBootstrap%40http%3A%2F%2Ffail2web.repziw4.de%2Fbundle.js%3A2079%3A34%0Abootstrap%40http%3A%2F%2Ffail2web.repziw4.de%2Fbundle.js%3A2100%3A23%0AangularInit%40http%3A%2F%2Ffail2web.repziw4.de%2Fbundle.js%3A1994%3A14%0Ahttp%3A%2F%2Ffail2web.repziw4.de%2Fbundle.js%3A26345%3A16%0Atrigger%40http%3A%2F%2Ffail2web.repziw4.de%2Fbundle.js%3A3337%3A9%0AeventHandler%40http%3A%2F%2Ffail2web.repziw4.de%2Fbundle.js%3A3607%3A25
(anonymous function) (bundle.js, line 4682)
forEach (bundle.js, line 967)
loadModules (bundle.js, line 4642)
createInjector (bundle.js, line 4568)
doBootstrap (bundle.js, line 2079)
bootstrap (bundle.js, line 2100)
angularInit (bundle.js, line 1994)
(anonymous function) (bundle.js, line 26345)
trigger (bundle.js, line 3337)
eventHandler (bundle.js, line 3607)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (angular-animate.min.js.map, line 0)
Freshly built from repository, using debian 7. But clearly this is an angular issue which needs to be addressed in the latest version.
We need to properly catch no DBfile and prompt users to upgrade fail2ban to 0.9.* or enable DBfile and restart
bundle.js:766 Uncaught Error: [$injector:unpr] Unknown provider: $$asyncCallbackProvider <- $$asyncCallback <- $animate <- $compile
https://errors.angularjs.org/1.8.1/$injector/unpr?p0=%24%24asyncCallbackProvider%20%3C-%20%24%24asyncCallback%20%3C-%20%24animate%20%3C-%20%24compile
at bundle.js:766
at bundle.js:5619
at Object.getService [as get] (bundle.js:5779)
at bundle.js:5624
at getService (bundle.js:5779)
at injectionArgs (bundle.js:5804)
at Object.invoke (bundle.js:5828)
at $AnimateProvider.origProvider.$get (bundle.js:5705)
at Object.invoke (bundle.js:5836)
at bundle.js:5625
Dear @Sean-Der ,
could you please add a configuration option to not render the pie chart and only render the table of entries instead?
With thousands of bans on a system, browsers may regularly crash trying to render the pie chart.
Thanks in advance!
Maik
Hello,
I already have fail2ban installed and decided to setup the web service.
I've followed the installation for fail2rest and fail2web, as per your instructions on http://siobud.com/blog/installing-fail2web but I get a "404 page not found"
I'm running on Ubuntu 14.04 x64 and have go version 1.4.2 installed.
Currently we just use jshint, and with a lot of outdated options.
Go through and tighten up jshint options, make as strict as possible.
Next make a jscs config, and make that strict as well.
We also need better markup+style checking, but not as important yet.
Allow users to configure a jails findtime, usedns and maxretry per jail
Hi
I have just installed as per the install manual. though the webpage doesnt work. i get a message on the top left side of the page "Unparseable error when attempting to contact fail2rest"
Currently we don't have any way to break markup out into partials.
I am going to break out the activeViews out into separate directives, and those directives will include their templates.
Following from #35, I've got what looks like a working installation of fail2web but I am seeing a blank page after I load the page. In the console, I am seeing:
Error: [$injector:unpr] Unknown provider: $$asyncCallbackProvider <- $$asyncCallback <- $animate <- $compile
https://errors.angularjs.org/1.7.8/$injector/unpr?p0=%24%24asyncCallbackProvider%20%3C-%20%24%24asyncCallback%20%3C-%20%24animate%20%3C-%20%24compile
I am using:
root@yunohostdev:/var/www/fail2web# node --version
v12.3.1
root@yunohostdev:/var/www/fail2web# npm --version
6.9.0
root@yunohostdev:/var/www/fail2web# go version
go version go1.7.4 linux/amd64
I've got my fail2web install in /var/www/fail2web
with a web/index.html
all built using npm install
and npm run build
. fail2rest
is running successfully under the systemd manager. Here's my nginx configuration:
server {
listen 80;
server_name 116.203.73.21 ;
location / {
root /var/www/fail2web/web;
}
location /api/ {
proxy_pass http://127.0.0.1:5000/;
proxy_redirect off;
}
}
I'm just trying to get a loading page before integrating authentication etc.
Any thoughts?
Source layout + patterns may be a bit non-standard, especially to users who are new to angularjs and browserify. Spend some time writing a short guide on how things flow.
Followed the tutorial, but when I want to do go run *.go, the command line just hangs and does nothing, no errors, untill i press ctrl-c
No idea where to go from here. Gopath / gobin is set
Tried every possible setting/combination I could think of, but nothing works
Hi there! First off: thanks for this brilliant tool!
I am working towards getting this packaged up for the Yunohost project.
My concern is that I see no activity on this project since 2017. I know everyone is busy but I just wanted to start the discussion here regarding the aim to support this project going forward. Would be great to know we can rely on someone in some sort of timely fashion to support for fixes and reviews.
๐
Hey,
I justed installed fail2rest and fail2web, but fail2web cannot acces fail2rest, here is the error I got :
Unparseable error when attempting to contact fail2rest
When I open a ssh-tunnel to the server on the port 5000, and try to connect directly to the API, I got this error :
404 page not found
Is there any path the the API I can test to be sure that fail2rest is working correctly ?
Nginx config :
location /fail2web {
index index.html;
alias /var/www/fail2web/web;
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
default_type text/html;
}
location /fail2web/api/ {
proxy_pass http://127.0.0.1:5000/;
proxy_redirect off;
}
I also changed /var/www/fail2web/web/config.json for :
{
"APIRoot": "/fail2web/api/"
}
Hello,
After having some problems with go version, now I am stuck at "npm build":
root@ns4:/home/edited/public_html/f2r/fail2web/.git# npm install
npm http GET https://registry.npmjs.org/watchify
npm http GET https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/brfs/1.0.2
npm http GET https://registry.npmjs.org/angular
npm http GET https://registry.npmjs.org/browserify-shim
npm http GET https://registry.npmjs.org/insert-css
npm http GET https://registry.npmjs.org/bootstrap
npm http GET https://registry.npmjs.org/browserify
npm http GET https://registry.npmjs.org/d3
npm ERR! Error: failed to fetch from registry: lodash
npm ERR! at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
npm ERR! at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)
npm ERR! at Request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18)
npm ERR! at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
npm ERR! at Request. (/usr/lib/nodejs/request/main.js:212:58)
npm ERR! at Request.emit (events.js:88:20)
npm ERR! at ClientRequest. (/usr/lib/nodejs/request/main.js:412:12)
npm ERR! at ClientRequest.emit (events.js:67:17)
npm ERR! at HTTPParser.onIncoming (http.js:1261:11)
npm ERR! at HTTPParser.onHeadersComplete (http.js:102:31)
npm ERR! You may report this log at:
npm ERR! http://bugs.debian.org/npm
npm ERR! or use
npm ERR! reportbug --attach /home/edited/public_html/f2r/fail2web/.git/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.13.0-36-generic
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /home/edited/public_html/f2r/fail2web/.git
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! message failed to fetch from registry: lodash
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/edited/public_html/f2r/fail2web/.git/npm-debug.log
npm not ok
Any clue how to get past this please?
Currently there are no instructions on how to get a fail2web/fail2rest running given a user has a running fail2ban instance.
bundle.js:423 Uncaught TypeError: undefined is not a function
Hi,
I am looking forward of installing fail2web on my Debian 7 x64 server. Still a newbie here and I have no idea how to. Another thing, I wanna use the latest unreleased version of fail2ban, not the one from a distro since the latest one has a lot of new features.
Thanks.
pkg install w3m
Checking availability of current mirror: ok
Get:1 https://termux.mentality.rip/termux-packages-24 stable InRelease [14.0 kB]
Ign:2 https://dl.bintray.com/grimler/game-packages-24 games InRelease
Hit:3 https://packages.termux.dev/apt/termux-root root InRelease
Ign:4 https://dl.bintray.com/grimler/science-packages-24 science InRelease
Get:5 https://termux.mentality.rip/termux-packages-24 stable/main aarch64 Packages [458 kB]
Err:6 https://dl.bintray.com/grimler/game-packages-24 games Release
502 Bad Gateway
Err:7 https://dl.bintray.com/grimler/science-packages-24 science Release
502 Bad Gateway
Reading package lists... Done
E: The repository 'https://dl.bintray.com/grimler/game-packages-24 games Release' does not have a Release file.
N: Metadata integrity can't be verified, repository is disabled now.
N: Possible cause: repository is under maintenance or down (wrong sources.list URL?).
E: The repository 'https://dl.bintray.com/grimler/science-packages-24 science Release' does not have a Release file.
N: Metadata integrity can't be verified, repository is disabled now.
N: Possible cause: repository is under maintenance or down (wrong sources.list URL?).
Currently we just have integers for these, find a way to expose the actual objects that were banned
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.