L
Ne regrette pas Docker, tu y es presque, il y a juste deux petits ajustements à faire dans ton script : Dans ton compose.yaml, le volume monté sur l'hôte est /home/pi/domoticz/userdate (attention d'ailleurs à la faute de frappe userdate au lieu de userdata). Ton cat doit donc écrire directement dedans : cat /etc/letsencrypt/live/moulins58.com/privkey.pem /etc/letsencrypt/live/moulins58.com/fullchain.pem > /home/pi/domoticz/userdate/server_cert.pem Comme tu as défini container_name: domoticz, tu…
L
There are about thirty Apache fail2ban filters here (trying to execute PHP on a static site, looking at WordPress's plugin directory and getting a 404 i.e. scanning for vulnerable ones, posting a comment classed as spam, looking for git directories etc etc) rather than one. It could also be one of the endless attempts to login via ssh. Or many other things. [quote="ryan.whitaker321, post:13, topic:253368"]If you'd rather not leave fail2ban off for good [/quote] If I didn't have fail2ban…
L
TitleTagTitan: Hello, I’ve added this to the script. #!/bin/sh cat /etc/letsencrypt/live/moulins58.com/privkey.pem /etc/letsencrypt/live/moulins58.com/fullchain.pem > /home/pi/domoticz/server_cert.pem docker restart 5fbf9faac930 My compose.yaml file is as follows: `services: domoticz: image: domoticz/domoticz:latest container_name: domoticz restart: unless-stopped # Passer les appareils au conteneur # devices: # - "/dev/serial/by-id/usb-0658_0200-if00-port0:/dev/ttyACM0" ports: - "8080:8080" -…
L
Ça explique tout : si Domoticz tourne dans Docker, il n'y a pas de service systemd à redémarrer, donc la commande ne sort rien et le hook ne trouve pas domoticz.service. Dans le script, remplace la ligne systemctl par docker restart suivi du nom du conteneur (tu le vois avec docker ps). Regarde aussi dans ton docker-compose ou ton docker run quel dossier est monté dans le conteneur : le cat ... > server_cert.pem doit écrire dans ce dossier-là, sinon Domoticz ne verra jamais le nouveau…
L
If you'd rather not leave fail2ban off for good, sudo fail2ban-client status lists the jails and sudo fail2ban-client status <jail> shows which IPs each one has banned, so you can see exactly which jail is catching the validation requests. It's usually one overly broad filter, and tightening that single regex (or adding the pre/post-hook rule jvanasco mentioned) lets renewals through while keeping the rest of the protection.
L
superian: I could, but that's not what's triggering the ban (although other sniffing around .well-known does!) The popular way to solve this is to use iptables chain rules. The pre-hook inserts the rule at the top, allowing all http traffic to port 80. The post-hook drops the rule. This gets around fail2ban false positives, because that app uses an iptables chain rule itself, and your hook will be inserted above it. Certbot has pre & post hooks. If your client does not, you can wrap the client…
L
MikeMcQ: Can you tell fail2ban not to check HTTP requests to the /.well-known/acme-challenge path? I could, but that's not what's triggering the ban (although other sniffing around .well-known does!) A lot of naughty stuff comes from AWS servers - and if something has put the IP address on the naughty step, it doesn't matter where another user of that address wants to look, it doesn't get in. The bans don't start long, but if an IP address repeatedly gets banned, the ban period gets longer and…
L
superian: Is there a list of the IPv4 addresses the real Let's Encrypt server uses somewhere or does it depend on whatever else is going on at its end? No. The IP at the LE validation centers rotate regularly. They do not publish them. See this FAQ topic: FAQ - Let's Encrypt Can you tell fail2ban not to check HTTP requests to the /.well-known/acme-challenge path?
L
A trial of creating a new site and getting a certificate for it also failed. What has worked is stopping fail2ban on the server = it was indeed a firewall issue (thanks all) stopping the real Let's Encrypt server getting through. It looks very much like the IP address(es) used by it did something that looked naughty enough to be banned in a way that the staging server's numerous ones do not. Several servers I use have exactly the same fail2ban jails, so it's interesting that they haven't had a…
L
superian: Mostly, that's done by blocking the IP addresses of ones that do, but this request clearly gets through and is only then denied. It doesn't get through though. It was a "connection refused" The log entry with the Discourse IP wasn't from Let's Encrypt.
L
rg305: That IP is NOT LE. Interestingly it looks to belong to a Discourse hosting. It has the same token as the "connection refused" error so maybe they posted the failing URL somewhere else and got hit by Discourse URL spam protection or something. Just guessing rg305: It get's a 301 probably because that file no longer exists Maybe. I think a 404 is more likely but 301 is possible for sure
L
It will be all IPv4 traffic. There is no proxy or front-end service in front of Apache. It is not impossible - it's been a while since the server was set up and I would have to look at numerous places, as well as comparing this one with others that are working - that something is set to refuse what it thinks are nosey bots looking in sensitive directories. Mostly, that's done by blocking the IP addresses of ones that do, but this request clearly gets through and is only then denied. Hmm, the…
L
superian: 184.105.99.100 That IP is NOT LE. It get's a 301 probably because that file no longer exists.
L
For --dry-run superian: example.com:80 47.129.198.222 - - [18/Nov/2026:18:18:37 +0000] "GET /.well-known/acme-challenge/MY2qSqau7j3TnesGmBJtsb1CTZ5uZVmr9jbjOmfo10Y HTTP/1.1" 200 292 "-" "Mozilla/5.0 (compatible; Let's Encrypt validation server; +https://www.letsencrypt.org)" Not --dry-run: superian: If I look at the apache logfiles after the renewal attempt, I see this: example.com:80 184.105.99.100 - - [18/Nov/2026:18:27:14 +0000] "GET /.well-known/acme-c…
L
I just now renewed a cert using production Let's Encrypt and it is still using the user-agent it always has. All 7 validation centers used the same user-agent. Could you have some proxy or other front-end service that is forwarding the request to your backend Apache and modifying the user-agent?
L
superian: Has the user-agent for the real server changed recently, and if so, why??? I don't speak for Let's Encrypt, but I doubt it. I would expect them to announce such a change, and don't know why they would make it. The most recent change they've announced took effect on November 10, where they added more some remote perspectives. They did do some datacenter maintenance on Nov. 3, and for a bit after that had some occasional IPv6 networking issues. So maybe you're getting traffic from a…
L
I have a Ubuntu 24.04 server with a bunch of websites on it. It has been working well. About two weeks ago, one successfully renewed its certificate. Since then, none of the others have, and they now all have under 30 days validity for their certificates. If I try certbot dry-run, it doesn't think there are any issues. If I try certbot renew, it does (see output below!) If I look at the apache logfiles after the dry-run, I see this: example.com:80 64.78.194.68 - - [18/Nov/2026:18:18:36 +0000]…
L
When I run this command, nothing happens. systemctl list-units --type=service | grep -i domoticz Could it be due to the fact that Domoticz is running in Docker? Good evening
L
Ça veut juste dire que le service ne s'appelle pas domoticz sur ton Pi. Essaie systemctl list-units --type=service | grep -i domoticz pour voir le vrai nom. Si rien ne sort, il est peut-être lancé par un script init (du genre /etc/init.d/domoticz.sh restart), et c'est cette commande qu'il faudrait mettre dans le hook à la place de systemctl.
L
Hello, I had omitted the beginning of that line. However, I’m encountering another error when trying to test the configuration: sudo /etc/letsencrypt/renewal-hooks/deploy/domoticz.sh Failed to restart domoticz.service: Unit domoticz.service not found. Good afternoon, and thank you for the advice.
L
Cette erreur vient presque sûrement du collage : la longue ligne cat ... > /home/pi/domoticz/server_cert.pem a été coupée en deux juste après le >. Rouvre le fichier avec sudo nano, remets tout ce qui va de cat jusqu'à server_cert.pem sur une seule ligne, enregistre et relance le script.
L
thermometer: I had appreciated the transparency of Let's Encrypt. It's mandatory.
L
rg305: It's a never-ending race Oh, I agree. As a long-time user of openBSD and its approach to security, I am reminded of what they have said ... And Ii paraphrase... Security is not a destination, but a journey.
L
For starters, many thanks for the quick reply. That aside. OK, Yeah, I had appreciated the transparency of Let's Encrypt. But your reply informs me of the reason for that transparency. A reason I agree with. Thanks for your reply. I now know more than I did an hour ago.
L
"the first to find the vulnerability wins" [they get control of (pown) your system] It's a never-ending race; and bad actors are competing against each other, so, they employ everything they can to win - Which today means AI aided plans of attack. If you're not ready to defend/protect an asset from the entire Internet, then it should not be connected to the entire Internet. [someone should have told the guys that connected all their refrigerators to the entire Internet] It is the world we live…
L
Yes. It's not specific to Let's Encrypt. All certificates are listed in Certificate Transparency logs, which helps the Internet make sure that the Certificate Authorities are following the rules, but also serves as a convenient source for "the bad guys" to get a list of sites. If they didn't get it from that, though, they'd get it from somewhere else. For some resources to help you in searching through the Certificate Transparency logs yourself: Certificate Transparency Search Resources…
L
... that within an hour after obtaining a Let's Encrypt cert, there are multiple, I'll say, probes of the website for which the cert was issued? And, btw, thank-you to the Let's Encrypt team for making it so easy for me to obtain certs for my websites. But I do want to note the apparent nefarious aspect that seems to be present.
L
Thanks for your feedback. It was geo locatiom block issue. All working! Manu Thanks !!!! Pastel de nata for all!!
L
Since it's the secondary validation that times out, I'd look for geo-blocking. Let's Encrypt also checks from other regions, so if the host or firewall only lets in traffic from Portugal, the primary check passes and the others time out. That would also fit hanyuwei70 not reaching it from Japan.
L
You can retry on staging server to check if it is temporary network issue. What method are you using? If it is webroot, I can't access your http://qld.acp.medicosemcasa.pt/.well-known/acme-challenge/ from my vps (Japan), mostly because of firewall problem?