The goal is to access different services on the NAS from anywhere using secure URLs like https://dsm.site.
To keep the router's IP private, we use Cloudflare as a proxy. It maps site.com to the router's IP, but a DNS lookup of site.com will show a Cloudflare IP.
These steps assume you are using a TLD for your NAS - site.com - and sub domains for different services - proxy.site.com.
- Register a domain name with any provider
- On the registrar's site, navigate to the domain's DNS settings
- Delete exiting DNS records - usually 'parking' records
- Create and verify a Cloudflare account
- Navigate to the Websites screen and click Add Site
- Site = site.com (your TLD)
- Select the Free plan and Continue
- Ignore the 'no records' warnings for now
- In the DNS Management section, click Add Record
- See Cloudflare DNS Records for running list of records used in this project.
- Continue
- Follow instructions to update the Nameservers with your domain registrar
- Namescheap > Domain List > Domain > scroll down to Nameservers section
- Back in Cloudflare, click Done and wait for propagation
IMPORTANT Set up the records, but do not proxy your IP until you have obtained SSL certificates.
Prevents 'too many redirects' error once router's IP is proxied.
- Left menu > Websites > site.com
- Left menu > SSL/TLS
- Encryption Mode = Full (strict)
Once the DNS records have propagated, test logging in using http:site.com:port
- See Network Reference for a running list of URLs