• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Connecting to a VPN through a SSH tunnel

nsciora12

Lurker
Hello, I'm trying to connect to a VPN through OpenVPN and a SSH tunnel, but the browser won't forward my traffic to an app running in the subnet of the server, even though VPN is connected and the SSH tunnel says that I'm also connected to the server. (Works properly on PC)

Could this be a problem with SSH tunnel traffic forwarding in android or should I look elsewhere?

My phone is a Samsung Galaxy A53 5G, I've tried two SSH clients: JucieSSH and OpenSSH in Termux. I've also tried two VPN clients: OpenVPN from the PlayStore and OpenVPN for android from F-Droid.
 
This sounds like things are working as they should. Trying to use a VPN service for online access within a SSH connection is antithetical to SSH itself.
SSH is a peer-to-peer, client-server connection between two devices. A VPN is a privacy measure that allows a host using its local IP address to be 'tunneled' through an online connection to an anonymous server that has its own different IP address. SSH functionality is inclusive, while a VPN is exclusive.
Try reversing your setup so your VPN is the primary for web access and for SSH.
 
This sounds like things are working as they should. Trying to use a VPN service for online access within a SSH connection is antithetical to SSH itself.
SSH is a peer-to-peer, client-server connection between two devices. A VPN is a privacy measure that allows a host using its local IP address to be 'tunneled' through an online connection to an anonymous server that has its own different IP address. SSH functionality is inclusive, while a VPN is exclusive.
Try reversing your setup so your VPN is the primary for web access and for SSH.
Sorry, what I meant was that I'm connecting to a VPN then to a SSH tunnel and the SSH tunnel isn't working.
 
Ahhh, that makes more sense. Do you have port forwarding set up on your home router? (The default SSH port is 22 so since you're apparently setting up remote SSH access you might want to change that.) Or are you using a proxy?
 
Back
Top Bottom