Because of a certain public government firewall with deep packet inspection preventing OpenVPN out of the country, I am trying to run OpenVPN over SSH. I also wanted all traffic to run through OpenVPN, so I added push "redirect-gateway def1 bypass-dhcp
to my server config. To prevent OpenVPN from killing the SSH connection that it ran through, I also added push "route [server ip] 255.255.255.255 net_gateway"
.
This works beautifully...at least on Windows. But with OpenVPN Connect in conjunction with an iOS SSH app with port forwarding, OpenVPN kills the SSH connection a few seconds after it connects thru the SSH tunnel.
I've tried adding route [server ip] 255.255.255.255 net_gateway
to the client .ovpn, but to little avail. Are my configs wrong, or do I really need jailbreak (really a last resort) to accomplish my task?