I am using ReadyNAS Photos to share photos on my ReadyNAS Duo with friends and family.
I want to understand clearly how my ReadyNAS Duo is enabling this. That is, what server ports it is opening up etc., in order to make this work.
My ReadyNAS Duo sits behind a Linksys Wireless-G Broadband Router (WRT54G) and has a wired connection to it. The router is connected to the cable modem.
On the Port Range Forwarding page of the router’s administrative interface, the router is configured in such a way as to not allow incoming traffic on any port to any of the clients in the local network. Yet, ReadyNAS Photos is able to serve the photos to people outside the local LAN. Surely, it must be opening up some ports if the photos all reside locally on my ReadyNAS Duo and are served up from there. I can't see how it can work otherwise. However, this information seems to be deliberately obscured.
I looked in the log file (name photos.log) and found this:
<22:45:28, Sun Jan 11, 2009> <1256> < Warn> Starting Dekoh Listener
<22:45:28, Sun Jan 11, 2009> <1256> < Warn> Using the default config file /usr/share/dekoh/Dekoh$/listener/dekoh.conf
<22:45:28, Sun Jan 11, 2009> <1256> < Warn> Listener will wait till the config file is available for read
<22:45:28, Sun Jan 11, 2009> <1256> < Warn> Resuming the Listener as the config file is available
<22:45:28, Sun Jan 11, 2009> <1256> < Warn> ----------------Configuration--------------
<22:45:28, Sun Jan 11, 2009> <1256> < Warn> das.id : XXXXXXXXXXXXXXXXXXXXXXXXX
<22:45:28, Sun Jan 11, 2009> <1256> < Warn> dekoh.presence.host : presence.readynasphotos.com
<22:45:28, Sun Jan 11, 2009> <1256> < Warn> dekoh.presence.port : 80
<22:45:28, Sun Jan 11, 2009> <1256> < Warn> perl.lib.locations :
<22:45:28, Sun Jan 11, 2009> <1256> < Warn> log.level : 3
<22:45:28, Sun Jan 11, 2009> <1256> < Warn> log.file.dirs : /var/log
<22:45:28, Sun Jan 11, 2009> <1256> < Warn> time.between.connects : 30
<22:45:28, Sun Jan 11, 2009> <1256> < Warn> strict.port : 0
<22:45:28, Sun Jan 11, 2009> <1256> < Warn> default.mag.age : -1
<22:45:28, Sun Jan 11, 2009> <1256> < Warn> command.version : 0.0
<22:45:28, Sun Jan 11, 2009> <1256> < Warn> user.agent : Dekoh-Perl-Listener
<22:45:28, Sun Jan 11, 2009> <1256> < Warn> no.of.channels : 2
<22:45:28, Sun Jan 11, 2009> <1256> < Warn> test.port : 8081
<22:45:28, Sun Jan 11, 2009> <1256> < Warn> proxy.config : /usr/share/dekoh/config/proxy.conf
<22:45:28, Sun Jan 11, 2009> <1256> < Warn> connect.timeout : 180
<22:45:28, Sun Jan 11, 2009> <1256> < Warn> Device Model : ReadyNAS Duo
<22:45:28, Sun Jan 11, 2009> <1256> < Warn> Device Serial : 1VB183R9011F8
<22:45:28, Sun Jan 11, 2009> <1256> < Warn> Listener Version : 0.6.14
<22:45:28, Sun Jan 11, 2009> <1256> < Warn> Photos Version : 0.6.15
<22:45:28, Sun Jan 11, 2009> <1256> < Warn>
I have obscured the das.id in the above log as that is what is used to create the URLs that goes out to the album invitees (Another disconcerting thing is that when you invite a group of people, it seems to send the same URL to all the invitees. It is not using any parameter besides the das.id in the incoming request URL to do some type of authentication and differentiate each incoming request. This is a bad design for a server application)
Based on the logs, it is clear that it is first talking to a server application at presence.readynasphotos.com:80.
It is also listed port 8081 as a “test.port”. Is this the port that it is opening up in order to serve photo requests?
If so, how is it working given the fact that my router is not configured to let traffic on port 8081 enter the LAN from outside?
Can someone please clarify this? I don’t want to use some “black box” application without knowing exactly what it is doing underneath given the fact that it is running a server application that is serving requests from outside my home LAN.
Thanks,
Viji
