How to setup a port forwarding DNAT for a VM in RHEL8/9
Issue
- DNAT rules for VM destinations in firewall(iptables/nftable) are preempted by LIBVIRT* rules
virtnetworkd
builds LIBVIRT* rules that breakfirewalld
DNAT rules for VM traffic- LIBVIRT_* iptables/nftable rules block traffic explicitly allowed by
firewalld
rules.
Environment
Red Hat Enterprise Linux 8 (RHEL8)
Red Hat Enterprise Linux 9 (RHEL9)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.