29 lines
766 B
Markdown
29 lines
766 B
Markdown
<span style="color: #f88;">libvirt Firewall has been superseded by **[XYNat](https://git.tjdev.de/DrMaxNix/xynat)** and will thus not be maintained anymore.<br />
|
|
XYNat includes all libvirt Firewall features and many more!</span>
|
|
|
|
|
|
|
|
# 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 network hook (`libvirt < 6.5.0`):
|
|
```console
|
|
# cp libvirt-firewall /etc/libvirt/hooks/network
|
|
```
|
|
|
|
Install as libvirt network hook (`libvirt >= 6.5.0`, untested):
|
|
```console
|
|
# mkdir /etc/libvirt/hooks/network.d
|
|
# cp libvirt-firewall /etc/libvirt/hooks/network.d/libvirt-firewall
|
|
```
|