xjasonlyu / tun2socks

tun2socks - powered by gVisor TCP/IP stack
https://github.com/xjasonlyu/tun2socks/wiki
GNU General Public License v3.0
2.85k stars 405 forks source link

how can i get the interface which i created's file path #227

Closed johnnyhansen-away closed 1 year ago

johnnyhansen-away commented 1 year ago

Description

hello, i want to get the interface 's file path, but i didn't. please help me how to get this. such as i created -device utun123 where is the interface's file path to utun123, the tun/tap 's interface always at /dev/tunXX, but where is utunXXX, thank you!

Is this feature related to a specific bug?

No response

Do you have a specific solution in mind?

No response

xjasonlyu commented 1 year ago

tun in macOS seems to work a bit differently

johnnyhansen-away commented 1 year ago

i don't know what's different between tun and utun, tun2socks only support utun[0-9]. but i want to get the interface's file path. can i?

xjasonlyu commented 1 year ago

Naming like utun[0-9]+ is required by macOS, but I'm not sure about the file path.

johnnyhansen-away commented 1 year ago

OK! thank you

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days