Giter Site home page Giter Site logo

Windows support about rust-tun HOT 14 OPEN

meh avatar meh commented on June 26, 2024
Windows support

from rust-tun.

Comments (14)

zonyitoo avatar zonyitoo commented on June 26, 2024 11

Here is a proposal about supporting Windows with wintun. cc @iamwwc if you are interested.

Wintun is a good Tun driver on Windows designed for working in WireGuard.

  1. Add a new unix module that wraps all android, ios, linux, macos, posix, and then make a new windows module in the platform.
  2. Configuration on Windows will have optional fields wintun_library_path, wintun_pool
  3. Create a Device that contains Adapter and Session
  4. For AsyncDevice, starts 2 async tasks with spawn_blocking and then all reads and writes will send and recv from channels to those tasks.

Some problems for discussion:

  1. Should we keep the wintun as a singleton?
  2. How to support multiple interfaces (adapters) within the same "pool"?
  3. Should we support multiple "session"?

from rust-tun.

meh avatar meh commented on June 26, 2024

Nope, I haven't really used Windows since Windows XP.

Pull requests welcome tho 🐼

from rust-tun.

NN-Binary avatar NN-Binary commented on June 26, 2024

That would be such a great addition, I think most users can't implement this crate yet because of Windows non supported

from rust-tun.

zonyitoo avatar zonyitoo commented on June 26, 2024

Maybe we could support it by wintun.

from rust-tun.

mokhtarabadi avatar mokhtarabadi commented on June 26, 2024

Any news?

from rust-tun.

amyipdev avatar amyipdev commented on June 26, 2024

Bumping this since I think it could be really useful, I'm working on https://github.com/amyipdev/acc, after I found out pcap wouldn't work and I needed TUN, wintun support would be great.

from rust-tun.

mokhtarabadi avatar mokhtarabadi commented on June 26, 2024

take a look at https://github.com/afula/tun2ostrich/tree/master/win_tun

from rust-tun.

amyipdev avatar amyipdev commented on June 26, 2024

@mokhtarabadi i was gonna use that, but tun2ostrich has now been removed from github...

from rust-tun.

omar391 avatar omar391 commented on June 26, 2024

@amyipdev this one: https://github.com/lemos1235/tun2ostrich ?

from rust-tun.

amyipdev avatar amyipdev commented on June 26, 2024

@omar391 thanks

from rust-tun.

M0dEx avatar M0dEx commented on June 26, 2024

Any updates?

I could really use Windows support in my project Quincy.

I would love to help with anything I can to get this done in the next couple of weeks.

from rust-tun.

mokhtarabadi avatar mokhtarabadi commented on June 26, 2024

@YosefUT can you help to add support for windows?

from rust-tun.

xmh0511 avatar xmh0511 commented on June 26, 2024

Any news?

from rust-tun.

M0dEx avatar M0dEx commented on June 26, 2024

This can be closed now, as Windows support has been added, correct?

from rust-tun.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.