Kernel Version
5.10
Kernel Source Link (REQUIRED)
https://github.com/Pzqqt/android_kernel_xiaomi_marble
Droidspaces Version
6.6.0
Rooting Method
KernelSU
Device OEM & Model
marble
Android Version & ROM
16 los
Execution Mode
Both
Networking Mode
NAT
Describe the Bug
A --net=gateway client container never receives an address when the gateway container is the first-party OpenWrt image from the built-in rootfs repository (OpenWrt-24.10-Minimal).
Inside the client:
$ ip -4 addr
1: lo: ... inet 127.0.0.1/8 scope host lo
2: eth0@if2: <BROADCAST,MULTICAST,UP,LOWER_UP> ...
inet6 fe80::.../64 scope link
$ ip route
The app's container details screen shows 127.0.0.1 for that container, because that is the UI fallback when the reported address list is empty, which makes a missing address look like a plausible one.
Steps to Reproduce
- Router container from the app's rootfs repository (OpenWrt 24.10 Minimal)
droidspaces --name=openwrt --rootfs=/data/openwrt --net=nat start
- A client with a DHCP client on eth0
droidspaces --name=alpine --rootfs=/data/alpine --net=gateway --gateway=openwrt start
Inside the gateway container:
$ ip -4 addr
inet 172.28.x.x/16 ... dev eth0 # WAN, from Droidspaces NAT
2: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> ...
# exists, no address
$ uci show network | grep lan # empty
Inside the client: ip -4 addr shows only lo (plus a link-local on eth0).
Manually configure the LAN once inside the gateway container makes everything work, with no other change:
uci set network.lan=interface
uci set network.lan.device='eth1'
uci set network.lan.proto='static'
uci set network.lan.ipaddr='192.168.1.1'
uci set network.lan.netmask='255.255.255.0'
uci commit network
uci set dhcp.lan=dhcp
uci set dhcp.lan.interface='lan'
uci set dhcp.lan.start='100'
uci set dhcp.lan.limit='150'
uci set dhcp.lan.leasetime='12h'
uci commit dhcp
uci add_list firewall.lan.network='lan'
uci commit firewall
/etc/init.d/network reload && /etc/init.d/dnsmasq restart && /etc/init.d/firewall reload
The client then gets 192.168.1.100/24, default route via 192.168.1.1, DNS and internet, and droidspaces show --format reports the real IP.
Logs / Screenshots
No response
Required Acknowledgments
Kernel Version
5.10
Kernel Source Link (REQUIRED)
https://github.com/Pzqqt/android_kernel_xiaomi_marble
Droidspaces Version
6.6.0
Rooting Method
KernelSU
Device OEM & Model
marble
Android Version & ROM
16 los
Execution Mode
Both
Networking Mode
NAT
Describe the Bug
A
--net=gatewayclient container never receives an address when the gateway container is the first-party OpenWrt image from the built-in rootfs repository (OpenWrt-24.10-Minimal).Inside the client:
The app's container details screen shows
127.0.0.1for that container, because that is the UI fallback when the reported address list is empty, which makes a missing address look like a plausible one.Steps to Reproduce
Inside the gateway container:
Inside the client:
ip -4 addrshows onlylo(plus a link-local oneth0).Manually configure the LAN once inside the gateway container makes everything work, with no other change:
The client then gets
192.168.1.100/24, default route via192.168.1.1, DNS and internet, anddroidspaces show --formatreports the real IP.Logs / Screenshots
No response
Required Acknowledgments