Summary: In a broader context, I just need a way to connect to multiple servers that are all running the same services on the same network without having multiple external IP addresses or having to forward a different port on each server for the same service.
More detailed explanation: I have 3 servers on my network, each of which I would like to access remotely via ssh. Here’s what things currently look like with ports and addresses:
Internal IP: Port:
192.168.1.100 22 (ssh)
192.168.1.101 23 (ssh)
192.168.1.102 24 (ssh)
Let’s say the external IP for my network is 161.86.232.865 and all of the above ports are forwarded and visible to the external network. Is it possible to give each of these ports a subdomain and be able to ssh into them with their subdomain? For example, 192.168.1.100 would be ssh-100.example.com, 192.168.1.101 would be ssh-101.example.com, and so on. I understand that this is not (as far as I know) possible to do with the internal IPs instead of ports, so I figured I’d ask.
If you know anything, please share. Thanks!