uccnetsoc / fail2rest Goto Github PK
View Code? Open in Web Editor NEWThis project forked from sean-der/fail2rest
REST server for fail2ban
This project forked from sean-der/fail2rest
REST server for fail2ban
Currently there is absolutely no auth
Examples: https://hub.docker.com/r/whiledo/docker-remote-api-tls/
Hello,
I used fail2rest from sean-Der on my old server. Now I build a new server and I have problem installing fail2rest from sean-der.
It seems the project is abandonned so I tried to install your version.
When I launch fail2rest I have error about netsoc-consul. I try to disable it but it seems that I haven't the good option to set up the config.
I have try to launch with :
fail2rest -config=/etc/fail2rest.json
or
fail2rest -config /etc/fail2rest.json
but it seems I have the default config in the output :
2021-06-30 10:19:10+02:00 [DEBUG] config.go:22:PrintSettings() config:
{
"consul": {
"enabled": true,
"fail2rest": "fail2rest-token",
"host": "netsoc-consul:8500",
"token": ""
},
"fail2ban": {
"socket": "/var/run/fail2ban/fail2ban.sock"
},
"fail2rest": {
"auth_enabled": true,
"production": false,
"secret": "[secret]"
},
"http": {
"port": 8080
}
}
2021-06-30 10:19:10+02:00 [INFO ] main.go:36:main() Initialising fail2ban connection
fail2ban socket='/var/run/fail2ban/fail2ban.sock'
2021-06-30 10:19:10+02:00 [INFO ] main.go:43:main() Initialising HTTP Server
port='8080'
2021-06-30 10:19:11+02:00 [ERROR] consul.go:107:getSharedSecret() failed to get shared secret
count='4' error='Get "http://netsoc-consul:8500/v1/kv/fail2rest-token": dial tcp: lookup netsoc-consul on 213.186.33.99:53: no such host' limit='4'
cat /etc/fail2rest.json
{
"consul": {
"enabled": false,
"fail2rest": "fail2rest-token",
"host": "netsoc-consul:8500",
"token": ""
},
"fail2ban": {
"socket": "/var/run/fail2ban/fail2ban.sock"
},
"fail2rest": {
"auth_enabled": false,
"production": true,
"secret": "[secret]"
},
"http": {
"port": 5010
}
}
At this uses the fail2ban socket, this should be easily dockerizable.
Inspirations: https://hub.docker.com/r/whiledo/docker-remote-api-tls/
This uses the docker socket to allow remote API usage, authentication happens with shared certs
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.