tun2proxy / rust-tun

TUN device creation and handling.
https://docs.rs/tun2/
30 stars 13 forks source link

Can this crate use a pre-existing TUN interface? #79

Open theguy147 opened 2 weeks ago

theguy147 commented 2 weeks ago

Can this crate use a pre-existing TUN interface or does it always have to generate a new one? If so, could you provide an usage example? Thank You!

ssrlive commented 2 weeks ago

https://github.com/tun2proxy/rust-tun/blob/cb57d8c1410aa1e2a012a50ff5c03d1db62f3f08/src/platform/linux/device.rs#L61-L64

Not implemented yet, PRs welcome.

theguy147 commented 2 weeks ago

Thanks for the quick reply. I'm going to take a look at it.