Android Ignores Routing Table, Uses Phone Data Interface for Everything?
Fleeting- External reference: https://www.reddit.com/r/HomeNetworking/comments/r0sruo/android_ignores_routing_table_uses_phone_data/
TL;DR: linux kernel routing uses a routing policy database to decide what routing tables to use, see the route selection pseudo code.
ip r
shows only the main table by default. ip rule
allows seeing what tables
are looked up for connection and the main table was not a part of it.
ip rule showed that the “main” lookup table was never queried. By adding the following rule:
ip rule add from all lookup main pref 1