DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2007-08-19 17:09:41

PP133
Member
Registered: 2007-08-16
Posts: 12

Mount Help

Hey guys, I'm having some issues mounting my dns323 in linux.  I'm trying to mount this from home, behind a router, and the dns323 is in my cubicle at work, not behind a router.  BTW, I modified the IPs in the output that follows for my own protection smile

Here's my exports file (the dns323's IP address is 72.133.39.60 and the IP address that my home router has is 75.80.112.26):

/mnt/HD_a2 # cat /mnt/HD_a2/fun_plug.d/etc/exports
/ 72.133.39.0/24(rw,no_root_squash)
/mnt/HD_a2 72.133.39.0/24(rw,no_root_squash)
/mnt/HD_a2 75.80.112.0/24(rw,no_root_squash)


I did start nfs on the 323:

/mnt/HD_a2/fun_plug.d/start # sh unfsd.sh
Starting rpc.portmap...
Starting unfsd...

This is my attempt at mounting the 323 from my linux box:

Baleeted mnt # mount -t nfs 72.133.39.60:/mnt/HD_a2 /mnt/mrpinchy/
mount: 72.133.39.60:/mnt/HD_a2 failed, reason given by server: unknown nfs status return value: 22


Any ideas?  Thx in advance!

Offline

 

#2 2007-08-20 11:48:12

HighWater
Member
Registered: 2007-08-10
Posts: 19

Re: Mount Help

Did you forward the port for the nfs share on your router
default is 2049 on UDP en TCp

Offline

 

#3 2007-08-20 20:21:46

PP133
Member
Registered: 2007-08-16
Posts: 12

Re: Mount Help

HighWater wrote:

Did you forward the port for the nfs share on your router
default is 2049 on UDP en TCp

Thx for the reply!

I'm not positive about this, but I don't think i need to punch a hole in the router since I'm going OUT through the router, not coming in.  If the dns323 box were behind the router, then I think you'd be right but it's only behind a cable modem:


--------------          -------------                                                              --------------------              -------------------
|   home     |------>|   Router   | ===========> INTERNET ===========> |  Cable Modem | --------> |    DNS-323    |
--------------          -------------                                                              --------------------              -------------------

Offline

 

#4 2007-08-20 21:01:37

PP133
Member
Registered: 2007-08-16
Posts: 12

Re: Mount Help

HighWater wrote:

Did you forward the port for the nfs share on your router
default is 2049 on UDP en TCp

Just to test, I tried mounting the dns323 from a coworker's server, which is directly connected to a cable modem (i made sure to add his IP range to the exports file):

> mount -t nfs 72.133.39.60:/mnt/HD_a2 mrpinchy
[udp] 72.133.39.60:/mnt/HD_a2: Permission denied

Offline

 

#5 2007-08-20 23:18:08

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Mount Help

I strongly advice _against_ using NFS over the Internet without a secure tunnel (IPsec, PPTP, cipe, ...)!!

Offline

 

#6 2007-08-20 23:58:56

PP133
Member
Registered: 2007-08-16
Posts: 12

Re: Mount Help

fonz wrote:

I strongly advice _against_ using NFS over the Internet without a secure tunnel (IPsec, PPTP, cipe, ...)!!

You may be right...I do rsync right now to get files on there, since that uses ssh.

I guess I can scp certain files off there if I don't want to rsync.

Offline

 

#7 2008-02-07 11:50:30

Tom0000
Member
Registered: 2008-01-31
Posts: 23

Re: Mount Help

The hint.

The default exports file created by fun_plug in /fun_plug.d/etc/exports has sample entry with defined parameters :
(rw,no_root_squash)

The problem is in no_root_squash. It makes not possible to delete file created in nfs connection by samba connection.
This problem is fixing if instead of no_root_squash the all_squash will be used .

Last edited by Tom0000 (2008-02-07 16:27:26)

Offline

 

#8 2008-02-07 13:07:49

HaydnH
Member
Registered: 2007-09-28
Posts: 187

Re: Mount Help

fonz wrote:

I strongly advice _against_ using NFS over the Internet without a secure tunnel (IPsec, PPTP, cipe, ...)!!

I second that! If you want to use nfs over the net install openvpn or similar! If you've already forwarded the port on the router un-forward it!

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB