In case the DNS provider failing, I would like to have a DNS entry or route on my Unifi Cloud Gateway to my selfhosted reverse proxy (Nginx on 172.16.10.30:7777). Therefore, I can still reach my applications using the domain. I did create a DNS entry (Settings > Policy Table > DNS). However, I am note able to point it to the port 7777.

TLDR: one.mydomain.com should be redirected to 172.16.10.30:7777 How can I achieve this with the Unifi Cloud Gateway?

  • scuppie@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    1
    ·
    25 days ago

    DNS doesn’t cover ports. I think Port Address Translation as part of NAT does this? I’m aware of it but never had to use it.

    For example you could route traffic using default ports to non default ports. A browser uses 80 and 443 but you could make a rule hitting www.example.com to go to 192.168.0.100:8081 and the browser doesn’t know or care.

    Or you could use a remote desktop client set to use rdp.example.com:7777 but gets translated to the usual 3389 so you don’t have to change any of the RDP servers to listen on different ports.

    I haven’t touched this in years and I know shitall about reverse proxies so I hope I’m not misleading you but this is where I would start if it were me.