Sean-Der / fail2rest

REST server for fail2ban
107 stars 24 forks source link

installation problem on Ubuntu 20.04 #40

Open Fluoo opened 3 years ago

Fluoo commented 3 years ago

Hello,

I used Fail2Rest on my old server and now I try to install it on my new server because I migrate it. I have made all the installation with no error, Fail2Rest service is active but it seems that the server is not listening on port 5010. Can you help me ?

Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-77-generic x86_64) go version go1.16.5 linux/amd64

fail2ban-client status Status |- Number of jail: 1 `- Jail list: sshd

service fail2rest status ● fail2rest.service - fail2ban REST server Loaded: loaded (/etc/systemd/system/fail2rest.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2021-06-29 17:57:59 CEST; 12min ago Docs: man:fail2rest(1) Main PID: 8768 (fail2rest) Tasks: 6 (limit: 76742) Memory: 1.7M CGroup: /system.slice/fail2rest.service └─8768 /usr/bin/fail2rest -config=/etc/fail2rest.json

Jun 29 17:57:59 vil.fluoo.com systemd[1]: Started fail2ban REST server.

cat /etc/fail2rest.json { "Addr": "127.0.0.1:5000", "Fail2banSocket": "/var/run/fail2ban/fail2ban.sock" }

ss -l | grep 5010 (Nothing here)

On my old server : ss -l | grep 5010 tcp LISTEN 0 128 127.0.0.1:5010 :

Regards.