Is there any way I can use a proxy on Android on a per app basis instead of system wide? Just like for some who don’t want absolutely everything to be routed through a VPN, some VPNs offer the option to include/exclude applications. That’s exactly what I’d like to do, just with a proxy on my phone.

  • masterofn001@lemmy.ca
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 month ago

    1 Invizible Pro
    https://www.f-droid.org/en/packages/pan.alexander.tordnscrypt.stable/

    2 RethinkDNS
    https://www.f-droid.org/en/packages/com.celzero.bravedns/

    3 Singbox
    https://www.f-droid.org/en/packages/io.nekohasekai.sfa/

    They can all be used together or separately as proxies or VPN.

    1 and 2 allow for per app routing, blocking, firewall, etc. depending on mode(VPN or proxy)

    3 allows to set up local or remote proxies, tunnels, etc.

      • masterofn001@lemmy.ca
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        1 month ago

        You could also use termux and set up something like tinyproxy to route specific sites to the various proxies.

        Something like invizible has an outbound socks proxy setting so you could use that to send all traffic to your local http/socks proxy.

        A lot of browsers have plugins like foxyproxy that will let you set global (per browser) or site/wildcard proxies.

        • FloppyFlounder8@lemmy.dbzer0.comOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          edit-2
          30 days ago

          Yup, Firefox was a thought but I wasn’t sure if extensions were a thing on Android. I do use FoxyProxy on my desktop so it would come in handy if it’d work on my phone too.

          • masterofn001@lemmy.ca
            link
            fedilink
            English
            arrow-up
            1
            ·
            30 days ago

            It does.

            You can also install all the different versions/forks of FF for android for more separation. (Nightly, mull, tor, etc)

  • Natanael@slrpnk.net
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    1 month ago

    Multiple VPN apps on Android allows you to set per-app rules including forwarding to different VPN servers

    The Cloudflare app allows setting exclusions

    However you can’t have 2+ active VPN connections simultaneously on Android without root, so while for example OpenVPN allows you to set multiple VPN profiles with different app exclusions (binding chosen apps to a certain VPN connection) you’re forced to pair this with a firewall to keep different groups of apps offline while their VPN profile is inactive, then switch which apps are online by switching VPN profile.

    Alternatively - set up a single Wireguard VPN to your own server somewhere (it may be a rented VPS) and then set multiple outgoing VPN connections on that server, and then set forwarding rules based on which domains/IP each app communicates with (beware that this may make a mess with browsers and such if for example a single web page gets split over different VPN sessions due to content being hosted across different servers on the same page)