NFS mount behind NAT (virtualbox)

4,630 views
Skip to first unread message

Vinod H Parmar

unread,
Jul 12, 2010, 2:56:56 AM7/12/10
to VG...@googlegroups.com
Hi,

In one of my users laptop virtual box is installed. there host O.S. is windows 7 (64bit) and guest OS is fedora 11.

User is connected to my office using L2TP vpn from windows 7 client. for this he got ip address 192.168.X1.X2 which is in the range of my office ip address.

Now when user started guest os (fedora 11) with  LAN in NAT mode he was able to do ssh to my NFS server but not able to mount drive.

In my NFS server log (/var/log/messages) I found below error


Jul 12 10:43:02 ahd kernel: nfsd: request from insecure port (192.168.X1.X2:5395 3)!

If any one have solution to mount this nfs drive in virtaul os.. please  let me know.

With Regards,
Vinod Parmar
(Cell - 9825414974)

milap

unread,
Jul 12, 2010, 3:49:29 AM7/12/10
to vg...@googlegroups.com
hi vinod


well there are certain possibility so please follow some step which i mention below.

1) first check weather iptables rule are set for that networks or not?
other wise once you stop firewall and test it.

2) check Selinux Status... if is not need than disable it other wise apply this command restorecond -R path

3) mostly problem will resolve due to this step

In vim etc/exports:

/path network or ipaddress(rw,insecure,sync)

Note: plz use this option after above steps...

i hope this will resolve problem
if u done once let us know for same.

Regards

Milap Amin.

################################
On Mon, 12 Jul 2010 12:26:55 +0530 wrote
--
>
Please read http://www.catb.org/~esr/faqs/smart-questions.html before posting.
>
You received this message because you are subscribed to the "Vibrant GNU/Linux User Group".
>
To stop receiving emails from this group, mail to VGLUG-un...@googlegroups.com
>
To post to this group, send email to VG...@googlegroups.com
>
For more options, visit this group at http://groups.google.com/group/VGLUG

Tejas Barot

unread,
Jul 12, 2010, 6:09:40 AM7/12/10
to vg...@googlegroups.com
Hello,

On Mon, Jul 12, 2010 at 12:26 PM, Vinod H Parmar <vinod...@gmail.com> wrote:
Hi,

In one of my users laptop virtual box is installed. there host O.S. is windows 7 (64bit) and guest OS is fedora 11.

User is connected to my office using L2TP vpn from windows 7 client. for this he got ip address 192.168.X1.X2 which is in the range of my office ip address.

Now when user started guest os (fedora 11) with  LAN in NAT mode he was able to do ssh to my NFS server but not able to mount drive.

In my NFS server log (/var/log/messages) I found below error


Jul 12 10:43:02 ahd kernel: nfsd: request from insecure port (192.168.X1.X2:5395 3)!

Stop your iptables service and then try again.


 

If any one have solution to mount this nfs drive in virtaul os.. please  let me know.

With Regards,
Vinod Parmar
(Cell - 9825414974)

--
Please read http://www.catb.org/~esr/faqs/smart-questions.html before posting.
You received this message because you are subscribed to the "Vibrant GNU/Linux User Group".
To stop receiving emails from this group, mail to VGLUG-un...@googlegroups.com
To post to this group, send email to VG...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/VGLUG



--
Thanks & Regards,
Tejas Barot
Linux Administrator,
Red Hat Certified Engineer,
Linux Blog:- http://blog.ask4itsolutions.com
Open Source :- http://opensource.ask4itsolutions.com

Registered Linux User :- http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=507586

"Linux is user friendly, it's just picky about its friends."

Vinod H Parmar

unread,
Jul 12, 2010, 6:21:26 AM7/12/10
to vg...@googlegroups.com

Hi,

Thanks Milap for your help.. after inserting "insecure" option in /etc/exports file it is working.

With Regards,
Vinod Parmar
(Cell - 9825414974)


Hardik Nagarkar

unread,
Jul 12, 2010, 6:11:59 AM7/12/10
to vg...@googlegroups.com
can we define a range in /etc/exports. with the setting you informed to do.

/path IP (ro,insecure,sync)

milap

unread,
Jul 12, 2010, 10:36:48 AM7/12/10
to vg...@googlegroups.com
hi hardik

ya of course we can define range of ip or networks in /etc/exports
with same insecure option.

Regards
Milap Amin.

######################################################################

On Mon, 12 Jul 2010 19:51:14 +0530 wrote

>can we define a range in /etc/exports. with the setting you informed to do.

/path IP (ro,insecure,sync)




--
>
Please read http://www.catb.org/~esr/faqs/smart-questions.html before posting.
>
You received this message because you are subscribed to the "Vibrant GNU/Linux User Group".
>
To stop receiving emails from this group, mail to VGLUG-un...@googlegroups.com
>
To post to this group, send email to VG...@googlegroups.com
>
For more options, visit this group at http://groups.google.com/group/VGLUG


Regards,

Milap Amin

http://milapamin.wordpress.com/

Hardik Nagarkar

unread,
Jul 13, 2010, 12:31:58 AM7/13/10
to vg...@googlegroups.com
Thanks for your reply Milap. We will do the necessary changes than.

Regards,
Hardik Nagarkar
--
Regards,
Hardik. Nagarkar
Mobile: 9824532979
Messenger ID's
Skype Name: sp.hardik Yahoo:hardikn...@yahoo.co.in
GTalk: hardikn...@gmail.com   MSN: hardikn...@hotmail.com
Reply all
Reply to author
Forward
0 new messages