VPN tunnel inside another VPN

Hello!

At my work it seems like our corporate firewall is trying to block anything VPN and proxy related. All such websites are blocked and the VPN client I normally use refuses to connect. I also have an OpenVPN server running from home which I normally can’t connect to from work.

Eventually though I figured out that if I change settings in my VPN client to connect using OpenVPN protocol SSH > TCP (on port 22) it doesn’t get blocked. After this connection is setup I can then connect to my OpenVPN server at home as well on port 1194 with udp. After this I can close the first VPN connection and I will remain connected to my home network. How and why does this work? I don’t really get it… Is there anyone here that understands it?

I assume my second OpenVPN connection gets tunneled through the first one but why doesn’t that connection break down when the first tunnel is brought down? Or is it just the initial connection and handshake that gets tunneled and then the tunnel itself opens in parallel instead of inside the first tunnel?