Open up Remote services (other protocols besides CIFS/AFP)

ReadyNAS Remote allows you to have seamless drag & drop remote access to your ReadyNAS. See What is ReadyNAS Remote? for more info.

Moderators: chirpa, cap1, rus, maxkomlev, pimmaneni

Similar topics


Open up Remote services (other protocols besides CIFS/AFP)

Postby chirpa » Thu Jul 22, 2010 3:38 pm

There is a non-documented way to enable using Remote for other protocols/services. For those tinkerers out there, this enables you to do a lot more.

You could run NFS, iSCSI, IPP, SSH, FrontView HTTPS, etc over the Remote 'VPN' connection. Do more with what you already have. It does require SSH right now to modify a configuration file on the NAS.

The configuration file that requires modification is: /opt/leaf/conf/nas/lnconfiguration.xml

Here is an example of the contents:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<Configuration>
        <AccountInformation>
                <Username>CaponeNAS</Username>
                <Password>!thepassword!</Password>
        </AccountInformation>
        <ConnectionSettings>
                <UseProxy>False</UseProxy>
                <ProxyType Value="HTTP" Address="" Port="">
                        <Username></Username>
                        <Password></Password>
                </ProxyType>
                <Authtentication Value="False"/>
                <UsePortForwarding>True</UsePortForwarding>
                <PortForwarding Protocol="TCP" Port="6300"/>
        </ConnectionSettings>
</Configuration>

We need to add this section right after <Configuration>, and restart Remote under Installed Add-ons:
Code: Select all
        <Settings>
                <Firewall>0</Firewall>
        </Settings>

The file should now look like:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<Configuration>
        <Settings>
                <Firewall>0</Firewall>
        </Settings>
        <AccountInformation>
                <Username>CaponeNAS</Username>
                <Password>!thepassword!</Password>
        </AccountInformation>
        <ConnectionSettings>
                <UseProxy>False</UseProxy>
                <ProxyType Value="HTTP" Address="" Port="">
                        <Username></Username>
                        <Password></Password>
                </ProxyType>
                <Authtentication Value="False"/>
                <UsePortForwarding>True</UsePortForwarding>
                <PortForwarding Protocol="TCP" Port="6300"/>
        </ConnectionSettings>
</Configuration>

Now open the Remote client on your PC. Under Properties>Advanced, remove the checkbox for Enable Firewall.
Image

You can now use the Remote tunnel for pretty much anything. As always, NTGR support will not help with any issues you encounter while doing this.
User avatar
chirpa
Jedi Council
 
Posts: 11174
Joined: Mon Sep 24, 2007 11:52 am
Location: T.A.R.D.I.S.
ReadyNAS: Repertoire

Re: Open up Remote services (other protocols besides CIFS/AF

Postby mdgm » Thu Jul 22, 2010 4:43 pm

So why do you disable this by default? This could be quite useful if written properly for allowing tech support SSHing into the NAS without having to punch a hole in the router's firewall.

Also as great a fix as this is, it doesn't solve the issue that different ReadyNAS often end up on different subnets on the VPN, so transfers NAS to NAS using ReadyNAS Remote aren't really helped by this solution.
Last edited by mdgm on Thu Jul 22, 2010 4:49 pm, edited 1 time in total.
ReadyNas User.
ReadyNas - 2x RND4000 - ReadyNas NV+ Hard Drives: 4x ST31500341AS RAM: 256MB - 1x RNDU6000 - Ultra 6 Hard Drives: 6x ST31500341AS RAM: 1GB.
Useful links: FAQ|Hardware Compatibility List|Docs: Setup Guide, Manual|Downloads|Unofficial Tips|GPL|MDGM on Twitter|MDGM's Unofficial Guides
Please look at useful links and search for other posts. If you have a question chances are someone else has posted on it previously. You know the saying: "Two great minds think alike"
NB: A ReadyNas is not an excuse not to have a backup. Fire, theft, multiple disk failures, other hardware failure, floods, user negligence etc. can all result in loss of data.
How we users can contact NETGEAR Technical Support | Australia: 1300 361 254 / Other Numbers|Online Submission
Toggle ReadyNAS Remote Firewall Unofficial Guide for moving from Sparc ReadyNAS to x86 ReadyNAS
If you like my add-ons or guides, please donate:
Image
User avatar
mdgm
ReadyNAS Groupie
 
Posts: 10838
Joined: Tue Feb 17, 2009 9:34 pm
Location: Down Under
ReadyNAS: Ultra

Re: Open up Remote services (other protocols besides CIFS/AF

Postby chirpa » Thu Jul 22, 2010 4:46 pm

Security is part of it. And in the beginning Remote was from Leaf Networks, a separate company. But they are now part of us, which makes things easier.
User avatar
chirpa
Jedi Council
 
Posts: 11174
Joined: Mon Sep 24, 2007 11:52 am
Location: T.A.R.D.I.S.
ReadyNAS: Repertoire

Re: Open up Remote services (other protocols besides CIFS/AF

Postby ksaraf » Thu Jul 22, 2010 4:49 pm

I just don't understand why ReadyNAS team seems to cater so much more to hackers and tinkerers rather than the general consumer. Seems like if I was average Joe, I should go with another company because everything is already built in!
ksaraf
ReadyNAS Newbie
 
Posts: 19
Joined: Fri Oct 30, 2009 2:29 pm
ReadyNAS: NV+

Re: Open up Remote services (other protocols besides CIFS/AF

Postby ksaraf » Thu Jul 22, 2010 4:53 pm

Ok, lets say I do this. Then would you please tell me how to get to mount my attached printer?
Please give me actual instructions, I am pretty adept at Win & Mac, don't know much about Unix.
ksaraf
ReadyNAS Newbie
 
Posts: 19
Joined: Fri Oct 30, 2009 2:29 pm
ReadyNAS: NV+

Re: Open up Remote services (other protocols besides CIFS/AF

Postby chirpa » Thu Jul 22, 2010 5:04 pm

It would probably be better for super-poussin or someone to create an add-on, which can toggle these settings without requiring command line tweaks.

Then, you could add http://MY_NAS:631/printer_name on the PC with Remote, and you could print to your home from anywhere you are in the world connected to the Internet.
User avatar
chirpa
Jedi Council
 
Posts: 11174
Joined: Mon Sep 24, 2007 11:52 am
Location: T.A.R.D.I.S.
ReadyNAS: Repertoire

Re: Open up Remote services (other protocols besides CIFS/AF

Postby ksaraf » Thu Jul 22, 2010 5:19 pm

Can you explain to me what <Firewall>0</Firewall> means exactly? Aren't you turning off the firewall? Isn't that generally a bad idea?
ksaraf
ReadyNAS Newbie
 
Posts: 19
Joined: Fri Oct 30, 2009 2:29 pm
ReadyNAS: NV+

Re: Open up Remote services (other protocols besides CIFS/AF

Postby chirpa » Thu Jul 22, 2010 5:57 pm

It turns off the client firewall. By default, it only allows CIFS and AFP traffic. Adding that line allows other ports to work as well.

You are still secure, because Remote creates a direct connection between your authorized devices only. On the NAS you had to add the username of your PC client before they could talk to each other.
User avatar
chirpa
Jedi Council
 
Posts: 11174
Joined: Mon Sep 24, 2007 11:52 am
Location: T.A.R.D.I.S.
ReadyNAS: Repertoire

Re: Open up Remote services (other protocols besides CIFS/AF

Postby mdgm » Thu Jul 22, 2010 6:14 pm

chirpa wrote:It would probably be better for super-poussin or someone to create an add-on, which can toggle these settings without requiring command line tweaks.

Could this be done using the SDK xmlutils?
ReadyNas User.
ReadyNas - 2x RND4000 - ReadyNas NV+ Hard Drives: 4x ST31500341AS RAM: 256MB - 1x RNDU6000 - Ultra 6 Hard Drives: 6x ST31500341AS RAM: 1GB.
Useful links: FAQ|Hardware Compatibility List|Docs: Setup Guide, Manual|Downloads|Unofficial Tips|GPL|MDGM on Twitter|MDGM's Unofficial Guides
Please look at useful links and search for other posts. If you have a question chances are someone else has posted on it previously. You know the saying: "Two great minds think alike"
NB: A ReadyNas is not an excuse not to have a backup. Fire, theft, multiple disk failures, other hardware failure, floods, user negligence etc. can all result in loss of data.
How we users can contact NETGEAR Technical Support | Australia: 1300 361 254 / Other Numbers|Online Submission
Toggle ReadyNAS Remote Firewall Unofficial Guide for moving from Sparc ReadyNAS to x86 ReadyNAS
If you like my add-ons or guides, please donate:
Image
User avatar
mdgm
ReadyNAS Groupie
 
Posts: 10838
Joined: Tue Feb 17, 2009 9:34 pm
Location: Down Under
ReadyNAS: Ultra

Re: Open up Remote services (other protocols besides CIFS/AF

Postby chirpa » Thu Jul 22, 2010 6:19 pm

Yeah, but even a simple sed/awk line could insert/remove it.
User avatar
chirpa
Jedi Council
 
Posts: 11174
Joined: Mon Sep 24, 2007 11:52 am
Location: T.A.R.D.I.S.
ReadyNAS: Repertoire

Re: Open up Remote services (other protocols besides CIFS/AF

Postby mdgm » Thu Jul 22, 2010 8:17 pm

I've just about written something. Should have it ready soon.
ReadyNas User.
ReadyNas - 2x RND4000 - ReadyNas NV+ Hard Drives: 4x ST31500341AS RAM: 256MB - 1x RNDU6000 - Ultra 6 Hard Drives: 6x ST31500341AS RAM: 1GB.
Useful links: FAQ|Hardware Compatibility List|Docs: Setup Guide, Manual|Downloads|Unofficial Tips|GPL|MDGM on Twitter|MDGM's Unofficial Guides
Please look at useful links and search for other posts. If you have a question chances are someone else has posted on it previously. You know the saying: "Two great minds think alike"
NB: A ReadyNas is not an excuse not to have a backup. Fire, theft, multiple disk failures, other hardware failure, floods, user negligence etc. can all result in loss of data.
How we users can contact NETGEAR Technical Support | Australia: 1300 361 254 / Other Numbers|Online Submission
Toggle ReadyNAS Remote Firewall Unofficial Guide for moving from Sparc ReadyNAS to x86 ReadyNAS
If you like my add-ons or guides, please donate:
Image
User avatar
mdgm
ReadyNAS Groupie
 
Posts: 10838
Joined: Tue Feb 17, 2009 9:34 pm
Location: Down Under
ReadyNAS: Ultra

Re: Open up Remote services (other protocols besides CIFS/AF

Postby mdgm » Thu Jul 22, 2010 9:03 pm

chirpa wrote:It would probably be better for super-poussin or someone to create an add-on, which can toggle these settings without requiring command line tweaks.

Here you go:
Here's the x86 version: ToggleRemoteFirewall_0.2-x86.bin

Here's the Sparc version: ToggleRemoteFirewall_0.2-nsp.bin

Installation is via System > Update > Local in Frontview. You will be alerted as to what happens. If you have a problem with the add-on installation let me know.

8)
Last edited by mdgm on Fri Jul 23, 2010 12:43 am, edited 3 times in total.
ReadyNas User.
ReadyNas - 2x RND4000 - ReadyNas NV+ Hard Drives: 4x ST31500341AS RAM: 256MB - 1x RNDU6000 - Ultra 6 Hard Drives: 6x ST31500341AS RAM: 1GB.
Useful links: FAQ|Hardware Compatibility List|Docs: Setup Guide, Manual|Downloads|Unofficial Tips|GPL|MDGM on Twitter|MDGM's Unofficial Guides
Please look at useful links and search for other posts. If you have a question chances are someone else has posted on it previously. You know the saying: "Two great minds think alike"
NB: A ReadyNas is not an excuse not to have a backup. Fire, theft, multiple disk failures, other hardware failure, floods, user negligence etc. can all result in loss of data.
How we users can contact NETGEAR Technical Support | Australia: 1300 361 254 / Other Numbers|Online Submission
Toggle ReadyNAS Remote Firewall Unofficial Guide for moving from Sparc ReadyNAS to x86 ReadyNAS
If you like my add-ons or guides, please donate:
Image
User avatar
mdgm
ReadyNAS Groupie
 
Posts: 10838
Joined: Tue Feb 17, 2009 9:34 pm
Location: Down Under
ReadyNAS: Ultra

Re: Open up Remote services (other protocols besides CIFS/AF

Postby mdgm » Thu Jul 22, 2010 9:42 pm

Edit: It appears ReadyNAS Remote needs to be restarted for the changes to take effect. Will fix this in the add-on now.

Edit: Should've read chirpa's opening post more thoroughly which makes it clear that ReadyNAS Remote needs to be restarted.
Last edited by mdgm on Fri Jul 23, 2010 4:45 am, edited 1 time in total.
ReadyNas User.
ReadyNas - 2x RND4000 - ReadyNas NV+ Hard Drives: 4x ST31500341AS RAM: 256MB - 1x RNDU6000 - Ultra 6 Hard Drives: 6x ST31500341AS RAM: 1GB.
Useful links: FAQ|Hardware Compatibility List|Docs: Setup Guide, Manual|Downloads|Unofficial Tips|GPL|MDGM on Twitter|MDGM's Unofficial Guides
Please look at useful links and search for other posts. If you have a question chances are someone else has posted on it previously. You know the saying: "Two great minds think alike"
NB: A ReadyNas is not an excuse not to have a backup. Fire, theft, multiple disk failures, other hardware failure, floods, user negligence etc. can all result in loss of data.
How we users can contact NETGEAR Technical Support | Australia: 1300 361 254 / Other Numbers|Online Submission
Toggle ReadyNAS Remote Firewall Unofficial Guide for moving from Sparc ReadyNAS to x86 ReadyNAS
If you like my add-ons or guides, please donate:
Image
User avatar
mdgm
ReadyNAS Groupie
 
Posts: 10838
Joined: Tue Feb 17, 2009 9:34 pm
Location: Down Under
ReadyNAS: Ultra

Re: Open up Remote services (other protocols besides CIFS/AF

Postby mdgm » Thu Jul 22, 2010 11:05 pm

Updated with 0.2. This will restart ReadyNAS Remote if it is enabled which should force the configuration changes to take effect.
ReadyNas User.
ReadyNas - 2x RND4000 - ReadyNas NV+ Hard Drives: 4x ST31500341AS RAM: 256MB - 1x RNDU6000 - Ultra 6 Hard Drives: 6x ST31500341AS RAM: 1GB.
Useful links: FAQ|Hardware Compatibility List|Docs: Setup Guide, Manual|Downloads|Unofficial Tips|GPL|MDGM on Twitter|MDGM's Unofficial Guides
Please look at useful links and search for other posts. If you have a question chances are someone else has posted on it previously. You know the saying: "Two great minds think alike"
NB: A ReadyNas is not an excuse not to have a backup. Fire, theft, multiple disk failures, other hardware failure, floods, user negligence etc. can all result in loss of data.
How we users can contact NETGEAR Technical Support | Australia: 1300 361 254 / Other Numbers|Online Submission
Toggle ReadyNAS Remote Firewall Unofficial Guide for moving from Sparc ReadyNAS to x86 ReadyNAS
If you like my add-ons or guides, please donate:
Image
User avatar
mdgm
ReadyNAS Groupie
 
Posts: 10838
Joined: Tue Feb 17, 2009 9:34 pm
Location: Down Under
ReadyNAS: Ultra

Re: Open up Remote services (other protocols besides CIFS/AF

Postby ksaraf » Fri Jul 23, 2010 9:52 am

Sigh! Thank you all for your help. Just realized after doing all this that the MAC version of Remote does not have an Advanced tab to turn off firewall.
Also, even when connected to my local network, I cannot get to my NAS in a browser by typing the name, just by IP address, so I don't know how you guys are doing it.
https://10.0.10.150:631/printers/HP_LaserJe_1 - works
https://MY-NAS:631/printers/HP_LaserJe_1 - does not work
ksaraf
ReadyNAS Newbie
 
Posts: 19
Joined: Fri Oct 30, 2009 2:29 pm
ReadyNAS: NV+

Next

Return to ReadyNAS Remote

Similar topics


Who is online

Users browsing this forum: JMi and 2 guests