-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
Make 'ssh' and 'ssh-ddos' jail names be consistent across operating systems #50
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are quite a few other references to sshd-ddos in
templates/Tikanga/etc/fail2ban/jail.conf.erb
The other names are either the name of the jail or the name of the filters. The filters seem to be "sshd-ddos" and "sshd" for all of them, which I guess is correct. The jail names seem to be |
… that sshd and sshd-ddos jails are enabled
@saibot94 nice to get the acceptance tests running as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be done a different way
ssh_log_file = '/var/log/secure' | ||
ssh_jail = 'ssh' | ||
# EPEL needs to be installed, otherwise it won't work | ||
shell('wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missed this, should not have been merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By default ensuring the package epel-release
is installed works on CentOS since it's carried in the extras repo.
Pull Request (PR) description
Adding the following code in the manifest:
and deploying it on a CentOS machine will result in no jails being configured, even though the documentation mentions that '['ssh', 'ssh-ddos']' are configured to run by default.
The problem is that the parameters the config is looking for on the CentOS templates are sshd and sshd-ddos.
This Pull Request (PR) fixes the following issues
Fixes #34