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

gefragt vor 7 Monaten396 Aufrufe
3 Antworten
0
Akzeptierte Antwort

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

beantwortet vor 7 Monaten
0

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

profile picture
EXPERTE
beantwortet vor 7 Monaten
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

beantwortet vor 7 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen