New Ubuntu Instance Gets Error "No route to host" For Hosts On External Networks — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Note!! Please register for a free account to access the full content and also to participate in Q&A in the community
Get Started with Redwood: Oracle Cloud SCM and Purchasing

New Ubuntu Instance Gets Error "No route to host" For Hosts On External Networks

edited Mar 3, 2023 6:10PM in Linux

A newly created Ubuntu Instance running in Oracle Cloud Infrastructure (OCI) encounters an error "No route to host" whenever it tries to connect to HTTP and HTTPS services running on hosts on external networks, such as in the following example:

ubuntu@instance:~$ wget http://****.****.****.****

Connecting to ****.****.****.****:80... failed: No route to host.

This error is caused because, in addition to the Egress/Ingress rules allowing the Ubuntu instance to access external hosts needing to be configured within the OCI User Interface, the Ubuntu Instance also needs it's own firewall rules to be setup within its operating system.

To fix this error, do the following:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!