Red Hat Bugzilla – Bug 533193
RFE: network: Add iptables rules to a custom chain - allows users to insert rules before libvirt's rules
Last modified: 2017-08-05 08:52:02 EDT
The default iptables rules added by libvirt preclude having any rules set up on your system to forward traffic to a guest as they include putting REJECT rules into the FORWARD chain
We need to re-arrange the way we add iptables rules to address this in a good manner.
Currently we put them directly into the INPUT/OUTPUT/FORWARD chains, inserting at position 0. This makes it hard for admins to put other rules ahead of our own, since every time we start a new guest its rules get placed ahead of custom rules.
What we need todo is to move all our rules to a custom chain. libvirt_INPUT, libvirt_OUTPUT and libvirt_FORWARD. When libvirtd starts up we should create those 3 chains and insert them at position 0 in the main INPUT, OUTPUT & FORWARD chains. When starting VMs the per-VM rules should be in our custom chain.
This will allow admins to add their own rules to the main INPUT, OUTPUT, FORWARD chains and guarentee they'll always be ahead of any of libvirts per-VM rules.
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle.
Changing version to '12'.
More information and reason for this action is here:
Makes sense, moving upstream - it's been like this for a long time now, so there's no particular point in tracking it as a Fedora bug
I'm confused about the status of this issue. Does "moving upstream" mean:
A) a separate bug was submitted in another bug tracker
B) a change in product/component with this remaining the primary bug
In case of A) could we have a URL to the bug?
In case of B) what is the status, has anyone worked on this?
Could the suggestion in comment 1 be implemented in existing installations via manual configuration and if so how should one go about it?
*** Bug 972368 has been marked as a duplicate of this bug. ***
AFAICT this is still relevant with latest libvirt. firewalld may help here, but not all distros use firewalld