Question HTTP>HTTPS redirection with non-std ports

Currently reading
Question HTTP>HTTPS redirection with non-std ports

Telos

Subscriber
2,826
892
NAS
DS418play, DS213j, DS3622+, DSM 7.2.4-11091
Does redirection work when the NAS ports are changed from 5000/5001?

For example...
HTTP: 10000
HTTPS: 10001

If I login in with either

There is no connection. My only option is

I've tried this from within the LAN, and via a VPN connection (which permits LAN connections, if that matters).

Clearly, I'm misunderstanding how this "feature" works.
 

fredbert

Moderator
NAS Support
Subscriber
4,064
1,608
NAS
DS1520+, DS218+, DS215j
Router
  1. RT2600ac
  2. MR2200ac
  3. RT6600ax
Operating system
  1. macOS
Mobile operating system
  1. iOS
I've changed the standard DSM and package GUI HTTP 5000 / HTTPS 5001 to two other ports. By enabling HSTS then this will force DSM HTTP <whatever port> to DSM HTTPS <whichever port>. The actual DSM GUI setting is in Control Panel -> Network -> DSM Settings and doesn't mention HSTS by name.

The Application Portal allows HSTS to be set for each application.

Similar happens for the default Web Station HTTP 80 / HTTP 443 (I think this takes the setting from the Control Panel setting). If you create virtual hosts in Web Station then each can have HSTS set/unset.
 

Telos

Subscriber
2,826
892
NAS
DS418play, DS213j, DS3622+, DSM 7.2.4-11091
Perhaps I'm simply dense. In Application Portal I select "Audio Station" >Edit>Enable Customized Domain>"mynas.synology.me" and check HSTS.

On my LAN, "mynas.synology.me:port/alias" does nothing for me (if I use the https port I get an error "The plain HTTP request was sent to HTTPS port" I'm not understanding (or seeing http>https redirection).

Also... in Application Portal there is no "application" for the DSM browser interface.
 

fredbert

Moderator
NAS Support
Subscriber
4,064
1,608
NAS
DS1520+, DS218+, DS215j
Router
  1. RT2600ac
  2. MR2200ac
  3. RT6600ax
Operating system
  1. macOS
Mobile operating system
  1. iOS
The DSM HTTP/HTTPS interface is set in Control Panel and most applications in Application Portal.

With HSTS enabled then the HTTP/HTTPS pair for a domain will redirect the normal HTTP service and port request to the HTTPS service and port. For example:

Domain: myapp.mydomain.tld
HTTP: 1234
HTTPS: 4321

A request to http://myapp.mydomain.tld:1234 will get redirected to https://myapp.mydomain.tld:4321
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

EDIT: Ok, not sure why. But after destroying the LE docker container and re-created it using a MACVLAN IP...
Replies
8
Views
4,876

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Top