This repository has been archived on 2024-05-28. You can view files and clone it, but cannot push or open issues or pull requests.
libvirt-firewall/README.md

29 lines
766 B
Markdown
Raw Normal View History

2024-05-28 20:38:26 +02:00
<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>
2023-10-07 19:52:02 +02:00
# 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
```
2023-10-10 17:08:16 +02:00
Install as libvirt network hook (`libvirt < 6.5.0`):
2023-10-07 19:52:02 +02:00
```console
2023-10-10 17:08:16 +02:00
# cp libvirt-firewall /etc/libvirt/hooks/network
2023-10-07 20:37:37 +02:00
```
2023-10-10 17:08:16 +02:00
Install as libvirt network hook (`libvirt >= 6.5.0`, untested):
2023-10-07 20:37:37 +02:00
```console
2023-10-10 17:08:16 +02:00
# mkdir /etc/libvirt/hooks/network.d
# cp libvirt-firewall /etc/libvirt/hooks/network.d/libvirt-firewall
2023-10-07 19:52:02 +02:00
```