Skip to content
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

Vopono cannot intialize due to IP address conflict when sharing internet connection over ethernet #203

Open
SocietasCooperationis opened this issue Jan 30, 2023 · 3 comments

Comments

@SocietasCooperationis
Copy link

Vopono uses the 10.0.0.0/8 IP address range. This IP address range is also used when sharing a computers internet connection via ethernet to another device. As a result, vopono cannot launch processes in network namespaces after a device connects via ethernet. Existing processes run in vopono namespaces still work properly after ethernet is plugged in.

I don't know how to investigate more deeply but I imagine adding a setting to change the IP address range used would be a temporary solution. Given that both services seem to work independent of each other so long as vopono applications are started up first, it may also be possible to make both work in 10.0.0.0/8 range and I would prefer this, though I understand that may be difficult.

@jamesmcm
Copy link
Owner

Could you add more details? If it fails to assign the IP address it should keep trying shifting to 10.1.x.x, etc. IIRC

Like what is the actual error log?

@SocietasCooperationis
Copy link
Author

SocietasCooperationis commented Jan 31, 2023

After some more investigating it appears I am mistaken. I'm connected to the internet over WiFi and sharing my internet connection over Ethernet. After plugging in the cable Vopono defaults to trying to use my Ethernet connection to reach the internet which obviously doesn't work. Specifying the correct network interface with the -i argument solves the problem.

However, doing this isn't very portable between machines (different interface names). Is there a way to make Vopono prefer WiFi over Ethernet? Or even better, be able to detect when an interface is sharing its connection with other devices and not use those interfaces?

@jamesmcm
Copy link
Owner

jamesmcm commented Feb 1, 2023

Hmm one way might be to support an interface prefix.

Do you know if NetworkManager or ip etc. let you know when the connection is shared like that? I can't test it myself easily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants