Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No file(s) found for glob /var/log/auth.log #6

Open
robert1112 opened this issue Feb 6, 2019 · 3 comments
Open

No file(s) found for glob /var/log/auth.log #6

robert1112 opened this issue Feb 6, 2019 · 3 comments
Labels

Comments

@robert1112
Copy link

Hi

Thanks for your sharing. I just successfully install the container but when I want to start it, I got the error No file(s) found for glob /var/log/auth.log

I am new to container and Fail2Ban. How can I solve this? Thanks.

@ninjalf2
Copy link

I am getting the same error.

OS: CentOS 7.6.1810
Kernel: 3.10.0-957.5.1.el7.x86_64

@SuperITMan
Copy link
Owner

@robert1112 @ninjalf2 I took a quick look on your issue and I found this: https://unix.stackexchange.com/questions/268357/how-to-configure-fail2ban-with-systemd-journal

According to this post, it seems that you don't have syslog or rsyslog on your system which causes that you don't have the auth.log file. This log file is used by my default config for fail2ban to protect your ssh connection.

You can see my jail.local config:

[ssh]
enabled  = true
port = ssh
filter = sshd
# Change this path if needed or remove all config to disable the ssh protection
logpath = /var/log/auth.log 
maxretry = 5

Don't hesitate to replace my default jail.local config with yours by adding the argument

-v /path/to/jail.local:/etc/fail2ban/jail.local

If you think that the default config could be improved, don't hesitate to propose a better config 😊

@robert1112
Copy link
Author

Hi @SuperITMan

First Thank you for your support. I will take a look and take time understanding it. (I am new to Docker and Fail2Ban.)

Is it possible for you to share what pro and con of having Fail2Ban installed as a dock conatiner versus installed on the host? Thank you so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants