Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow For Selection of TAP Device Number #22

Open
joeHeartsmith opened this issue Oct 10, 2022 · 2 comments
Open

Allow For Selection of TAP Device Number #22

joeHeartsmith opened this issue Oct 10, 2022 · 2 comments

Comments

@joeHeartsmith
Copy link

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?

@fragglet
Copy link
Owner

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?

@joeHeartsmith
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants