Comments (14)
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.
- Add a new
unix
module that wraps all android, ios, linux, macos, posix, and then make a newwindows
module in the platform. Configuration
on Windows will have optional fieldswintun_library_path
,wintun_pool
- Create a
Device
that containsAdapter
andSession
- For
AsyncDevice
, starts 2 async tasks withspawn_blocking
and then allread
s andwrite
s will send and recv from channels to those tasks.
Some problems for discussion:
- Should we keep the
wintun
as a singleton? - How to support multiple interfaces (adapters) within the same "pool"?
- Should we support multiple "session"?
from rust-tun.
Nope, I haven't really used Windows since Windows XP.
Pull requests welcome tho 🐼
from rust-tun.
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.
Maybe we could support it by wintun.
from rust-tun.
Any news?
from rust-tun.
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.
take a look at https://github.com/afula/tun2ostrich/tree/master/win_tun
from rust-tun.
@mokhtarabadi i was gonna use that, but tun2ostrich has now been removed from github...
from rust-tun.
@amyipdev this one: https://github.com/lemos1235/tun2ostrich ?
from rust-tun.
@omar391 thanks
from rust-tun.
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.
@YosefUT can you help to add support for windows?
from rust-tun.
Any news?
from rust-tun.
This can be closed now, as Windows support has been added, correct?
from rust-tun.
Related Issues (20)
- Socket operation on non-socket HOT 1
- macos HOT 1
- Framed send fails with "Socket operation on non-socket" HOT 3
- Drop Fd crash in Android 11 HOT 1
- Nothing happening on macOS HOT 2
- Use library with default gateway
- Could you elaborate on what routing needs to be done for MacOs? HOT 14
- Where is the tun tap frame? HOT 1
- Build error on windows HOT 1
- GRO/GSO on Linux HOT 1
- macOS tun ip cannot be listened by the application
- The synchronous `write` does not work HOT 1
- when change ip addr to new ip addr, but subnet broadcast address no change, in macos m1 HOT 1
- Windows support can be achieved in this fork
- Add serde pls HOT 1
- Help with multithreading, read and write. HOT 2
- Add support to construct `TunPacket` from `Bytes` directly. HOT 1
- Enable TCP Segmentation Offload (TSO)
- Memory leak on windows HOT 11
- add split api?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust-tun.