I have been searching a solution to this for some time and it seems not possible, but maybe I am missing something. I have research DNS, reverse proxys, 1to1 nat...
I have a bunch of local systems at home with zeroconf running. Example:
They talk to each other without problem. I have a router that connects my systems to internet with only one IP.
I have a domain bought, e.g: mydomain.com.
Is there a way to map public subdomains to local domains? Redirecting all ports and services based on subdomain (not only web, also ssh)
Right now I am tinkering with port forwarding but this doesn't escalate.
What I have:
- mydomain.com:3022 => raspberry.local:22
- mydomain.com:4022 => laptop.local:22
What I want:
- raspberry.mydomain.com:* => raspberry.local:*
- laptop.mydomain.com:* => laptop.local:*