Freebox VM url:port ---> Certbot n'a pas réussi à authentifier mon domaine

Bonjour,
Je veux installer un serveur Web derrière Nginx sur une VM dans ma Freebox.
J'ai obtenu de Free le domaine baif.freeboxos.fr
Actuellement je ne peux accéder à mon site qu'avec une redirectiion de port que j'ai ouvert comme suit
38600 / 80
38603 / 443
baif.freeboxos.fr:38600 aboutit à la page de Nginx
Mais dans la commande sudo certbot --nginx je ne peux pas entrer une redirection de port! Comment faire ?
J'ai tenté de me créer une adresse de redirection via no-ip qui permet d'intéger la redirection de port: baif.ddns.net ---> baif.freeboxos.fr:38600
Ainsi baif.ddns.net aboutit à la page de Nginx

Mais le résultat échoue toujours avec sudo certbot --nginx si j'entre: baif.ddns.net

Toute aide sera la bienvenue
Merci d'avance

Je peux lire des réponses en Anglais : avec google translate !

Mon nom de domaine est : baif.freeboxos.fr:38600 ou baif.ddns.net

J’ai exécuté 3 commandes successive voir ci-dessous
sudo certbot --nginx
ls -l /etc/nginx/sites-enabled/
ls -l /etc/nginx/

Elle a produit ces sorties :
sudo certbot --nginx

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Please enter the domain name(s) you would like on your certificate (comma and/or
space separated) (Enter 'c' to cancel): baif.freeboxos.fr
Requesting a certificate for baif.freeboxos.fr

Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
Domain: baif.freeboxos.fr
Type: connection
Detail: 88.177.128.2: Fetching http://baif.freeboxos.fr/.well-known/acme-challenge/gIMvk0NZJZNt--XXtaW_DwHBTIm-JEd1U-GUh7Ri5LY: Error getting validation data

Hint: The Certificate Authority failed to verify the temporary nginx configuration changes made by Certbot. Ensure the listed domains point to this nginx server and that it is accessible from the internet.

Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.

freebox@Bacouel-Debian11:~$ ls -l /etc/nginx/sites-enabled/**

total 0
lrwxrwxrwx 1 root root 34 Dec 22 11:42 default -> /etc/nginx/sites-available/default

freebox@Bacouel-Debian11:~$ ls -l /etc/nginx/

total 64
drwxr-xr-x 2 root root 4096 Nov 11 13:43 conf.d
-rw-r--r-- 1 root root 1125 May 29 2021 fastcgi.conf
-rw-r--r-- 1 root root 1055 May 29 2021 fastcgi_params
-rw-r--r-- 1 root root 2837 May 29 2021 koi-utf
-rw-r--r-- 1 root root 2223 May 29 2021 koi-win
-rw-r--r-- 1 root root 3957 May 29 2021 mime.types
drwxr-xr-x 2 root root 4096 Nov 11 13:43 modules-available
drwxr-xr-x 2 root root 4096 Dec 22 11:42 modules-enabled
-rw-r--r-- 1 root root 1447 May 29 2021 nginx.conf
-rw-r--r-- 1 root root 180 May 29 2021 proxy_params
-rw-r--r-- 1 root root 636 May 29 2021 scgi_params
drwxr-xr-x 2 root root 4096 Dec 22 11:42 sites-available
drwxr-xr-x 2 root root 4096 Dec 22 11:42 sites-enabled
drwxr-xr-x 2 root root 4096 Dec 22 11:42 snippets
-rw-r--r-- 1 root root 664 May 29 2021 uwsgi_params
-rw-r--r-- 1 root root 3071 May 29 2021 win-utf

Mon serveur Web est : Nginx

Le système d’exploitation sur lequel mon serveur Web s’exécute est (version incluse) : Debian 11 en VM sur freebox

Mon hébergeur, est : ma freebox en VM

Je peux me connecter à un shell root sur ma machine : oui ssh

J’utilise un panneau de configuration pour gérer mon site: non uniquement en ligne de commande

is your site open for internet? I can't access that site from my home

4 Likes

LE can only validate on port 80.
Are you using the external port 38600 to reach the internal port 80?

3 Likes

Exactly that's what I wrote in my help request :wink:

I have indicated how you can access my site:
My domain name is: baif.freeboxos.fr:38600 or baif.ddns.net

Currently I can only access my site with port forwarding which I opened as follows
38600 / 80
38603 / 443

http-01 challenge requires you to access challenge page over port 80 from external side. that port forwarding won't do in purpose of acme challenge

3 Likes

To add to @orangepizza

5 Likes

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