Hi @Woabashaun
Thanks for the log lines, they make the pattern clear.
At 18:30:34 the editor sent four POSTs to proxy.php within the same second. The first three got a 200, the fourth got the 404, and from then on every request from 192.168.1.157 got the same 404 for a few seconds, including the reconnect attempts. coolwsd never saw the failing requests, which is why there is nothing about them in coolwsd.log.
That is probably mod_evasive, which is in your module list. It counts requests per client IP and per URL path, without the query string. With the built-in CODE server every editor message goes to the same path, .../richdocumentscode/proxy.php, so a busy second of editing looks like many hits on one page. With the default settings (DOSPageCount 2 in a 1 second interval) the fourth request in one second is the one that gets blocked, which is exactly what your log shows. The client IP is then put on hold for DOSBlockingPeriod seconds, and each new request during the hold extends it, so the reconnect attempts cannot get through. Another user hit the same problem with the built-in CODE server: Built-in CODE server triggers mod-evasive.
Two things I can’t explain yet: mod_evasive normally answers with 403 rather than 404, and I don’t know why Chromium reaches the limit while Firefox does not (perhaps its requests arrive closer together). So please confirm it with a quick test:
- Look for traces of a block:
grep -i blacklisting /var/log/syslog ls -l /tmp/dos-* /var/log/mod_evasive/ 2>/dev/null grep -i 'client denied' /var/log/apache2/error.log | tail - Turn mod_evasive off for a moment and try Chromium again:
sudo a2dismod evasive sudo systemctl restart apache2 - If Chromium works then, turn it back on with
sudo a2enmod evasiveand give it more room in/etc/apache2/mods-available/evasive.conf, for example:DOSWhitelist 192.168.1.* DOSPageCount 50DOSWhitelistlets your own network through untouched, and a higherDOSPageCounthelps users who come from outside.DOSSiteCountcounts every request from one IP, so raise it as well if you still see blocks. Restart Apache after each change.
If Chromium still fails with mod_evasive off, test ModSecurity the same way (sudo a2dismod security2). Its audit log, usually /var/log/apache2/modsec_audit.log, would show which rule matched.
Let me know how the test goes.
Thanks
Darshan