I have established an SSL TLS OpenVPN connection between my server and client via OpenVPN.
SSH and OpenVPN use the "tun" module in Linux to deploy an ifconfig device (with its own IP) through which traffic is routed. With OpenVPN and SSH assigned to their own addresses / tun interfaces, how can I tunnel an SSH VPN over OpenVPN? Or rather, is it plausible/reasonable to do so?
Server Traffic eth0 192.168.0.1 OpenVPN tun0 10.8.0.1 SSH-VPN tun1 10.8.0.3 Client OpenVPN tun2 10.8.0.2 SSH-VPN tun3 10.8.0.4
OpenVPN routes traffic from eth0 to tun0. SSH-VPN routes traffic from tun0 to tun1. Client connects to tun1 and maps it as tun2 using OpenVPN. Client connects to tun2 and maps it as tun3 using SSH-VPN. When a user runs ping on 10.8.0.4, the user is basically connecting to 192.168.0.1 on top of an SSH VPN which is on top of an OpenVPN connection.