Score:0

No route to host, strange behavior

es flag

On my Fedora35 host I'm running a KVM virtual machine with a bringed network. When I try to connect to port 80 of the virtual machine from the host I'm getting no route to host, but all working fine for port 22

Please help me to understand why routing depends on the port number, which setting controls this behavior?

enter image description here

A.B avatar
cl flag
A.B
Disable the firewall on the VM and try again
Score:0
cl flag
A.B

With basic installation and settings, this can only happen because there is a firewall on the VM. (there could be other causes, but not without customization that would be done by the administrator).

Disable the firewall and try again.

If you don't know how to disable the firewall, and the system on the VM is running Linux, have the command iptables available and do this until you figure out better:

iptables -I INPUT -j ACCEPT
4snok avatar
es flag
Ok, it's a firewall thing, I forgot to reload firewall-cmd on the guest (rhel8.5) when openned port 80; what is still no clear to me why the host reported **no router to host**, not _connection timeout_ or _connection refused_; I wouldn't post this topic then
Matthew Ife avatar
jo flag
The "reject" clause in the firewall respond to the host with an ICMP error code "admin-prohibited" which sending programs return as error code of `EHOSTUNREACH` for. When its rejected as no port is listening, a TCP reset is returned instead which programs interpret as `ECONNREFUSED`. The ICMP option is arguably a better netizenship way of doing it as its protocol independent.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.