I have many PC in my LAN. Every PC has a web server on port 80. Every pc also have some other services, like SSH.
I have the need to allow access to these servers from outside the LAN, but opening only one port , or two, but not 40!. I created a third domain for each server, each as CNAME of the same IP as follows.
openvpn.mydomain.tld - 126.96.36.199 - 192.168.1.227:80 pihole2.mydomain.tld - 188.8.131.52 - 192.168.1.228:80 ssh1.mydomain.tld - 184.108.40.206 - 192.168.1.228:22 .... Etc....
I would like that browsing to
openvpn.mydomain.tld I could see webpage from the webserver at 192.168.1.227 listening at port 80, and so on.
- What kind of tools allow me to route incoming traffic to different LAN IP based on requested domain name and port?
Note: I do not have a professional router.
- Is it possible to route traffic using only software? If yes, which "kind" of software?