HowTo: fail2ban and ownCloud 8.x

Ask all your questions regarding OC 9.0 Please read the Support Forum Rules
Forum rules
The forums were migrated over to https://central.owncloud.org which is based on the forum software Discourse. The forums here is put into read-only mode starting from today.

More background information about this move and the reasoning behind it is available in this blogpost:

https://daniel.molkentin.net/2016/07/20 ... d-central/
Schnello
Newbie
Posts: 1
Joined: Sat Mar 12, 2016 11:26 am

HowTo: fail2ban and ownCloud 8.x

Postby Schnello » Sat Mar 12, 2016 11:34 am

Hello.

I have some problems with 9.0.0 and "fail2ban". Of course, the problem can also be elsewhere but with 8.X it worked.
If i enter now the wrong password... fail2ban doesnt block the ip.

My first look shows that the log entry doesnt match with the local time zone.

Code: Select all

{"reqId":"rRw4WfPoRl0DscSMS8mb","remoteAddr":"185.65.xxx.xxx","app":"core","message":"Login failed: 'User' (Remote IP: '185.65.xxx.xxx')","level":2,"time":"2016-03-12T09:30:18+00:00"}
root@nas:/home/nas# date
Sat Mar 12 10:30:51 CET 2016



time zone is set

Code: Select all

root@nas:/home/nas# cat /var/www/owncloud/config/config.php | grep time
  'logtimezone' => 'Europe/Berlin',
root@nas:/home/nas#



Could this the root cause?

Br,
Christian

PS: Sorry for my bad english :)

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: HowTo: fail2ban and ownCloud 8.x

Postby RealRancor » Sat Mar 12, 2016 11:36 am

See: https://github.com/owncloud/core/issues/23134

So yes, there seems to be an issue in oC9 with timezones.
*gone*

tomhanks92
Beginner
Posts: 16
Joined: Tue Feb 23, 2016 10:16 pm

Re: HowTo: fail2ban and ownCloud 8.x

Postby tomhanks92 » Sat Mar 12, 2016 4:05 pm

Just for clarification.

It is working for me on owncloud 9 as stated above.
My setup was a fresh install of debian 8.3 so everything was from scratch rather than an upgrade.

In my setup i did dpkg-reconfigure tzdata and set to Europe / London.

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: HowTo: fail2ban and ownCloud 8.x

Postby RealRancor » Sat Mar 12, 2016 4:06 pm

Hi,

thanks for your reply. UTC probably will work but other timezones like Europe/Berlin not
*gone*


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Server 9.0”

Who is online

Users browsing this forum: No registered users and 4 guests