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

Have tun support multiple address #579

Open
Tracked by #559
ibigbug opened this issue Sep 5, 2024 · 4 comments
Open
Tracked by #559

Have tun support multiple address #579

ibigbug opened this issue Sep 5, 2024 · 4 comments

Comments

@ibigbug
Copy link
Member

ibigbug commented Sep 5, 2024

The rust tun only take one address now. We'll need both v4 and v6 address to add static route on windows

@VendettaReborn
Copy link
Contributor

rust-tun and wintun don't support settings of ipv6 addr yet, and since hard to push this feature to upstreams(at least might take plenty of time), we may extend the Device trait now, maybe in our repo, maybe in a separate crate?
here is the work-around on each platform

@ibigbug
Copy link
Member Author

ibigbug commented Sep 5, 2024

yeah wintun is a bit weird it does take v6 address but doesn't expose it https://github.com/nulldotblack/wintun/blob/main/src/adapter.rs#L306

i think we can fork the rust-tun(or tun2?) and add v6 support in a separate repo and try to add it back to the upstream after we validated it's working

@VendettaReborn
Copy link
Contributor

oh, i forgot that we are currently using the forked rust-tun. yeah, that's workable

@xmh0511
Copy link

xmh0511 commented Sep 9, 2024

Welcome to use tun-rs, which is actively maintained.

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

3 participants