Android TUN/TAP Interface support

Search This thread

YileKu

Senior Member
Jan 15, 2015
50
2
I have an application that generates and receives packets and currently runs on Linux using a TUN/TAP interface. I create this interface on linux and then give the interface a name. I pass the interface name to my application which opens the interface and gets and sends packets. I am porting my application to Android. Does Android allow creation of TUN/TAP interfaces and also allow code to open the interfaces?

Thanks,
Y-
 

gam2046

New member
Aug 15, 2017
2
0
If you have a rooted device, you can open /dev/tun or /dev/net/tun directly, which varies on different versions of Android devices.

I recently tried running zerotier directly on a rooted device, although I had some difficulties.