There is an app called Postern on the Play Store which works as a global proxy for SSH clients. It enables all data to route through the SSH port.

How can an app work as a system-wide proxy on Android?

  • Proxies can't be set system-wide, they are meant to be used by every app individually. It's because proxies operate at higher OSI levels. VPN operate at OSI layer 2/3, iptables NAT operate at layer 3. Both can be used to redirect traffic towards a proxy server, but proxy can't handle all traffic. See these answers: android.stackexchange.com/a/217848/218526 and android.stackexchange.com/a/209505/218526 – Irfan Latif Oct 23 '19 at 5:33
  • Can you check the app Postern and see how it's able to automate the process. – Ehtizad Zashkiyor Nov 3 '19 at 20:37
  • We don't have to set up a proxy for each app as it's able to automate that for us. – Ehtizad Zashkiyor Nov 3 '19 at 20:37
  • Postern uses VPN, see the linked answers. SocksDroid is a perfect open-source alternative for SSH/SOCKS5. – Irfan Latif Nov 3 '19 at 20:54
  • Does Socks droid support SSH servers and would we have to manually configure apps to use proxy.i would like to automate the process the of redirecting traffic. – Ehtizad Zashkiyor Nov 26 '19 at 5:05