tun2proxy / rust-tun

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

How to generate GUID (Windows) #60

Closed parthibx24 closed 2 months ago

parthibx24 commented 3 months ago

I need help generating the guid for the tun device. How can I check if an interface already exists with this guid? Or is there any API to get the guid from the tun device after creating it for the first time (using tun2::create_as_async)

ssrlive commented 2 months ago

The GUID is no matter. Just keep the number of device will not changed while we set a GUID. You can set any u128 number for it.

image