Category "tun"

How to read TCP packets on a tun/tap interface?

I'm working on a simple project that listens on a tun interface and modified the packets then re-sends them to the real interface. I have tried songgao/water,

Could not get traffic stats of tunnel interface in Android 10 & 11

Accessing /proc/net/dev is restricted from Android 10 (API level 29). And no luck for ifconfig as well. I tried to use TrafficStats, in which we have restrictio