View previous topic :: View next topic |
Author |
Message |
michi-monster Apprentice
Joined: 16 Aug 2016 Posts: 175 Location: Germany
|
Posted: Wed Sep 20, 2017 4:00 pm Post subject: fail2ban package not running [solved] |
|
|
I want use fail2ban. I have installed it. But i cant activate it. I get many differents error. A remerge i have done. The last message was to activate a service logger. Which i need? What i have to install? What can i do to clear this problem?
Code: | localhost /home/michi # fail2ban
bash: fail2ban: command not found.
|
Code: | michi@localhost ~ $ su
Passwort:
localhost /home/michi # emerge -av fail2ban
* IMPORTANT: 15 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] net-analyzer/fail2ban-0.9.6::gentoo USE="systemd (-selinux)" PYTHON_SINGLE_TARGET="python3_4 (-pypy) -python2_7 (-python3_5)" PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-python3_5)" 0 KiB
Total: 1 package (1 reinstall), Size of downloads: 0 KiB
Would you like to merge these packages? [Yes/No]
|
Code: |
localhost /home/michi # /etc/init.d/fail2ban status
* status: stopped
localhost /home/michi # /etc/init.d/fail2ban start
* ERROR: fail2ban needs service(s) logger |
_________________ www.edv-bildung.de
Last edited by michi-monster on Wed Sep 20, 2017 4:19 pm; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54216 Location: 56N 3W
|
Posted: Wed Sep 20, 2017 4:06 pm Post subject: |
|
|
michi-monster,
fail2ban reads logs to know what to ban. That requires that you install a logger.
As always, Gentoo offers a choice :)
There are some recommendations in the handbook.
Don't miss the "Tip".
if your logs don't get rotated, they will grow without limit. That's a very bad thing when your HDD fills up. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Last edited by NeddySeagoon on Wed Sep 20, 2017 4:08 pm; edited 1 time in total |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30894 Location: here
|
Posted: Wed Sep 20, 2017 4:07 pm Post subject: |
|
|
Command installed are:
Code: | # fail2ban-<tab><tab>
fail2ban-client fail2ban-python fail2ban-regex fail2ban-server fail2ban-testcases |
For init script you should install and run a logger service _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
michi-monster Apprentice
Joined: 16 Aug 2016 Posts: 175 Location: Germany
|
Posted: Wed Sep 20, 2017 4:19 pm Post subject: |
|
|
Many thanks.
I have installed syskloged. All right now:
Code: | localhost /home/michi # /etc/init.d/fail2ban start
* Caching service dependencies ... [ ok ]
* sysklogd -> start: syslogd ... [ ok ]
* sysklogd -> start: klogd ... [ ok ]
* Starting fail2ban ...
2017-09-20 18:17:31,322 fail2ban.server [21552]: INFO Starting Fail2ban v0.9.6
2017-09-20 18:17:31,322 fail2ban.server [21552]: INFO Starting in daemon mode [ ok ]
localhost /home/michi # |
_________________ www.edv-bildung.de |
|
Back to top |
|
|
|