optional TUN interface to tor for mobile
Orbot uses tun2socks to connect the Android VPN interface to the tor SOCKS port. iCepa/OnionBrowser on iOS uses tun2tor for a similar setup. Both of these approaches have issues since they involve setting up network sockets. Since both Android and iOS now both load tor as a shared library, the best possible interface would be for the tor shared library to directly provide the TUN interface on both platforms. It could be an optional feature like the HTTP CONNECT feature.
- https://github.com/iCepa/tun2tor is written in Rust with an MIT License
- https://github.com/ambrop72/badvpn/blob/master/tun2socks/tun2socks.c is written in C with a BSD 3-Clause license