I'm setting up a server in our lab at the university for multiple purposes, including a bibliography database and a CI server (Jenkins). To ensure a clean separation of the problems, I have for each function an imprisoned virtual host with an assigned internal domain name. In the laboratory, the arrangement works well. I have BIND9 installed on the server so that domain names can be resolved.
However, to connect to our lab at home, we first need to install a VPN in the university and then SSH in the gateway machine of our lab. From the gateway, we can access all the internal machines we need. Once you have logged in to the gateway, we will use SSH tunnels as needed. Machines in our lab can not be accessed directly from the VPN without logging on to the gateway according to the university's policies.
I'm wondering if it's possible to access virtual hosts through a single SSH tunnel. How Server Name Display (SNI)? Or would I have to set up a proxy server like Squid? I understand that both DNS and HTTP traffic need to be correctly routed. Can this only be done with
host File settings?
Any advice would be very grateful. Many Thanks!