Libvirt / KVM subnet - 10.1.1.0/24 installed on that host, on virbr0
Access to upstream router (via hosting provider)
ip forwarding is on.
We can:
ssh to the host.
ssh to the VM from the host
access the internet from both the host and VM
However we are banging our heads on port forwarding from say 0.0.0.0:32122 (host) → 22 (VM)
This is advance of forwarding various ports to different VMs.
What are we doing wrong?
(Will provide configs on request)
TIA - Patrick
yes. that is a test port, but we’d be using VMs to host web (80 & 443) and email as soon as we can work out what is going on. I havent posted the configs only because dont want to upload pages of irrelevant stuff.
Let me know what you need and I’ll provide. For example:
My network guy says has been through everything and says it should work, but we are both new to firewalld - he is a Juniper guy, and we are migrating some customers off our Juniper-based vlan enabled cloud to something more manageable for them.
Please use preformatted text when posting computer output (and input).
This rule should be enough as long as forwarding is enabled (cat /proc/sys/net/ipv4/ip_forward). libvirt installs its own rules which may additionally block traffic. Upload the full output of the following commands to the https://paste.opensuse.org/
output is here openSUSE Paste
The last command generated the error that read, in part: iptables v1.8.7 (legacy): can't initialize iptables table '-nat': Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded.
Have the latest kernel for 15.6.
Going back to basics worked, as did a bit of essential info from serverfault.com .
The libvirt network type on the host needs to be route rather than nat (defined in the XML of the bridge), then the firewall entry is a one liner: