seashell / drago

☁️ Securely connect anything with WireGuard® and manage all your networks from a single place.
https://seashell.github.io/drago
Apache License 2.0
1.11k stars 57 forks source link

Custom interface names #72

Open 0x1a8510f2 opened 3 years ago

0x1a8510f2 commented 3 years ago

Is your feature request related to a problem? Please describe. I would like to set a custom and static interface name for the client to use with firewall rules

Describe the solution you'd like An additional option here: image Would work great in my opinion.

Describe alternatives you've considered None

edufschmidt commented 3 years ago

As of now links are always labeled drago-<random_id>, and their aliases are set based on the corresponding interface IDs in the database. Allowing for custom link names should be rather straightforward, and involve modifying the CreateInterface() function within the Network Controller implementation, as well as the UI and API to make sure this parameter can be passed by the user. Will add this to the list of improvements for the new release.

0x1a8510f2 commented 3 years ago

Thanks! I had a quick look at implementing this myself following your overview above, but I gave up when I opened the UI folder and realised I have no clue about frontend dev :P hence, I'll have to leave this to you for now.