Page 1 of 1

Choosing adapter name for tap/tun devices?

Posted: Mon Jun 28, 2021 5:57 am
by proste10
Hi
Is it possible to control the name of the tap/tun devices created upon connecting to VPNs?

Thanks

Re: Choosing adapter name for tap/tun devices?

Posted: Mon Jun 28, 2021 8:10 am
by James
Hi proste10,

I'm afraid it's not possible to select a custom name for a network interface, however you can specify the number for the interface to use. For example, if you have a "tun" style connection, and you always want it to use "utun50" as the network interface name, you can add the command "dev tun50". For more information please see:
https://www.sparklabs.com/support/kb/ar ... n-commands

However we recommend against using fixed network interfaces indexes, as it can result in clashes or unexpected behaviour in some instances. If you need to know the network interface in a script, see here how a script can access the interface name dynamically:
https://www.sparklabs.com/support/kb/ar ... on-details

Cheers,
James