Timeout during connect (likely firewall problem)

My domain is:
www.elnuvolet.com

I ran this command:
sudo certbot certonly --webroot -w /var/www/owncloud -d www.elnuvolet.com
also without www:
sudo certbot certonly --webroot -w /var/www/owncloud -d elnuvolet.com

It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for www.elnuvolet.com
Using the webroot path /var/www/owncloud for all unmatched domains.
Waiting for verification…
Cleaning up challenges
Failed authorization procedure. www.elnuvolet.com (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://www.elnuvolet.com/.well-known/acme-challenge/FSng0hzXEGjgUxwk9BFsMB7yd8ofaNotXeIndfyJMkw: Timeout during connect (likely firewall problem)

IMPORTANT NOTES:

  • The following errors were reported by the server:

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

    To fix these errors, please make sure that your domain name was
    entered correctly and the DNS A/AAAA record(s) for that domain
    contain(s) the right IP address. Additionally, please check that
    your computer has a publicly routable IP address and that no
    firewalls are preventing the server from communicating with the
    client. If you’re using the webroot plugin, you should also verify
    that you are serving files from the webroot path you provided.

My web server is (include version):
apache2 -v
Server version: Apache/2.4.29 (Ubuntu)
Server built: 2020-03-13T12:26:16

The operating system my web server runs on is (include version):
cat /etc/os-release
NAME=“Linux Mint”
VERSION=“19.2 (Tina)”
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME=“Linux Mint 19.2”
VERSION_ID=“19.2”
[…]
VERSION_CODENAME=tina
UBUNTU_CODENAME=bionic

My hosting provider, if applicable, is:
https://www.movistar.com

I can login to a root shell on my machine (yes or no, or I don’t know):
yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
no

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot):
certbot --version
certbot 0.31.0

Additional info:

I cheked the url with my phone and i can load the page correctly. there are 3 vhosts:
the first one redirects to https, the secondone adds the www to the url and the third one serves the content.

Also cheked with “check-your-website.server-daten.de”
here

My router is a pfSense, on the NAT table there are two rules that redirect trafic to the internal server. There’s suricata running, stopping it doesn’t change the certbot result.
Also the pfSense updates de IP from the Dynamic DNS noip.com

Internal server firewall
sudo ufw status
Status: active

To                         Action      From
--                         ------      ----               
80/tcp                     ALLOW       Anywhere                  
443/tcp                    ALLOW       Anywhere                  
22/tcp                     ALLOW       192.168.XX.XX
80/tcp (v6)                ALLOW       Anywhere (v6)             
443/tcp (v6)               ALLOW       Anywhere (v6)
1 Like

Hi @Toni-m

if check-your-website is able to connect your domain, but Letsencrypt has a timeout, you have regional filters.

Find and remove these.

1 Like

Good evening and thank you very much for the help.

I had completely forgotten about pfBlockerNG.
Disabling this service in pfSense has fixed the error.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.