mudler / edgevpn

:sailboat: The immutable, decentralized, statically built p2p VPN without any central server and automatic discovery! Create decentralized introspectable tunnels over p2p with shared tokens
https://mudler.github.io/edgevpn
Apache License 2.0
637 stars 85 forks source link

wintun support #17

Closed Xeelee1024 closed 1 year ago

Xeelee1024 commented 2 years ago

I hope edgevpn can support wintun, thanks! https://www.wintun.net/

mudler commented 2 years ago

Thanks for filing an issue about this!

yes, this is something that was in top of my head already but didn't had time to have a dig nto it yet, besides, I don't have a windows machine to test on, so will take a bit of time from my side.

dukzcry commented 2 years ago

I'm not much help too, since I don't have windows machine besides VM at home. But most of my remote peers are windows machines... Back to deal. I've tried this branch few months ago https://github.com/mudler/edgevpn/tree/wintun It was very flaky

mudler commented 1 year ago

thanks @dukzcry ! Seems someone have patched https://github.com/dtlslink/water/commit/daf4264fd3eeb0fbd6bb48aee617320929d5201d so it can be directly used with the same lib. I'm going to give it a shot over the weekend

dukzcry commented 1 year ago

@mudler Please let me know when you form the branch. I will test. Most likely additional patches like these will be needed: https://github.com/repos-holder/edgevpn/commit/bbdd67f1feda7e4c8e278b2d91804de916766da5 https://github.com/repos-holder/edgevpn/commit/37d22970fb58991044a9eb2a1e2e97d9f361da38

mudler commented 1 year ago

@dukzcry just gave a stab at it https://github.com/mudler/edgevpn/tree/pin/water

dukzcry commented 1 year ago

@mudler Thank you! It works at first glance. Need to test it with remote peers. Could you please also pick https://github.com/repos-holder/edgevpn/commit/fd9d64a9b98b120b6e87e91fdc1d4c29c56328f5 ? This solution works fine without hack that was needed for fumiama/water variant

mudler commented 1 year ago

@dukzcry awesome! pushed on the branch, thanks!

dukzcry commented 1 year ago

@mudler I've tested pin/water on windows peers during weekend, works fine so far 🤗

mudler commented 1 year ago

That's a great news! Thanks @dukzcry for confirming that out!

Xeelee1024 commented 1 year ago

wintun can not works well~ QQ截图20221017112831

Xeelee1024 commented 1 year ago

The adapter failed to obtain the correct ip QQ截图20221017115441

dukzcry commented 1 year ago

@vip123456789 Change or clear IP for OpenVPN interface. Most likely it clashes with one you want set for wintun

Xeelee1024 commented 1 year ago

@vip123456789 Change or clear IP for OpenVPN interface. Most likely it clashes with one you want set for wintun

Thanks! Problem solved!