Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Timeout during connect (likely firewall problem)" while renewing Certbot [closed]

I am facing the following error when I try to renew my ssl certificate using

certbot renew

Challenge failed for domain ***********.com

Some challenges have failed.

The following errors were reported by the server:

Domain: arjunbroker.com Type: connection Detail: Fetching http://arjunbroker.com/.well-known/acme-challenge/F9nlyrRQBpJGOpPLHGPCj1vzdJOd_rBISU7q2aX7t_o: Timeout during connect (likely firewall problem)

I have checked UFW and firewalld. And both port 80 and 443 are open.

like image 821
umunBeing Avatar asked Jun 26 '26 21:06

umunBeing


2 Answers

I fixed that in AWS EC2 updating the Group Security like this: enter image description here

More about EC2 Group Security: https://docs.aws.amazon.com/pt_br/AWSEC2/latest/UserGuide/ec2-security-groups.html

like image 89
Mateus Alves de Oliveira Avatar answered Jun 28 '26 17:06

Mateus Alves de Oliveira


I finally realised that prior to installing SSL on this server, I used to forward port 80 to port 8080 using

 sudo /sbin/iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080

So I simply forwarded port 80 back to port 80.

Lesson learnt, for Certbot to work port 80 forwarding should be in place.

like image 34
umunBeing Avatar answered Jun 28 '26 17:06

umunBeing



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!