← Back to context

Comment by fc417fc802

5 days ago

I don't follow? Your system is either routing packets or not. IPv6 vs IPv4 should not be a notable difference here.

I've never tested network namespace scalability on a mobile device but I doubt a few hundred of them should break anything (famous last words).

In the primary namespace you will need to configure some very basic routing. You will also need a solution for assigning IP addresses. That solution needs to be able to rotate IP assignments when the external IP block changes. That's pretty standard DHCP stuff. On a desktop distro doing the equivalent with systemd-networkd is possible out of the box with only a handful of lines in a config file.

Honestly a lot of Docker network setups are much more complicated than this. The difficult part here is not the networking but rather patching the zygote logic and authoring a custom build of android that incorporates the changes.