Qemu bridge conf test
This commit is contained in:
parent
0ea276592c
commit
2945d21c93
@ -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 -j ACCEPT -i $QEMU_BR_NAME
|
||||
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() {
|
||||
id=1
|
||||
|
Loading…
Reference in New Issue
Block a user