Skip to content

Commit

Permalink
fixes wan access in ubuntu system
Browse files Browse the repository at this point in the history
  • Loading branch information
javierajorge committed Nov 30, 2023
1 parent 0acb9ae commit 28f4056
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/qemu_dev_start
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 28f4056

Please sign in to comment.