]> git.ipfire.org Git - thirdparty/openwrt.git/commit
scripts: add --user-network to qemustart 23424/head
authorPaul Spooren <mail@aparcar.org>
Mon, 18 May 2026 17:55:26 +0000 (19:55 +0200)
committerPaul Spooren <mail@aparcar.org>
Thu, 21 May 2026 14:06:25 +0000 (16:06 +0200)
commita7b5926bbae0900c7a10e625fdee29c8f9ecfcae
tree16757886c097c6551dcfe6b9992a00336cec16df
parentb8a67fa8d5d33acfc8a1997ad0070f0609d3b182
scripts: add --user-network to qemustart

qemustart is a handy script to quickly test OpenWrt firmware using
qemu.  Bringing up networking currently requires a bridge-helper
setup with privileged IP and bridge assignment.  To simplify
testing scenarios like the package manager, which need both shell
access and outbound internet, add a user-mode networking option
backed by SLIRP that requires no privileges.

To stay backward compatible, the defaults don't change.  The new
flag --user-network attaches two NICs (LAN + WAN) and forwards
three host ports to the guest LAN interface (192.168.1.1):
2222 -> 22 (ssh), 8080 -> 80 (http) and 8443 -> 443 (https).  The
host-side ports can be overridden with --ssh-port, --http-port
and --https-port.

Link: https://github.com/openwrt/openwrt/pull/23424
Signed-off-by: Paul Spooren <mail@aparcar.org>
scripts/qemustart