Not sure of your setup but I use OpenVPN on my Android and have set it to whitelist apps so only the apps that need to use the VPN do so. You can also go the opposite and blacklist so all apps except those you specify use the VPN.
I'm my case, I'm using the OpenVPN server on my router. When I set it up, there was an option for the client to only use the VPN for local traffic. That way it's part of the config file on my phone. Works flawlessly
The guy is 84. No matter what sentence he gets, it won't be a long time.
Asus RT-AC66U
I'm using the OpenVPN protocol built into my router
Using JuiceSSH on my phone, I'm able to connect to my device without any problems when I'm on my home Wi-Fi. However, when off WiFi and connected to my VPN, the server doesn't connect. I'm still able to access the services it's running, but can't SSH into the server itself.
Edit: I thought I answered everyone's questions but I'm not seeing the answers so I'm posting the info here.
I get the below message and nothing happens. Then about 60 seconds later Juice gives a timeout error.
ssh\_socket\_connect: Nonblocking connection socket: 98 ssh\_connect: Socket connecting , now waiting for the callbacks to work
I'm using the built in VPN service in my router. It uses the OpenVPN protocol.
Edit 2: Using the same VPN config file, I'm able to access the server using Putty on my laptop. So I'm wondering if it is a Juice specific issue.