seansfkelley / nas-download-manager

An open source browser extension for adding/managing download tasks to your Synology DiskStation.
255 stars 46 forks source link

Support QuickConnect IDs #5

Open seansfkelley opened 7 years ago

seansfkelley commented 7 years ago

The quickconnect protocol is not officially documented and would require some reverse-engineering, so this feature is unlikely to get implemented any time soon.

The workaround for now is to use the regular "external access" configuration (e.g., the synology.me domain).

seansfkelley commented 7 years ago

This might also be a job for https://github.com/seansfkelley/synology-typescript-api.

seansfkelley commented 7 years ago

The available QuickConnect "nameservers" can be fetched with

curl -XPOST https://global.quickconnect.to/Serv.php -d '{"version":1,"command":"get_site_list"}'

then you can ping each one asking for the connection details with

curl -XPOST https://<nameserver>/Serv.php -d '{"version":1,"command":"get_server_info","id":...,"serverID":<your-quickconnect-id>}'

you can ask for a "tunnel" which I take to mean they proxy everything for you

curl -XPOST https://<nameserver>/Serv.php -d '{"version":1,"command":"request_tunnel","id":...,"serverID":<your-quickconnect-id>}'

(where idin the last two is dsm_portal or dsm_portal_https)

You can also ask for multiple commands simultaneously by POSTing an array (like if we want to ask about HTTP and HTTPS at the same time).

okoetter commented 6 years ago

Any progress on this? As my internet connection is DS Lite and I only habe an IPv6 address and no IPv4 address I need a tunnel like quickconnect.to to access my home NAS from a IPv4 only network like my job's or my cell phone provider's network.

seansfkelley commented 6 years ago

I don't plan on implementing this any time soon, no. To do so would require me to reverse engineer the protocol (as it is not officially documented) as well as rearrange some of the internals, which is a fair bit of work that I unfortunately don't have time for.

seansfkelley commented 6 years ago

Blocked on https://github.com/seansfkelley/synology-typescript-api/issues/3.

hme31 commented 5 years ago

Would be nice if that could be available as many of us use connection from protected business environnement.