Message from @Tervy
Discord ID: 528559541454110730
Yeah, but it's a real bitch to find things if you don't already know the thread title there.
Figured it was worth a shot.
I have one public IP and one host computer, on this host computer, there are N VMs which have internal IPs (virtual network)
VM1 has the internal IP 10.10.10.1
VM2 has 10.10.10.2
etc etc
I have a domain with *.domain.tld having A and MX records on the host's IP
Now I want to configure it in a way, that all gets forwarded to the internal IPs depending on the hostname. Means, if I ssh into vm1.domain.tld, the host should forward it to 10.10.10.1, if I call vm1.domain.tld:80 via http, that should also be forwarded to VM1
is that possible and if yes, how?
or at least what's the term for doing so? I know that AWS does something similar
@timsandtoms just get evaluation version from their site
yes I could solve the http thing with an nginx reverse proxy, but I'd like to do it with all services, specifically ssh, ftp, http, https
Squid ?
you can't exactly do it in the way you describe i think
if you open say, a ssh connection, i don't think it sends the hostname used
unlike http
but amazon does it on AWS
yeah but they probably do it on a DNS level then
on amazon, you can ssh using the hostname, but not using the IP, because other containers have the same IP
right that could be
so instead, the better way would probably be to let ssh run on a different port on every vm, and then just use ssh forwarding
ssh host:2201 => vm 1
ssh host:2202 => vm 2 etc etc
@Tervy Can I permanently activate that and use group policy?
maybe look at SRV records?
Let me look that up
No worries. I'm just trying to avoid that hour long trawl through the MDL forums that I always end up doing, I'll suck it up and stop being lazy.
@Goz3rr from what I understand, for using a srv record, the service would need to be discoverable already
which isn't if my IP is internal
I never used AWS so I'm not familiar with what they do, but on azure they just open up different ports
reading what AWS does now
I can't set 10.10.10.1 as a target
but it looks like they use a ssh server on the host as a proxy
oh I tried to find that out, too
you can uh
set up one ssh server as a gateway
that redirects based on key
because the protocol doesn't actually send the hostname
the key thing is a good idea though
the first paragraph here
that looks like what I want to do
I'll try that out
if it works I can make a nice script to deploy the keys and it's good to go
then there is always the overkill "traefik" setup
yes but that's also just http