Prevent KVM/qemu VMs from accessing the local network
Go to file
DrMaxNix c1217bd2b3 📄 add license 2023-10-10 17:09:06 +02:00
.editorconfig 🎉 initial codebase 2023-10-07 19:52:02 +02:00
LICENSE 📄 add license 2023-10-10 17:09:06 +02:00
README.md use network started hook 2023-10-10 17:08:16 +02:00
libvirt-firewall use network started hook 2023-10-10 17:08:16 +02:00

README.md

libvirt Firewall

Prevent KVM/qemu VMs from accessing the local network

Setup Instructions

Clone git repository:

# cd /opt
# git clone https://git.tjdev.de/DrMaxNix/libvirt-firewall.git
# cd libvirt-firewall

Install as libvirt network hook (libvirt < 6.5.0):

# cp libvirt-firewall /etc/libvirt/hooks/network

Install as libvirt network hook (libvirt >= 6.5.0, untested):

# mkdir /etc/libvirt/hooks/network.d
# cp libvirt-firewall /etc/libvirt/hooks/network.d/libvirt-firewall