gluxon / wireguard-uapi-rs

MIT License
32 stars 10 forks source link

Devices and interfaces enhancement #31

Open Ange-Cesari opened 10 months ago

Ange-Cesari commented 10 months ago

Would it be possible to have a way of doing wg quick up/ down equivalent? A simpler way to create a device and put it up is forced to go through side libraries or use commands in addition

gluxon commented 9 months ago

I do think that's within the goals of this library some day. The reason we haven't done it yet is because creating a device goes through NETLINK_ROUTE rather than NETLINK_GENERIC like WireGuard. The last time I checked, the Netlink library we're using (neli) didn't have the right NETLINK_ROUTE payloads to make this easy. That may have changed since.

Ange-Cesari commented 9 months ago

Hey,

Maybe you'd like to have a look and try on this lib :

https://github.com/DefGuard/wireguard-rs

Best, Ange