• Stars
    star
    531
  • Rank 81,680 (Top 2 %)
  • Language
    JavaScript
  • Created about 10 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

a fail2ban GUI powered by fail2rest

fail2web

fail2web is a fail2ban GUI that communicates with a fail2ban instance via fail2rest

fail2ban allows you to administer the following

  • Failregex - Delete and add new failregexes
  • Banned IPs - Ban and Unban IP address
  • Per Jail Config - Configure find time, max retry and usedns per jail, and view the filelist per jail
  • Alerting - Notifications when an IP address is banned and unbanned with a user configurable time span
  • Regex Testing - Testing ignore+fail regexes on your current logs to quickly build and debug regexes
  • Reporting - Expose the time that an IP address was banned, and show trends via visualizations

alt text alt text

Requirements

fail2web communicates with fail2ban via a REST server called fail2rest before fail2web can be used you will need an operational fail2rest instance.

fail2web has been reported to work on IE8 or newer, but is not actively tested on older platforms.

Installing

A guide to install fail2web on Ubuntu can be found here

If you find any errors open an PR against the markdown here

Production

To install the production build of fail2web download the newest release. A fully built release will then be in the web directory. Now you just need to serve the index.html, you can find further instructions here

Development

  • Install build requirements
  • Install libraries
    • execute npm install in the root of the fail2web repository
  • Building
    • When writing code run npm run watch this will rebuild web/bundle.js on every change
    • When deploying run npm run build this will build once and exit

Deploying and Configuration

fail2web is best accessed via a HTTP server, you can find example HTTP server configs here

Fail2web has only one configuration option available via config.json in the root of the web folder. This config option allows you to specify the path to your fail2rest handler. Currently the config.json uses /api/ which is what all the example HTTP configs are configured to do.

Security

It is very important that you configured fail2rest correctly, a public facing fail2rest server could be very dangerous (someone could add inclusive regexes, remove themselves from the banned IP lists etc..)

Out of the box fail2rest has no authentication, and I have no plans of rolling my own authentication.

HTTP Basic Auth

The HTTP configs are both set to use HTTP basic auth, this and SSL should be the absolute minimum security requirements. In both HTTP configs you will see a placeholder with the label of YOUR_HTPASSWD_FILE

To generate a HTTPASSWD file you can use the htpasswd util distributed with Apache HTTPD and htpasswd -c YOUR_HTPASSWD_FILE USERNAME will create it.

SSH Tunnel

I also recommend only serving fail2web/fail2rest on loopback only. You would access the server via a SSH tunnel, you can find more info Here

Getting Help

Please make a GitHub issue, this will allow others in the future to find the issue in the future.

Most of the time I will not be able to respond to emails in a timely manner, however with GitHub issues I try my best to keep the count 0.

License

The MIT License (MIT)

Copyright (c) 2014 Sean DuBois

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

fail2rest

REST server for fail2ban
Go
102
star
2

Therac

A Simple PHP Pair Debugger
PHP
95
star
3

OBS2Browser

Send OBS directly to your browser, no more wasting time on servers
Go
84
star
4

rtmp-to-webrtc

Demonstrate a RTMP server that publishes to WebRTC
Go
72
star
5

fail2go

Go library to abstract away communication with the fail2ban socket
Go
17
star
6

wasm-audio-decode

An example of using pion/opus in WASM to decode audio files - https://sean-der.github.io/wasm-audio-decode/
JavaScript
15
star
7

ffmpeg-in-memory-rtp-decoder

A example of decoding RTP packets that are in memory using FFmpeg
C++
11
star
8

WebSQL-For-FireFox

HTML5 WebSQL for Firefox
JavaScript
9
star
9

webrtc-uri

WebRTC URI for remote resource identification and local configuration
Makefile
8
star
10

pipeshout

Easily combine multiple outputs. Allowing you to filter, examine and debug multiple processes at once.
Go
7
star
11

pion-webrtc-shared-socket

Demonstration of using Pion WebRTC with a shared socket
Go
6
star
12

play-from-disk-h264

Example of using Pion WebRTC to play H264 + Ogg from disk
Go
6
star
13

pion-unbundled

An example of using Pion WebRTC with a Unbundled PeerConnection.
Go
6
star
14

pion-bidirectional-simulcast

An example that shows Sending and Receiving Simulcast with Pion
Go
5
star
15

pion-ulaw-player

Give a file containing ulaw play in the browser using Pion WebRTC
Go
4
star
16

dot_files

Collection of my configs and personal programs.
Vim Script
4
star
17

pipelisten

A frontend to pipeshout https://github.com/Sean-Der/pipeshout
JavaScript
4
star
18

Go-WebRTC-GStreamer

Go
4
star
19

appsrc-to-appsink

Example of using Pion to accept WebRTC, GStreamer to Decode and return the buffers back to Go
Go
4
star
20

goWHOIS

A very simple Golang WHOIS client
Go
3
star
21

pion-bench

Repo to run profiling/benching of Pion WebRTC.
Go
3
star
22

whep-static

A WHEP Server that serves a static file. Useful for testing WHEP Clients
Go
2
star
23

Firefox2dwb

Python Script to convert Firefox bookmarks to dwb's format
Python
2
star
24

pion-pcm-e2e

Example of using Pion WebRTC with PCM E2E
Go
2
star
25

audio-spew

Demo to show sending a directory of Opus samples using Pion WebRTC
Go
2
star
26

ice-tcp-test

Repo to test ICE-TCP and allows Pion to be Offer or Answerer
Go
2
star
27

resume

Code for resume, written in LaTeX
TeX
1
star
28

webWaiter

A simple threaded HTTP server
C
1
star
29

go-h264-decode-scale-encode

Example in Go of Decoding+Scaling+Encoding H264
Go
1
star
30

gst-plugins-rs

Personal fork of https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs
Rust
1
star