Accéder au port 80 d'une instance cloud
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Question

Accéder au port 80 d'une instance cloud

by
Community Deleted user
Created on 2021-04-04 08:57:31 (edited on 2024-09-04 13:48:19) in Public Cloud OVHcloud

Bonjour,
J'essaye d'installer une appli web sur une instance cloud (ubuntu 20.04) mais je n'arrive pas à y accéder.
Cette instance est construite avec Terraform et dispose de 2 connexions réseau, une private et une liée à Ext-Net, soit le réseau internet.

Je peut me connecter en ssh sur la machine sans soucis depuis mon ordi.
Je peux curl chacune des ip de l'instance sur le port 80 depuis l'instance.
Je n'arrive pas à curl le port 80 de l'ip publique.

J'ai activé le firewall sur l'ip publique et configurée comme recommandé ici (https://docs.ovh.com/fr/dedicated/firewall-network/) mais rien n'y fait.

un map sur l'instance donne ceci :
(adresse privée)
nmap -p22,80 172.31.3.247
Starting Nmap 7.80 ( https://nmap.org ) at 2021-04-04 08:49 UTC
Nmap scan report for host-172-31-3-247.openstacklocal (172.31.3.247)
Host is up (0.0011s latency).

PORT STATE SERVICE
22/tcp open ssh
80/tcp open http

Nmap done: 1 IP address (1 host up) scanned in 0.05 seconds

(adresse publique)
nmap -p22,80 152.228.160.24
Starting Nmap 7.80 ( https://nmap.org ) at 2021-04-04 08:55 UTC
Nmap scan report for dev-c3-infra-radar-swarm-manager (152.228.160.24)
Host is up (0.00046s latency).

PORT STATE SERVICE
22/tcp open ssh
80/tcp open http

Nmap done: 1 IP address (1 host up) scanned in 0.05 seconds

et enfin depuis mon ordi, sur l'adresse publique :
nmap -p80,22,443 152.228.160.24
Starting Nmap 7.91 ( https://nmap.org ) at 2021-04-04 10:33 CEST
Nmap scan report for 152.228.160.24
Host is up (0.016s latency).

PORT STATE SERVICE
22/tcp open ssh
80/tcp filtered http
443/tcp closed https

Nmap done: 1 IP address (1 host up) scanned in 1.49 seconds

Je ne sais plus où chercher, pourquoi cette instance ne semble pas accessible depuis l'extérieur en dehors du port 22...