No route to host when connect using instance private ip address

0

OS: Amazon Linux 2023

I'm able to connect to the local server within the instance using 127.0.0.1, but I receive "No route to host" when connecting using instance's private IP address (e.g. 10.0.22.42). I am able to connect to this IP address from a different instance within the same VPC.

What I need to do so I can connect to a local server in the same instance using instance's private IP address?

Thanks, Kevin

preguntada hace 7 meses397 visualizaciones
3 Respuestas
0
Respuesta aceptada

The issue is in the iptables configuration: -P FORWARD DROP

respondido hace 7 meses
0

Are you 100% sure the IP address is correct? Any screenshots would be benifical too.

profile picture
EXPERTO
respondido hace 7 meses
0

Hi Gary,

Thanks for responding. Yes, the IP address is 100% correct. It's like caused by recent version of Docker.

Enter image description here

Running Docker version 24.0.5, build ced0996

respondido hace 7 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas