TunMode is an Android project that routes traffic through a VPN to intercept packets. It supports TCP and UDP protocols and works on a semi-TCP stack, making it suitable for intercepting packets. You can also optionally intercept DNS queries or let the system resolve them. Essentially, TunMode acts as a proxy without editing or blocking any packets, allowing traffic to flow in and out seamlessly.
- Route traffic through a VPN to intercept packets
- Support for TCP and UDP protocols
- Optional DNS query interception
- Proxy-like functionality with transparent traffic flow
- Might not work properly on Android 14 because of some API changes on that version. I am unable to test it.
- Doesn't support IPv6.
- Download the TunMode APK
- Install the APK on your Android device
- Open and click button in the center
- Start intercepting packets and DNS queries as needed
- Android Studio
- Android SDK API Level 21 or higher
- Android NDK 25+ (maybe 24 is also ok, didn't test)
- Clone the repository
- Open the project in Android Studio
- Build and run the project on a connected Android device or emulator
We welcome contributions to TunMode! If you have any ideas, bug fixes, or feature enhancements, feel free to contribute by submitting a pull request. Please refer to the contribution guidelines for more information.