2

When having the Synology DSM open on port 5000/5001 I can configure it to always redirect to 5001 (HTTPS). But now I have created a custom sub-domain and a rule in the reverse proxy to route traffic on this sub-domain with HTTPS/443 to localhost:5000 so that I don't have to expose port 5000/5001 directly. But now I can't get the auto-redirect to work anymore. If entering http://nas.mydomain.com:80 I don't get redirected to port 443 but to 5001 which is closed. Can I configure it to redirect to 443 instead?

1
  • I'd just like not having to enter any port at all. I mean just entering "nas.mydomain.com" in a browser should take me to the secure endpoint and by default it will be http:80 which then would redirect me to https:5001. But if entering https://nas.mydomain.com:443 explicitly, that should work too and not redirect to anything. I also have another web-app I want to work in the same way, on another sub-domain. Commented Jun 13, 2017 at 16:52

2 Answers 2

1

Synology DSM Menu > Control Panel > External Access -change http to 80 and https to 443 like this (Control Panel example setup)

No need to forward the ports just changes them in the control panel since from a security point of view its the same just what you are doing adds extra work and more resource usage from the NAS.

7
  • Thanks for the suggestion, but that didn't work for me. Still get routed to 5001. Commented Jun 13, 2017 at 17:12
  • Make sure any of your redirects that you might of manually tried have been removed. Also dont forget to reboot your NAS and router just to be sure the settings take.
    – repairmant
    Commented Jun 13, 2017 at 17:21
  • Still nothing. All I have now is port forwarding 80:80 and 443:443, a reverse proxy rule https://nas.mydomain.com:443 to http://localhost:5000, opened 80 and 443 in firewall (do I need to open 80 in this case?). And added your suggestion as well. When going to http://nas.mydomain.com it redirects to port 5000 and times out. If having the autoredirect-option turned on I get redirected to 5001 instead. But also times out. When entering httpS://nas.mydomain.com it all works fine. Strange. Commented Jun 13, 2017 at 17:43
  • Yes forward port 80. Did you reboot both your NAS and router? Also make sure to clear your browser cache and cookies also.
    – repairmant
    Commented Jun 13, 2017 at 17:46
  • Also here is a threat with some more solutions you can try out. Keep in mind once your do get this to work web station and or photo station might not work. forum.synology.com/enu/viewtopic.php?t=50796#p238791
    – repairmant
    Commented Jun 13, 2017 at 17:52
1

I was also trying to configure remote access to my Synology via HTTPS on default port 443 I managed to achieve it with these steps:

  1. Configure external ports in DSM Menu > Control Panel > External Access > Advanced tab (set DSM (HTTPS) port 443)
  2. Configure port forwarding on router where external port 443 is redirected to Synology NAS port 5001 (the HTTPS port that is configured in Control Panel > Network > DSM Settings, 5001 is the default one)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .