Re: [libvirt] How to prevent libvirt from adding iptables rules?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Daniel P. Berrange wrote:
> On Thu, Apr 02, 2009 at 10:16:13AM +0200, Ludwig Nussel wrote:
> > Daniel P. Berrange wrote:
> > > On Tue, Mar 31, 2009 at 04:08:24PM -0300, Mariano Absatz wrote:
> > > > [...]
> > > > I modified my VMs to use isolated rather than default, but rules keep 
> > > > being added to iptables when libvirt-bin is started.
> > > > 
> > > > Is there a way to convince libvirt not to add these rules?
> > > 
> > > No, libvirt needs to add the rules here because otherwise the guest
> > > virtual network would not be guarenteed to be isolated from the host
> > > network.
> > 
> > Messing with iptables rules isn't guaranteed to work either. Esp if the
> > existing firewall is re-run. SuSEfirewall2 for example runs when
> > interfaces come or go so it will kill any rules that someone added
> > behind it's back.
> 
> We have a similar issue with the Fedora equivalent of SuSSfirewall, and
> it provides a mechanism for us to register the set of rules we want, so
> when it is re-run, it re-adds our rules.

SuSEfirewall2 does not have such a mechanism and TBH I pretty much
dislike the idea of allowing applications to inject arbitrary rules.
I'd prefer some higher level abstraction so it's left to the
firewall to decide how to translate the request into actual iptables
rules (or whatever else technology is used in the background).

cu
Ludwig

-- 
 (o_   Ludwig Nussel
 //\   
 V_/_  http://www.suse.de/
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]