Tag Archives: libvirt

Manual networking for KVM

I found the networking configured by libvirt (KVM) did not allow me to firewall the network as I desired.  I use Shorewall for firewalling, and DNSMasq for internal DNS and DHCP.  After a little experimentation, I found that I could configure Ubuntu to create the network.  This allows me to get a reliable firewall configuration with a virtual DMZ.

The virtual hosts are assigned to a bridge, and only have connectivity to other networks as defined in the Shorewall configuration.  A single DNSMasq server provides DSN an DHCP services for all virtual servers, as well as the network the server is connected to.  The network and firewall configuration remains consistent even as servers are cycled up and down.  An additional bridge was created to support virtual servers in the DMZ zone. Continue reading