From 28f40562457dcfd387c6d173db7283478c5b3b24 Mon Sep 17 00:00:00 2001 From: "javier.jorge" Date: Thu, 30 Nov 2023 09:19:57 -0300 Subject: [PATCH] fixes wan access in ubuntu system --- tools/qemu_dev_start | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/qemu_dev_start b/tools/qemu_dev_start index 54f9f9b91..69f9024b2 100755 --- a/tools/qemu_dev_start +++ b/tools/qemu_dev_start @@ -215,8 +215,11 @@ if [ -n "$_arg_enable_wan" ]; then ip link set "$WAN_IFC" up fi + # DHCP server for WAN ifc + service systemd-resolved stop dnsmasq -F 172.99.0.100,172.99.0.100 --dhcp-option=3,172.99.0.1 -i "$WAN_IFC" --dhcp-authoritative --log-dhcp + service systemd-resolved start # enable forwarding and NAT echo 1 > /proc/sys/net/ipv4/ip_forward