ipxbox icon indicating copy to clipboard operation
ipxbox copied to clipboard

Allow For Selection of TAP Device Number

Open joeHeartsmith opened this issue 3 years ago • 2 comments

For servers with multiple TAP/TUN devices, most utilities offer the ability to select the numerical ID for the device they wish to create (i.e. tap5 vs tap0). Could this functionality be added with the ability to supply an ID as a command-line argument?

joeHeartsmith avatar Oct 10 '22 16:10 joeHeartsmith

Thanks for the suggestion. Taking a look at the water library that ipxbox uses for creating TAP devices, it looks like this is possible but rather complicated because it needs to be done individually on a per-OS basis:

https://github.com/songgao/water/blob/master/if.go#L37

Would having this feature solve an immediate problem you have or is it just a "nice to have" feature request?

fragglet avatar Oct 10 '22 18:10 fragglet

This is nothing critical - just for easier management of a server with multiple TAP devices. I'm not too familiar with Go and assumed it might be as simple as it is in C. Definitely something I can script around without any issue.

joeHeartsmith avatar Oct 10 '22 19:10 joeHeartsmith