-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request: Add User Mode Networking #5
Comments
Actually, user mode network is already included. If you set the environment variable to What is your use case? |
Hi @AlbrechtL ,
Running it (for testing and developing) in Windows 11 (Docker Desktop + WSL). I have shown (a few minutes ago) that yes the SLIRP mode is supported...
Thank you. |
Great idea. I will add it.
I did some experiments with it. The thing is that OpenWrt configures a DHCP server at the LAN side because it is a router. The SLIRP implementation on the other side has fixed IPs, a DHCP server and router functionally. See the QEMU SLIRP concept picture. So you don't have any benefits of SLIRP at the LAN side. What do you want to do with it? Maybe I miss something here. |
Do tests of complex configurations with it in my workstation. Now it runs inside Windows (Docker Destop + WSL2) with this config:
Then the Nice! |
Hi @AlbrechtL , One small suggestion for the
I hope you agree with that suggestion. |
I'm not sure if I understood you correctly. But you are free to implement the options that you are needing, test it and send a pull request afterwards. |
OK. But the problem is that the current documention is not sufficient for some aspects (however the project seems to be good maintained). Any recommendation to execute the tests inside the command line? |
I just realized that I already implement SLIRP in LAN. The environment variable needs to be cleared, see openwrt-docker/src/run_openwrt.sh Lines 150 to 152 in 1e47d77
But I never used it. Fell free to play with it.
A good starting point is to build the Docker image yourself. Executing the automated tests something for an advanced usage. But you can read the test pipline https://github.com/AlbrechtL/openwrt-docker/blob/master/.github/workflows/test.yml how to do it. |
Hi @AlbrechtL , I created the PR #7 to make it explicit. It's relevant in environments like Windows where only user networking is available. It works without problems with |
Thanks for your work! I merged your PR. |
Hi,
This project is very interesting. However, for developing the execution in Docker Desktop (Windows) will be desirable. At time, the networking is implemented using only the
macvlan
support. Other similar projects (using QEMU/KVM inside Docker) are supporting as an alternative the User Mode Networking. See more here: https://wiki.qemu.org/Documentation/NetworkingI hope you want to consider it.
The text was updated successfully, but these errors were encountered: