Unifi Port Forwarding for specific subdomains only

I have a UDR7 as router/firewall and some services running on my Synology NAS. Every service uses a subdomain certificate (actually a wildcard certificate provided through NGINX Proxy Manager, thanks Tom :-). No services are usually available from the internet, it’s VPN only. But to renew the certificates I currently forward ports 80 & 443 temporarily from the router to the NAS, which means every request with my WAN IP is forwarded and even a subdomain like doesnotexist.mydomain.com.
Is there a way in Unifi to only forward specific subdomain request like sub1.mydomain.com but not sub2.mydomain.com?

That is not the way to solve this, you should find a DNS provider that supports DNS challenge for cert renewal. NGINX Proxy Manager has support for quite a few of them.

1 Like

I use Cloudflare so this now works like a charm. Thank you.
Btw. the latest NPM 2.12.4 has a dependency problem #4617 and login problem #4606. That gave me quite a headache until I downgraded NPM to 2.12.3 and loaded a backup for the data.