19 lines
397 B
Markdown
19 lines
397 B
Markdown
# libvirt Firewall
|
|
Prevent KVM/qemu VMs from accessing the local network
|
|
|
|
|
|
|
|
## Setup Instructions
|
|
Clone git repository:
|
|
```console
|
|
# cd /opt
|
|
# git clone https://git.tjdev.de/DrMaxNix/libvirt-firewall.git
|
|
# cd libvirt-firewall
|
|
```
|
|
|
|
Install as libvirt daemon hook:
|
|
```console
|
|
# mkdir /etc/libvirt/hooks
|
|
# ln -s /opt/libvirt-firewall/libvirt-firewall /etc/libvirt/hooks/daemon.d/libvirt-firewall
|
|
```
|