I deploy a VM with no issues. but have issues with the network connection to it as follows:
When using Bridge mode:
VM inbound: Traffic is only allowed from the VM subnet network to the VM server.
VM outbound: Traffic is only allowed from the VM server to the VM subnet network
It means that I can't ping/SSH the VM if my source server is on a different network (but I can reach that VM host).
When using NAT mode:
VM inbound: Traffic allowed, only from the Physical Host to VM
VM outbound: The VM can ping/SSH to any address
It means that I can't ping/SSH the VM if my source server is on a different network (but I can reach that VM host).
I notice that when using "nat" mode, the physical host gets iptables roles which block the connections. but even if deleting iptables rules, the connections are still blocked.
I'm trying to find a way, which will allows me to reach the new deployed VM from any server on my network (which has a route to the VM physical host) as well to be able to connect any server from inside the VM.
System Information
Linux distribution
Centos7
Terraform version
Provider and libvirt versions
__
Description of Issue/Question
I deploy a VM with no issues. but have issues with the network connection to it as follows:
When using Bridge mode:
When using NAT mode:
I notice that when using "nat" mode, the physical host gets iptables roles which block the connections. but even if deleting iptables rules, the connections are still blocked.
Setup
Relevant main.tf part (in nat mode):
Additional information:
I'm trying to find a way, which will allows me to reach the new deployed VM from any server on my network (which has a route to the VM physical host) as well to be able to connect any server from inside the VM.
Appreciate any help.
Thanks, Lavi