GamePad64 / tunio

MIT License
29 stars 7 forks source link

0.4.0 version isn't published #79

Open kistanovdev opened 1 year ago

kistanovdev commented 1 year ago

When I build my project, Cargo is complaning that the package isn't available.

[dependencies]
etherparse = "0.13.0"
tunio = "0.4.0"

However, when I use 0.3.0 version, I get a compilation error.

My solution was to clone your repo locally and reference it directly and it worked.

[dependencies]
etherparse = "0.13.0"
tunio = { path = "/Users/kistanov/github/tunio" }

Do you need help publishing the 0.4.0 version? Thank you

ferrumgate commented 1 year ago

I used 0.4.0 version like below [dependencies] tunio = { path = "../tunio" }

and async with tokio on windows is working incredible, without any problem. I did not test it on linux and macos

m4heshd commented 1 year ago

@ferrumgate I'd really appreciate it if you could publish an example project using this crate with tokio. I plan to start a project with this crate combined with tokio and rustls, trying to create a sort of a poor man's VPN.

ferrumgate commented 1 year ago

@m4heshd This library was working well on windows, but does not support yet linux and macos. because of this I switched to another one that is same as this, forked it and used it. please look at this project for details. https://github.com/ferrumgate/secure.server.quic which I developed

m4heshd commented 1 year ago

@ferrumgate Thank you so much for the fast response. Just took a quick peek at your code and I think we unknowingly wrote the same program in the same time period 😄. My application looks pretty similar to yours. The only thing I'm missing is the platform adapter part. Currently using OpenVPN for that. Need to ditch it. I'll take a proper look at your project and try it myself. Much appreciated.

ferrumgate commented 1 year ago

@m4heshd I am working on ferrumgate.com, an open source ZTNA project. I am not using OpenVPN. for tcp tunneling ssh, for udp I implemented tunneling over QUIC protocol.

m4heshd commented 1 year ago

@ferrumgate Yeah now that I look more at it, not so similar, but I'm trying to achieve pretty similar things. I'm only using OpenVPN because of this adapter issue. Otherwise no need for it. Your source might help it seems.

szguoxz commented 9 months ago

Actually I created the same quic VPN to replace openvpn for my personal use. But my implementation does not support Mac OS, only support Windows and Linux. I am looking for a good tun driver for MacOS and IOS.

I saw you are using Rust-tun. But I looked at rust tun, it does not support read/write at the same time, because it requires mut self for read and write. How do you solve this problem?

@m4heshd This library was working well on windows, but does not support yet linux and macos. because of this I switched to another one that is same as this, forked it and used it. please look at this project for details. https://github.com/ferrumgate/secure.server.quic which I developed