No connection to external IPv4

Rootinator

Member
May 1, 2019
23
0
21
55
Hello,

I use to externally reach my KVM machines, NAT with port forwarding.

Unfortunately, no VM can connect to the external IPv4 of the host.

Otherwise, all VMs can connect to the Internet.

A connection between VM can currently only be established via internal local IPv4.

How can I fix the error?
 
Hello,

I use to externally reach my KVM machines, NAT with port forwarding.

Unfortunately, no VM can connect to the external IPv4 of the host.

Otherwise, all VMs can connect to the Internet.

A connection between VM can currently only be established via internal local IPv4.

How can I fix the error?


You have probably only one public IP - in order to reach different VMs as well as the host by using this address some port forwarding is necessary. The question is what in particular should work (which port to which on which VM) and if the corresponding iptables settings are correct.
 
Port forwarding generally works.

The problem is when VM1 wants to connect to VM2 through the public IP of the host (VM1 => Public IP: Port => VM2). That does not work.

About the internal IP: Port everything works.