Qemu bridge conf test

This commit is contained in:
Guillaume 2023-06-05 10:24:24 +02:00
parent 0ea276592c
commit 2945d21c93

View File

@ -39,6 +39,12 @@ setup_network_qemu() {
sudo iptables -I FORWARD -o $QEMU_BR_NAME -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT sudo iptables -I FORWARD -o $QEMU_BR_NAME -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
sudo iptables -I FORWARD -j ACCEPT -i $QEMU_BR_NAME sudo iptables -I FORWARD -j ACCEPT -i $QEMU_BR_NAME
fi fi
if ! test -d /etc/qemu; then
mkdir -p /etc/qemu
fi
if ! grep -q "allow $QEMU_BR_NAME" /etc/qemu/bridge.conf; then
echo "allow $QEMU_BR_NAME" > /etc/qemu/bridge.conf
fi
} }
run_qemu() { run_qemu() {
id=1 id=1