The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Setting up Fail2Ban for Confluence Server Docker Container

Dempers
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 16, 2020

I'm trying to get Fail2Ban working with the Confluence Server Docker Container and I've been following documentation: - https://confluence.atlassian.com/doc/using-fail2ban-to-limit-login-attempts-216433031.html.

In the documentation it states that the access log for Confluence is located at /var/log/httpd/confluence-access.log. When I access the running docker container and look for that log file, it's not there. The directory /var/log/httpd is there but there is no log file in there.

2020-01-17_7-01-50.png

When I do a "lsof | grep .log" I can't see any open log files called "confluence-access.log".

2020-01-17_6-57-52.png

Do I need to turn on access logging or something? Has anyone been able to get fail2ban working with the Confluence Server Docker Container?

Here is my compose file if that helps: -

https://pastebin.com/vPe4ZZTb

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
SMS
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 21, 2020

Hello @Dempers,

Welcome to Atlassian Community! It's nice to have you.

The article you shared mentioned that you need to point to a known log file, as the Common Configuration listed is only an example. According to the prerequisites:

  • Requires Python 2.4 or higher to be installed
  • Requires Apache Reverse Proxy to be installed
  • Needs a specific file to follow, which means your Apache instance needs to log your Confluence access to a known logfile. You should adjust the configuration below appropriately.

I hope that's clear, but let me know if you have any further issues.

Regards,

Shannon

TAGS
AUG Leaders

Atlassian Community Events