I am using Let’s Encrypt for a FreePBX cert. FreePBX’s LE Responsive Rules are enabled. My understanding is that port 80 will be opened only during a cert renewal period.
However, more than 12 hours after a successful cert renewal, port 80 remains open. curl’s from a public IP receive a response:
$ curl mypbx.mydomain.com shows…
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access this resource.</p>
</body></html>
If I place a test file in the LE challenge folder, that file is successfully served:
$ curl -i mypbx.mydomain.com/.freepbx-known/test.txt shows…
HTTP/1.1 200 OK
Date: Wed, 23 Oct 2024 09:28:15 GMT
Server: Apache
Last-Modified: Wed, 23 Oct 2024 09:28:08 GMT
ETag: "15-6252180f9846b"
Accept-Ranges: bytes
Content-Length: 21
Content-Type: text/plain
this is only a test
Repeated requests will eventually trigger fail2ban to block that IP.
Is this behaviour expected?