From 1f5fbf4590e8463c5075b7dadc48c24bcaaf7659 Mon Sep 17 00:00:00 2001 From: GnomeZworc Date: Thu, 15 May 2025 21:33:07 +0200 Subject: [PATCH] fix typo Signed-off-by: GnomeZworc --- lib/qemu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/qemu.sh b/lib/qemu.sh index 96e1779..559ddf1 100644 --- a/lib/qemu.sh +++ b/lib/qemu.sh @@ -49,7 +49,7 @@ function qemu_start_vm { add_in_db "vm" "${vm_name}" "${subnet_name}" "${tap_id}" "${metadata_port}" "${ip}" create_tap "${tap_id}" "br-${subnet_id}" "${vpc_name}" metadata_start "${vpc_name}" "${gateway_ip}" "${metadata_port}" "${vm_name}" "${ssh_key}" - ip netns exec "${vpc_name}" iptable -t nat -A PREROUTING -s "${ip}/32" -d "169.254.169.254/32" -p tcp -m tcp --dport 80 -j DNAT --to-destination "${gateway_ip}:8080" + ip netns exec "${vpc_name}" iptables -t nat -A PREROUTING -s "${ip}/32" -d "169.254.169.254/32" -p tcp -m tcp --dport 80 -j DNAT --to-destination "${gateway_ip}:8080" print_in_color "${COLOR_GREEN}" "Start vm ${vm_name}" ip netns exec "${vpc_name}" qemu-system-x86_64 \