I have two VPNs. One for privacy (e.g. general browsing) and one to reach my home NAS (e.g. to reach my selfhosted image backups). Is there a way to set the system up so that when I use applications X, Y and Z, it should use the privacy one, and if I use A, B or C, it should use the private one?

  • Asymptote@lemmy.dbzer0.comOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    The private one is using Wireguard, buuut I’d also like for it to work even when the apps are backgrounded.

    I’m beginning to think that the cleverer solution would be to set something up in my home Linux environment to make the routing decisions and then just have an always on VPN home.

    It just seems like it should be a solved problem on my mobile OS already.

    • node815@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      With Linux, you need to have the awareness of what is running on your phone 24/7 and AFAIK, there’s nothing like that except maybe Home Assistant, but that’s pushing it. I have a buddy which has an always on VPN which he uses 100% of the time at home, never any issues with him. As for the phone, I have Wireguard for when I am not connected to my WiFi, and then disconnect when I’m back on my WiFi network. This way, I am certain to be on my home network 99.99% of the time. I use Tasker for that.

      With that said, you will need an automation of sorts on the Android to be 100% sure you are on your appropriate VPN. Whether through Tasker, Macrodroid or a few other apps.