fail2ban does not work. Nothing changed on server side.
What version of NextCloudPi are you using?
v0.20.2
What is the base image that you installed on the SD card?
12.0.1
Expected behavior
fail2ban behavior, normal behavior.
Actual behaviour
fail2ban does not work but used to.
And the command sudo fail2ban-client status nextcloud does not show updated counters even if logged in with wrong username/password. Counters are always at 0, nothing changes, I tried running fail2ban again from the web address (deactivate and then reactivate), reboot, and still not working.
Steps to reproduce, from a freshly installed image
I don't think this is reproducible, supposedly it just happens for no reason
Include logs
Nextcloud logs (Did not strip out my public IP, too lazy, too many lines)
Warning | core | Login failed: 'user1' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-15T19:03:23+0800
Warning | core | Trusted domain error. "54.183.193.221" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-15T17:14:45+0800
Warning | core | Trusted domain error. "184.105.247.252" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-15T15:23:12+0800
Warning | core | Login failed: 'user1' (Remote IP: '115.132.156.39') | 2017-08-15T11:17:37+0800
Warning | core | Trusted domain error. "169.229.3.91" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-15T10:48:58+0800
Warning | core | Login failed: 'user1' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-15T08:56:10+0800
Warning | core | Login failed: 'admin' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-15T08:52:53+0800
Warning | core | Login failed: 'admin' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-15T08:50:49+0800
Warning | core | Login failed: 'admin' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-15T08:49:34+0800
Warning | core | Login failed: 'admin' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-15T08:25:27+0800
Warning | core | Login failed: 'admin' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-15T08:25:18+0800
Warning | core | Trusted domain error. "60.191.38.77" tried to access using "XXX.XXX.XXX.ZZZ:443" as host. | 2017-08-15T07:19:16+0800
Warning | core | Trusted domain error. "184.105.247.196" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-14T17:04:09+0800
Warning | core | Trusted domain error. "169.229.3.91" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-14T15:14:17+0800
Warning | core | Trusted domain error. "159.203.240.99" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-14T12:19:46+0800
Warning | core | Login failed: 'user1' (Remote IP: 'XXX.XXX.XXX.XXX') | 2017-08-14T12:15:17+0800
Warning | core | Login failed: 'user1' (Remote IP: 'XXX.XXX.XXX.XXX') | 2017-08-14T12:13:18+0800
Warning | core | Login failed: 'user1' (Remote IP: 'XXX.XXX.XXX.XXX') | 2017-08-14T12:12:29+0800
Warning | core | Login failed: 'user1' (Remote IP: 'XXX.XXX.XXX.XXX') | 2017-08-14T12:12:06+0800
Warning | core | Login failed: 'user1' (Remote IP: 'XXX.XXX.XXX.XXX') | 2017-08-14T12:11:52+0800
Warning | core | Login failed: 'dd' (Remote IP: 'XXX.XXX.XXX.XXX') | 2017-08-14T12:11:38+0800
Warning | core | Login failed: 'dd' (Remote IP: 'XXX.XXX.XXX.XXX') | 2017-08-14T12:11:31+0800
Warning | core | Login failed: 'dd' (Remote IP: 'XXX.XXX.XXX.XXX') | 2017-08-14T12:11:25+0800
Warning | core | Login failed: 'dd' (Remote IP: 'XXX.XXX.XXX.XXX') | 2017-08-14T12:11:20+0800
Warning | core | Login failed: 'dd' (Remote IP: 'XXX.XXX.XXX.XXX') | 2017-08-14T12:11:14+0800
Warning | core | Login failed: 'beenee' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-14T10:16:03+0800
Error | internet_connection_check | GuzzleHttp\Exception\RequestException: cURL error 18: transfer closed with 25572 bytes remaining to read | 2017-08-14T10:14:43+0800
Warning | core | Login failed: 'sdfsd' (Remote IP: '192.168.1.1') | 2017-08-14T08:47:29+0800
Warning | core | Login failed: 'sdfsd' (Remote IP: '192.168.1.1') | 2017-08-14T08:46:12+0800
Warning | core | Login failed: 'djssj' (Remote IP: '192.168.1.1') | 2017-08-14T08:43:36+0800
Warning | core | Login failed: 'djssj' (Remote IP: '192.168.1.1') | 2017-08-14T08:43:06+0800
Warning | core | Login failed: 'djssj' (Remote IP: '192.168.1.1') | 2017-08-14T08:42:35+0800
Warning | core | Login failed: 'djssj' (Remote IP: '192.168.1.1') | 2017-08-14T08:42:05+0800
Warning | core | Login failed: 'djssj' (Remote IP: '192.168.1.1') | 2017-08-14T08:41:35+0800
Warning | core | Login failed: 'djssj' (Remote IP: '192.168.1.1') | 2017-08-14T08:41:05+0800
Warning | core | Login failed: 'djssj' (Remote IP: '192.168.1.1') | 2017-08-14T08:40:39+0800
Warning | core | Login failed: 'djssj' (Remote IP: '192.168.1.1') | 2017-08-14T08:40:26+0800
Warning | core | Login failed: 'djssj' (Remote IP: '192.168.1.1') | 2017-08-14T08:40:20+0800
Warning | core | Login failed: 'djssj' (Remote IP: '192.168.1.1') | 2017-08-14T08:40:16+0800
Warning | core | Login failed: 'djssj' (Remote IP: '192.168.1.1') | 2017-08-14T08:40:15+0800
Warning | core | Login failed: 'djssj' (Remote IP: '192.168.1.1') | 2017-08-14T08:40:12+0800
Warning | core | Login failed: 'djssj' (Remote IP: '192.168.1.1') | 2017-08-14T08:37:08+0800
Warning | core | Login failed: 'djssj' (Remote IP: '192.168.1.1') | 2017-08-14T08:37:02+0800
Warning | core | Login failed: 'djssj' (Remote IP: '192.168.1.1') | 2017-08-14T08:36:52+0800
Warning | core | Trusted domain error. "185.94.252.27" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-14T05:47:18+0800
Warning | core | Trusted domain error. "71.6.146.186" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-14T02:50:28+0800
Warning | core | Trusted domain error. "139.162.113.204" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-14T02:02:03+0800
Warning | core | Login failed: 'user1' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-13T21:21:31+0800
Warning | core | Login failed: 'user12' (Remote IP: '192.168.1.156') | 2017-08-13T20:35:29+0800
Warning | core | Login failed: 'user12' (Remote IP: '192.168.1.156') | 2017-08-13T20:35:29+0800
Warning | core | Login failed: 'user12' (Remote IP: '192.168.1.156') | 2017-08-13T20:34:29+0800
Warning | core | Login failed: 'user12' (Remote IP: '192.168.1.156') | 2017-08-13T20:33:46+0800
Warning | core | Login failed: 'user1' (Remote IP: '192.168.1.156') | 2017-08-13T20:33:14+0800
Warning | core | Login failed: 'user1' (Remote IP: '192.168.1.156') | 2017-08-13T20:32:56+0800
Warning | core | Login failed: 'user1' (Remote IP: '192.168.1.156') | 2017-08-13T20:28:39+0800
Warning | core | Login failed: 'user1' (Remote IP: '192.168.1.156') | 2017-08-13T20:28:21+0800
Warning | core | Login failed: 'user1' (Remote IP: '192.168.1.156') | 2017-08-13T20:28:13+0800
Warning | core | Login failed: 'user1' (Remote IP: '192.168.1.156') | 2017-08-13T20:28:08+0800
Warning | core | Login failed: 'user1' (Remote IP: '192.168.1.156') | 2017-08-13T20:28:01+0800
Warning | core | Login failed: 'user1' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-13T19:39:37+0800
Warning | core | Login failed: 'user1' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-13T19:38:03+0800
Warning | core | Login failed: 'user1' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-13T19:35:30+0800
Warning | core | Login failed: 'user1' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-13T19:34:16+0800
Warning | core | Login failed: 'user1' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-13T19:30:58+0800
Warning | core | Login failed: 'user1' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-13T19:29:54+0800
Warning | core | Login failed: 'user1' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-13T19:29:25+0800
Warning | core | Login failed: 'user1' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-13T19:28:24+0800
Warning | core | Login failed: 'user1' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-13T19:28:08+0800
Warning | core | Login failed: 'user1' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-13T19:28:04+0800
Warning | core | Login failed: 'user1' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-13T19:27:21+0800
Warning | core | Trusted domain error. "60.191.38.77" tried to access using "XXX.XXX.XXX.ZZZ:443" as host. | 2017-08-13T17:42:17+0800
Warning | core | Login failed: 'user1' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-13T16:27:15+0800
Warning | core | Trusted domain error. "74.82.47.4" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-13T03:56:38+0800
Warning | no app in context | Missing expected parameters in change user hook | 2017-08-13T03:52:28+0800
Warning | no app in context | Missing expected parameters in change user hook | 2017-08-13T03:52:28+0800
Warning | core | Login failed: 'admin' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-13T03:47:11+0800
Error | PHP | Undefined offset: 3 at /var/www/nextcloud/apps/activity/lib/FilesHooks.php#620 | 2017-08-13T03:41:57+0800
Fatal | webdav | Sabre\DAV\Exception\BadRequest: expected filesize 319659342 got 0 | 2017-08-13T03:12:00+0800
Fatal | webdav | Sabre\DAV\Exception\BadRequest: expected filesize 288382411 got 0 | 2017-08-13T03:12:00+0800
Fatal | webdav | Sabre\DAV\Exception\BadRequest: expected filesize 314436683 got 0 | 2017-08-13T03:12:00+0800
Fatal | webdav | Sabre\DAV\Exception\BadRequest: expected filesize 314606206 got 0 | 2017-08-13T03:12:00+0800
Fatal | webdav | Sabre\DAV\Exception\BadRequest: expected filesize 314359671 got 0 | 2017-08-13T03:12:00+0800
Fatal | webdav | Sabre\DAV\Exception\BadRequest: expected filesize 262129759 got 40960 | 2017-08-13T03:12:00+0800
Fatal | webdav | Sabre\DAV\Exception\BadRequest: expected filesize 288498901 got 10862592 | 2017-08-13T03:12:00+0800
Error | no app in context | Swift_RfcComplianceException: Address in mailbox given [Private [email protected]] does not comply with RFC 2822, 3.6.2. | 2017-08-13T03:05:40+0800
Warning | core | Trusted domain error. "139.162.78.135" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T12:16:44+0800
Warning | core | Trusted domain error. "66.240.236.119" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T09:58:25+0800
Warning | core | Login failed: 'admin' (Remote IP: '192.168.1.1') | 2017-08-12T07:39:36+0800
Error | PHP | Undefined offset: 3 at /var/www/nextcloud/apps/activity/lib/FilesHooks.php#620 | 2017-08-12T07:38:33+0800
Fatal | webdav | OCP\Lock\LockedException: "13 Reasons Why Season 1 720p/13.Reasons.Why.S01E03.720p.WEBRiP.x265.ShAaNiG.mkv" is locked | 2017-08-12T07:35:38+0800
Fatal | webdav | OCP\Lock\LockedException: "13 Reasons Why Season 1 720p/13.Reasons.Why.S01E13.720p.WEBRiP.x265.ShAaNiG.mkv" is locked | 2017-08-12T07:32:10+0800
Fatal | webdav | OCP\Lock\LockedException: "13 Reasons Why Season 1 720p/13.Reasons.Why.S01E01.720p.WEBRiP.x265.ShAaNiG.mkv" is locked | 2017-08-12T07:31:51+0800
Fatal | webdav | OCA\DAV\Connector\Sabre\Exception\FileLocked: "2017-07-05-raspbian-jessie.zip" is locked | 2017-08-12T07:14:30+0800
Fatal | webdav | OCA\DAV\Connector\Sabre\Exception\FileLocked: "2017-07-05-raspbian-jessie.zip" is locked | 2017-08-12T07:14:22+0800
Fatal | webdav | OCA\DAV\Connector\Sabre\Exception\FileLocked: "2017-07-05-raspbian-jessie.zip" is locked | 2017-08-12T07:14:00+0800
Warning | core | Trusted domain error. "216.218.206.66" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T06:39:29+0800
Warning | core | Login failed: 'user1' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-12T05:43:47+0800
Warning | core | Login failed: 'user1' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-12T05:42:10+0800
Warning | core | Login failed: 'user1' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-12T05:39:37+0800
Warning | core | Login failed: 'user1' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-12T05:38:10+0800
Warning | core | Login failed: 'user1' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-12T05:36:52+0800
Warning | core | Login failed: 'admin' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-12T04:25:45+0800
Warning | core | Login failed: 'admin' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-12T14:27:15+0800
Warning | core | Login failed: 'admin' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-12T13:33:18+0800
Error | PHP | Undefined offset: 3 at /var/www/nextcloud/apps/activity/lib/FilesHooks.php#620 | 2017-08-12T13:22:57+0800
Error | PHP | Undefined offset: 3 at /var/www/nextcloud/apps/activity/lib/FilesHooks.php#620 | 2017-08-12T13:22:35+0800
Error | no app in context | Failed to send share by mail: Address in mailbox given [Private [email protected]] does not comply with RFC 2822, 3.6.2. | 2017-08-12T13:21:43+0800
Fatal | webdav | Sabre\DAV\Exception\BadRequest: expected filesize 3201074518 got 2147483647 | 2017-08-12T07:24:34+0800
Fatal | webdav | Sabre\DAV\Exception\BadRequest: expected filesize 3201074518 got 14311424 | 2017-08-12T07:11:02+0800
Fatal | webdav | Sabre\DAV\Exception\BadRequest: expected filesize 3515875328 got 2147483647 | 2017-08-12T06:54:07+0800
Warning | core | Trusted domain error. "139.162.113.204" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T06:47:06+0800
Fatal | webdav | Sabre\DAV\Exception\BadRequest: expected filesize 3515875328 got 2147483647 | 2017-08-12T06:32:41+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T02:29:49+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T02:27:42+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T02:25:40+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T02:23:39+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T02:21:37+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T02:19:36+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T02:17:34+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T02:15:32+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T02:13:30+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T02:11:28+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T02:09:26+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T02:07:22+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T02:05:21+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T02:03:14+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T02:01:12+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T01:59:10+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T01:57:08+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T01:53:16+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T01:51:12+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T01:48:46+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T01:46:29+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T01:39:55+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T01:37:09+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T01:34:41+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T01:32:40+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T01:30:38+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T01:27:41+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T01:25:30+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T01:21:13+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T01:19:12+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T01:17:09+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T01:15:07+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T01:13:03+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T01:10:59+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T01:08:56+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T01:06:54+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T01:04:52+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T01:02:50+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T01:00:48+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T00:58:46+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T00:56:44+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T00:54:42+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T00:52:40+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T00:48:16+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T00:46:14+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T00:44:13+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T00:42:08+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T00:40:06+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T00:38:01+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T00:35:59+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T00:33:56+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T00:31:55+0800
Warning | core | Trusted domain error. "46.233.112.75" tried to access using "XXX.XXX.XXX.ZZZ" as host. | 2017-08-12T00:29:47+0800
Warning | core | Login failed: 'user1' (Remote IP: '192.168.1.156') | 2017-08-11T19:39:05+0800
Warning | core | Login failed: 'user1' (Remote IP: '192.168.1.156') | 2017-08-11T19:38:38+0800
Warning | core | Login failed: 'user1' (Remote IP: '192.168.1.156') | 2017-08-11T19:37:53+0800
Warning | core | Login failed: 'admin' (Remote IP: '192.168.1.156') | 2017-08-11T19:17:53+0800
Error | no app in context | Swift_RfcComplianceException: Address in mailbox given [Private [email protected]] does not comply with RFC 2822, 3.6.2. | 2017-08-11T19:17:32+0800
Error | no app in context | Swift_RfcComplianceException: Address in mailbox given [Private [email protected]] does not comply with RFC 2822, 3.6.2. | 2017-08-11T19:17:28+0800
Warning | core | Login failed: 'admin' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-11T19:14:17+0800
Warning | core | Login failed: 'admin' (Remote IP: '192.168.1.156') | 2017-08-11T19:10:33+0800
Warning | core | Login failed: 'admin' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-11T19:10:31+0800
Warning | core | Login failed: 'admin' (Remote IP: 'XXX.XXX.XXX.YYY') | 2017-08-11T19:09:23+0800
Apache logs
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled)
Active: active (running) since Tue 2017-08-15 08:51:21 +08; 10h ago
Process: 749 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 934 (apache2)
CGroup: /system.slice/apache2.service
├─934 /usr/sbin/apache2 -k start
├─974 /usr/sbin/apache2 -k start
└─975 /usr/sbin/apache2 -k start
==> /var/log/apache2/access.log <==
==> /var/log/apache2/error.log <==
[Tue Aug 15 06:25:02.228809 2017] [ssl:warn] [pid 913:tid 1992564736] AH01909: 127.0.1.1:4443:0 server certificate does NOT include an ID which matches the server name
[Tue Aug 15 06:25:03.000983 2017] [mpm_event:notice] [pid 913:tid 1992564736] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2l configured -- resuming normal operations
[Tue Aug 15 06:25:03.001064 2017] [core:notice] [pid 913:tid 1992564736] AH00094: Command line: '/usr/sbin/apache2'
[Tue Aug 15 08:42:13.560212 2017] [mpm_event:notice] [pid 913:tid 1992564736] AH00491: caught SIGTERM, shutting down
[Tue Aug 15 08:42:29.877711 2017] [ssl:warn] [pid 812:tid 1992409088] AH01909: 127.0.1.1:4443:0 server certificate does NOT include an ID which matches the server name
[Tue Aug 15 08:42:30.062200 2017] [ssl:warn] [pid 913:tid 1992409088] AH01909: 127.0.1.1:4443:0 server certificate does NOT include an ID which matches the server name
[Tue Aug 15 08:42:31.005688 2017] [mpm_event:notice] [pid 913:tid 1992409088] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2l configured -- resuming normal operations
[Tue Aug 15 08:42:31.006035 2017] [core:notice] [pid 913:tid 1992409088] AH00094: Command line: '/usr/sbin/apache2'
[Tue Aug 15 08:46:37.546283 2017] [proxy_fcgi:error] [pid 933:tid 1833956400] [client XXX.XXX.XXX.YYY:49960] AH01071: Got error 'PHP message: PHP Notice: Undefined variable: params in /var/www/ncp-web/ncp-launcher.php on line 83\nPHP message: PHP Warning: Invalid argument supplied for foreach() in /var/www/ncp-web/ncp-launcher.php on line 83\n'
[Tue Aug 15 08:48:41.748868 2017] [proxy_fcgi:error] [pid 933:tid 1800401968] [client XXX.XXX.XXX.YYY:49966] AH01071: Got error 'PHP message: PHP Notice: Undefined variable: params in /var/www/ncp-web/ncp-launcher.php on line 83\nPHP message: PHP Warning: Invalid argument supplied for foreach() in /var/www/ncp-web/ncp-launcher.php on line 83\n'
[Tue Aug 15 08:51:03.057435 2017] [mpm_event:notice] [pid 913:tid 1992409088] AH00491: caught SIGTERM, shutting down
[Tue Aug 15 08:51:20.270412 2017] [ssl:warn] [pid 807:tid 1992364032] AH01909: 127.0.1.1:4443:0 server certificate does NOT include an ID which matches the server name
[Tue Aug 15 08:51:21.084477 2017] [ssl:warn] [pid 934:tid 1992364032] AH01909: 127.0.1.1:4443:0 server certificate does NOT include an ID which matches the server name
[Tue Aug 15 08:51:22.003753 2017] [mpm_event:notice] [pid 934:tid 1992364032] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2l configured -- resuming normal operations
[Tue Aug 15 08:51:22.003933 2017] [core:notice] [pid 934:tid 1992364032] AH00094: Command line: '/usr/sbin/apache2'
==> /var/log/apache2/modsec_audit.log <==
==> /var/log/apache2/other_vhosts_access.log <==
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:44:10 +0800] "GET / HTTP/2.0" 200 2474 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:44:11 +0800] "GET /ncp-logo.png HTTP/2.0" 200 4842 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:44:11 +0800] "GET /loading-small.gif HTTP/2.0" 200 1771 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:44:11 +0800] "GET /ncp.js HTTP/2.0" 200 1388 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:44:11 +0800] "GET /minified.js HTTP/2.0" 200 8360 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:44:11 +0800] "GET /ncp.css HTTP/2.0" 200 5786 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:44:24 +0800] "POST /ncp-launcher.php HTTP/2.0" 200 243 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:44:38 +0800] "POST /ncp-launcher.php HTTP/2.0" 200 102 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:44:46 +0800] "POST /ncp-launcher.php HTTP/2.0" 200 102 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:36 +0800] "GET / HTTP/2.0" 200 2476 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:29 +0800] "GET / HTTP/2.0" 200 0 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:44:47 +0800] "POST /ncp-launcher.php HTTP/2.0" 200 0 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:37 +0800] "GET /ncp-logo.png HTTP/2.0" 200 4842 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:37 +0800] "GET /ncp.js HTTP/2.0" 200 1388 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:37 +0800] "GET /loading-small.gif HTTP/2.0" 200 1771 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:37 +0800] "GET /minified.js HTTP/2.0" 200 0 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:37 +0800] "GET /ncp.css HTTP/2.0" 200 0 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:37 +0800] "GET / HTTP/2.0" 200 2472 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:37 +0800] "GET /ncp.css HTTP/2.0" 200 5786 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:37 +0800] "GET /minified.js HTTP/2.0" 200 8360 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:37 +0800] "GET /ncp.js HTTP/2.0" 200 1388 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:37 +0800] "GET /loading-small.gif HTTP/2.0" 304 0 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:38 +0800] "GET / HTTP/2.0" 200 2473 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:38 +0800] "GET /ncp.css HTTP/2.0" 200 5786 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:38 +0800] "GET /ncp.js HTTP/2.0" 200 1388 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:38 +0800] "GET /minified.js HTTP/2.0" 200 8360 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:38 +0800] "GET /loading-small.gif HTTP/2.0" 304 0 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:38 +0800] "GET / HTTP/2.0" 200 2473 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:38 +0800] "GET /ncp.css HTTP/2.0" 200 5786 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:38 +0800] "GET /minified.js HTTP/2.0" 200 8360 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:38 +0800] "GET /loading-small.gif HTTP/2.0" 304 0 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:38 +0800] "GET /ncp.js HTTP/2.0" 200 1388 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:38 +0800] "GET /ncp-logo.png HTTP/2.0" 304 0 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:40 +0800] "POST /ncp-launcher.php HTTP/2.0" 200 78 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:41 +0800] "POST /ncp-launcher.php HTTP/2.0" 200 78 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:43 +0800] "POST /ncp-launcher.php HTTP/2.0" 200 78 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:43 +0800] "POST /ncp-launcher.php HTTP/2.0" 200 78 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:44 +0800] "POST /ncp-launcher.php HTTP/2.0" 200 78 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:44 +0800] "POST /ncp-launcher.php HTTP/2.0" 200 78 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:45 +0800] "POST /ncp-launcher.php HTTP/2.0" 200 78 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:46 +0800] "POST /ncp-launcher.php HTTP/2.0" 200 78 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:47 +0800] "POST /ncp-launcher.php HTTP/2.0" 200 78 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:48 +0800] "POST /ncp-launcher.php HTTP/2.0" 200 78 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:49 +0800] "POST /ncp-launcher.php HTTP/2.0" 200 78 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:49 +0800] "POST /ncp-launcher.php HTTP/2.0" 200 78 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:49 +0800] "POST /ncp-launcher.php HTTP/2.0" 200 78 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:46:50 +0800] "POST /ncp-launcher.php HTTP/2.0" 200 78 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:47:01 +0800] "GET / HTTP/2.0" 200 2472 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:47:01 +0800] "GET /ncp.css HTTP/2.0" 200 5786 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:47:01 +0800] "GET /ncp.js HTTP/2.0" 200 1388 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:47:01 +0800] "GET /loading-small.gif HTTP/2.0" 200 1771 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:47:01 +0800] "GET /minified.js HTTP/2.0" 200 8360 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:47:01 +0800] "GET /ncp-logo.png HTTP/2.0" 200 4842 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:47:04 +0800] "POST /ncp-launcher.php HTTP/2.0" 200 102 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:08:47:05 +0800] "POST /ncp-launcher.php HTTP/2.0" 200 0 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:19:04:30 +0800] "GET / HTTP/2.0" 200 2472 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:19:04:36 +0800] "GET /ncp.js HTTP/2.0" 200 1388 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:19:04:36 +0800] "GET /minified.js HTTP/2.0" 200 8360 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:19:04:36 +0800] "GET /ncp-logo.png HTTP/2.0" 200 4842 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:19:04:36 +0800] "GET /loading-small.gif HTTP/2.0" 200 1771 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:19:04:36 +0800] "GET /ncp.css HTTP/2.0" 200 5786 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
127.0.1.1:4443 johnjohnson - - [15/Aug/2017:19:04:36 +0800] "GET /favicon.png HTTP/2.0" 200 1825 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0"
mariaDB logs
● mariadb.service - MariaDB database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled)
Active: active (running) since Tue 2017-08-15 08:51:22 +08; 10h ago
Process: 1085 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Process: 1082 ExecStartPost=/etc/mysql/debian-start (code=exited, status=0/SUCCESS)
Process: 810 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=`/usr/bin/galera_recovery`; [ $? -eq 0 ] && systemctl set-environment _WSREP_START_POSITION=$VAR || exit 1 (code=exited, status=0/SUCCESS)
Process: 790 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Process: 750 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS)
Main PID: 909 (mysqld)
Status: "Taking your SQL requests now..."
CGroup: /system.slice/mariadb.service
└─909 /usr/sbin/mysqld
Warning: Unit file changed on disk, 'systemctl daemon-reload' recommended.
2017-08-15 8:42:09 1638433776 [Note] /usr/sbin/mysqld: Normal shutdown
2017-08-15 8:42:09 1638433776 [Note] Event Scheduler: Purging the queue. 0 events
2017-08-15 8:42:09 1426060272 [Note] InnoDB: FTS optimize thread exiting.
2017-08-15 8:42:09 1638433776 [Note] InnoDB: Starting shutdown...
2017-08-15 8:42:10 1638433776 [Note] InnoDB: Waiting for page_cleaner to finish flushing of buffer pool
2017-08-15 8:42:14 1638433776 [Note] InnoDB: Shutdown completed; log sequence number 29848256
2017-08-15 8:42:15 1638433776 [Note] /usr/sbin/mysqld: Shutdown complete
2017-08-15 8:42:30 1989226496 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2017-08-15 8:42:30 1989226496 [Note] InnoDB: The InnoDB memory heap is disabled
2017-08-15 8:42:30 1989226496 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2017-08-15 8:42:30 1989226496 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2017-08-15 8:42:30 1989226496 [Note] InnoDB: Compressed tables use zlib 1.2.8
2017-08-15 8:42:30 1989226496 [Note] InnoDB: Using Linux native AIO
2017-08-15 8:42:30 1989226496 [Note] InnoDB: Using generic crc32 instructions
2017-08-15 8:42:30 1989226496 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2017-08-15 8:42:30 1989226496 [Note] InnoDB: Completed initialization of buffer pool
2017-08-15 8:42:30 1989226496 [Note] InnoDB: Highest supported file format is Barracuda.
2017-08-15 8:42:31 1989226496 [Note] InnoDB: 128 rollback segment(s) are active.
2017-08-15 8:42:31 1989226496 [Note] InnoDB: Waiting for purge to start
2017-08-15 8:42:31 1989226496 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.35-80.0 started; log sequence number 29848256
2017-08-15 8:42:53 1442837488 [Note] InnoDB: Dumping buffer pool(s) not yet started
2017-08-15 8:42:53 1989226496 [Note] Plugin 'FEEDBACK' is disabled.
2017-08-15 8:42:54 1989226496 [Note] Server socket created on IP: '127.0.0.1'.
2017-08-15 8:42:54 1989226496 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.1.23-MariaDB-9+deb9u1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 Raspbian 9.0
2017-08-15 8:51:02 1639437296 [Note] /usr/sbin/mysqld: Normal shutdown
2017-08-15 8:51:02 1639437296 [Note] Event Scheduler: Purging the queue. 0 events
2017-08-15 8:51:02 1421865968 [Note] InnoDB: FTS optimize thread exiting.
2017-08-15 8:51:02 1639437296 [Note] InnoDB: Starting shutdown...
2017-08-15 8:51:03 1639437296 [Note] InnoDB: Waiting for page_cleaner to finish flushing of buffer pool
2017-08-15 8:51:04 1639437296 [Note] InnoDB: Shutdown completed; log sequence number 30166948
2017-08-15 8:51:04 1639437296 [Note] /usr/sbin/mysqld: Shutdown complete
2017-08-15 8:51:20 1989193728 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2017-08-15 8:51:20 1989193728 [Note] InnoDB: The InnoDB memory heap is disabled
2017-08-15 8:51:20 1989193728 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2017-08-15 8:51:20 1989193728 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2017-08-15 8:51:20 1989193728 [Note] InnoDB: Compressed tables use zlib 1.2.8
2017-08-15 8:51:20 1989193728 [Note] InnoDB: Using Linux native AIO
2017-08-15 8:51:20 1989193728 [Note] InnoDB: Using generic crc32 instructions
2017-08-15 8:51:20 1989193728 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2017-08-15 8:51:20 1989193728 [Note] InnoDB: Completed initialization of buffer pool
2017-08-15 8:51:20 1989193728 [Note] InnoDB: Highest supported file format is Barracuda.
2017-08-15 8:51:21 1989193728 [Note] InnoDB: 128 rollback segment(s) are active.
2017-08-15 8:51:21 1989193728 [Note] InnoDB: Waiting for purge to start
2017-08-15 8:51:21 1989193728 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.35-80.0 started; log sequence number 30166948
2017-08-15 8:51:21 1447031792 [Note] InnoDB: Dumping buffer pool(s) not yet started
2017-08-15 8:51:21 1989193728 [Note] Plugin 'FEEDBACK' is disabled.
2017-08-15 8:51:22 1989193728 [Note] Server socket created on IP: '127.0.0.1'.
2017-08-15 8:51:22 1989193728 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.1.23-MariaDB-9+deb9u1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 Raspbian 9.0
I replaced the IPs for you.
Did you move the datadir?
Oh yes, but that's the only thing major that I changed.
EDIT: I must add that fail2ban did work at one time even if I changed my datadir, but now it does not work. The datadir is still the same place
can you do tail -f /var/www/nextcloud/data/nextcloud.log ( or wherever you configured logs when you set up fail2ban ) and then refresh the Nextcloud webpage, and tell me if you see new lines coming in as you do so?
Yes, there are new lines coming in
EDIT: I also changed the default values on fail2ban . MAXRETRY = 3 BANTIME = 3600 it works.
Then after noticing it doesn't work, I tried the default values, doesn't work. So default values and modified values don't work...
Updated to nextcloud 12.0.2 via the command line
cd /var/www/nextcloud/updater then sudo -u www-data php updater.phar
EDIT: Tried disable and then enable, same result
output of
sudo fail2ban-client status nextcloud
?
Updated to nextcloud 12.0.2
So, you are on 12.0.2 all this time?
sudo fail2ban-client status nextcloud no updates on counter.
So, you are on 12.0.2 all this time?
No, I just updated as we speak
:S that's going to make investigating this harder, as the log messages might have changed from version to version.
Still, what is the output of sudo fail2ban-client status nextcloud? I know it's 0 on the counters, but I want to see the log path
Status for the jail: nextcloud
|- filter
| |- File list: /var/www/nextcloud/data/nextcloud.log
| |- Currently failed: 0
| `- Total failed: 0
`- action
|- Currently banned: 0
| `- IP list:
`- Total banned: 0
EDIT: I always log in with a wrong username/password before running the command just to show you that the output never changed, and sure enough it is still 0
thanks, can you paste for me one of the lines in /var/www/nextcloud/data/nextcloud.log that is like this one (from the log, not from the admin page)
{"reqId":"WZMHm38AAQEAAALVHyMAAAEC","level":2,"time":"2017-08-15T14:39:24+00:00","remoteAddr":"192.168.0.13","user":"--","app":"core","method":"POST","url":"\/index.php\/login","message":"Login failed: 'aoeu' (Remote IP: '192.168.0.13')","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:54.0) Gecko\/20100101 Firefox\/54.0","version":"12.0.1.5"}
{"reqId":"WZMHBn8AAQEAAAPTb5wAAA8W","level":2,"time":"2017-08-15T14:37:01+00:00","remoteAddr":"192.168.1.112","user":"--","app":"core","method":"POST","url":"\/index.php\/login","message":"Login failed: 'admin' (Remote IP: '192.168.1.112')","userAgent":"Mozilla\/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko\/20100101 Firefox\/54.0","version":"12.0.2.0"}
It's weird, that should match. It is exactly the same ... btw it's better if you surround your code by triple `
Like this
``` code ```
;)
Okay, I'll remember that 👍
It's weird, that should match
Okay, both our outputs are the same..what now?
EDIT: no firewalls, antiviruses or anything that I could think of that might be causing issues with connectivity...
weird, weird... let's try the fail2ban log
tail /var/log/fail2ban.log
2017-08-16 20:23:07,928 fail2ban.actions[921]: INFO Set banTime = 3600
2017-08-16 20:23:08,115 fail2ban.jail [921]: INFO Creating new jail 'nextcloud'
2017-08-16 20:23:08,115 fail2ban.jail [921]: INFO Jail 'nextcloud' uses pyinotify
2017-08-16 20:23:08,127 fail2ban.jail [921]: INFO Initiated 'pyinotify' backend
2017-08-16 20:23:08,137 fail2ban.filter [921]: INFO Added logfile = /var/www/nextcloud/data/nextcloud.log
2017-08-16 20:23:08,140 fail2ban.filter [921]: INFO Set maxRetry = 3
2017-08-16 20:23:08,142 fail2ban.filter [921]: INFO Set findtime = 600
2017-08-16 20:23:08,145 fail2ban.actions[921]: INFO Set banTime = 3600
2017-08-16 20:23:08,172 fail2ban.jail [921]: INFO Jail 'ssh' started
2017-08-16 20:23:08,178 fail2ban.jail [921]: INFO Jail 'nextcloud' started
EDIT: Looks normal to me !
weird!!!
locale -a
?
C
C.UTF-8
en_GB.utf8
POSIX
New command..don't know it's output, what'd you think? Okay..it's just locales..
lol everything seems ok. Plus it works on my end. Let's see this
fail2ban-regex /var/www/nextcloud/data/nextcloud.log /etc/fail2ban/filter.d/nextcloud.conf
Running tests
=============
Use failregex file : /etc/fail2ban/filter.d/nextcloud.conf
Use log file : /var/www/nextcloud/data/nextcloud.log
Results
=======
Failregex: 113 total
|- #) [# of hits] regular expression
| 1) [113] Login failed.*Remote IP.*'<HOST>'
`-
Ignoreregex: 0 total
Date template hits:
|- [# of hits] date format
| [540] ISO 8601
`-
Lines: 540 lines, 0 ignored, 113 matched, 427 missed
Missed line(s): too many to print. Use --print-all-missed to print all 427 lines