NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

eavdmeer's avatar
eavdmeer
Aspirant
Aug 24, 2009

Securely access downloads from anywhere, definitive howto

After spending a good day collecting information from various threads, I decided to put together the definitive howto that collects all information you need to securely access your bittorrent downloads from anywhere though password protected HTTPS. This involves the following steps:


  1. Install root access through SSH addon.

  2. Install APT addon so you can install software.

  3. Install Transmission addon.

  4. Build and install mod-proxy for apache.

  5. Configure and restart apache.

  6. Configure Transmission addon.

  7. Restart your NAS.


  8. WARNING!
    Please note that you can get your ReadyNAS into peril easily by overriding some of the system libraries and utilities. Do not do your development on a system you don't have a backup of as you may end up re-installing the firmware or worse yet, doing a factory default.
    I've gone through this procedure for ReadyNas Duo only. You milage may vary!

    Now, if you're still with me, here's the full procedure:


    1. Install the EnableRootSSH addon. Download the file and install it through the Frontview web UI under System -> Update -> Local Update. This will require you to restart the ReadyNas.

    2. Install the APT addon. Again, you will need to restart.

    3. Download the latest version of the Transmission addon. This will not ask for a restart, but you should restart anyway to get it to work.

    4. Connect to the ReadyNas through SSH with the root account. Password should be the same as the admin account password used in Frontview. Run the following commands:

      # apt-get update
      # apt-get install gcc autoconf libtool
      # wget http://archive.apache.org/dist/httpd/httpd-2.2.6.tar.gz
      # tar xzf httpd-2.2.6.tar.gz
      # cd httpd-2.2.6
      # ./configure --build=sparc-linux --enable-proxy=shared --enable-proxy-http=shared

      have some coffee...

      # cd modules/proxy
      # make install

      have some more cofee...

      # cd ../../../
      # rm -r httpd-2.2.6 httpd-2.2.6.tar.gz

      You should now have a version of mod_proxy.so installed in /usr/local/apache2/modules.

    5. Create a new apache config file for our proxy settings:
      vi /etc/frontview/apache/addons/TRANSMISSION-PROXY.conf

      Copy the following code into this file:
      LoadModule proxy_module /usr/local/apache2/modules/mod_proxy.so
      LoadModule proxy_http_module /usr/local/apache2/modules/mod_proxy_http.so

      ProxyRequests Off

      <Proxy *>
      Order deny,allow
      Allow from all
      </Proxy>

      ProxyPass /transmission http://localhost:8181/transmission
      ProxyPassReverse /transmission http://localhost:8181/transmission

      Do not be tempted to use another path than /transmission. That won't work. The Transmission plugin uses abolute paths in its JavaScript code.
      To activate the new configuration, restart apache:
      killall apache-ssl; /usr/sbin/apache-ssl -f /etc/frontview/apache/httpd.conf

    6. We're almost done. All we need to do now is configure Transmission. Make sure you disable the addon first, otherwise the changes you make to the config file will be lost! Edit the config file:
      vi /addons-config/Transmission/transmission-daemon/settings.json

      Look for: "rpc-authentication-required" and set it to true. Now set "rpc-password" to the (plain text) password you want to use. The addon will encrypt the password for you later on, so don't worry that it is plain text now. At this point, you should enable the Transmission addon again.

    7. Just to be on the safe side, restart the ReadyNas. You should now be able to connect to the Transmission download manager by using the path https://your-ip/transmission/web.

    8. If you forward port 443 from your Internet router to the ReadyNas, you will be able to access you bittorrent download manager from anywhere. Combine that with Dynamic DNS and you should be one happy camper.

2 Replies

Replies have been turned off for this discussion
  • ReadyNas Duo (sparc) users should download the New Transmission addon here:

    https://www.readynas.com/forum/viewtopic.php?f=36&t=68079

    The original version won't work for RAIDiator versions above 4.1.10

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More