I want to simulate ports on subdomains while having only one dynamic ip. This will allow to use full potential of the router.
- Client makes a request to your custom dns.
- Then dns gives the client ip to your router
- dns makes a db query with user's dynamic ip (user: (user's IP) domain: (domain user wants to access (ex. darklynx.org or - - something.darklynx.org))
Then when traffic reaches your router it goes through ngnix or some other service that'll re-translate your traffic according to json file:
- client reaches router and wants to access specific port
- ngnix looks db and finds user's ip
- it associates subdomain with user
- looks through json
{
"darklynx.org": {
"8080": "8080",
"6000": "5000",
"2556": "3000"
},
"something.darklynx.org": {
"8080": "8001",
"6000": "5001",
"2556": "3000"
}
}
each port here under a domain corresponds to each port on your local home server
- re-translates requested traffic