LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 01-25-2010, 09:14 AM   #1
jorisroovers
LQ Newbie
 
Registered: Jan 2010
Posts: 2

Rep: Reputation: 0
Problem while writing files from NFS client to server behind firewall


(Edit: Forgot to mention NFS in the title)
Hi,

For some time now, I'm having some problems with configuring an NFSv4 server to let it work with a firewall.
I've already searched to web, but I was unable to find a solution that works for me. I'm hoping that someone can help me here.

The situation is as follows:
I'm trying to connect an NFS client to an NFS server that is behind a firewall. I don't have access to this firewall, but I can contact the administrator to open some ports for me. I already did this for opening port 2049.
The result is that the client can read files from the server, but is unable to write files to the server. I believe that for writing an extra RPC-connection needs to be set up. However, the ports on which the RPC-connection is set up, seem to be different for every connection (I verified this using 'netstat -tn'). Clearly, this is a problem since the server is protected by the firewall.
Thus, what I want to do is configure the server in such a way, that it always uses the same server-side port(s) to connect with the writing clients (just like 2049 for reading). I've already tried to configure the /etc/default/nfs-kernel-server and /etc/default/nfs-common files, but that hasn't really worked out yet.

Note:
Because I don't like to contact the system admin every day, I hooked up 2 computers (client/server) on which I set up the same configuration (without the firewall). I'd like to see it working on those machines first (that is, 'netstat -tn' showing the correct port), before I contact the admin to open some extra ports.

Can anyone help me ?
Thanks

Last edited by jorisroovers; 01-25-2010 at 09:18 AM.
 
Old 01-25-2010, 09:38 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
in /etc/sysconfig/nfs yo can force each relevant NFS process to se a static port and bypass the need for the RPC services (although I think it might still be checked regardless). Better yet, use NFS4 and ignore it alltogether as it doesn't RPC for the data transfer, just direct TCP/2049
 
Old 01-25-2010, 09:40 AM   #3
jorisroovers
LQ Newbie
 
Registered: Jan 2010
Posts: 2

Original Poster
Rep: Reputation: 0
The thing is, I'm using NFS4...
It seems that other connections (on other ports than 2049) are used when writing data from clients.

Any further ideas? Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
tftp-server with client firewall Spetnik Linux - Server 1 09-23-2009 08:44 PM
[SOLVED] Firewall server and how to force client to use it. Mogget Linux - Networking 3 03-02-2009 02:02 PM
connect to my xdmcp server from a client behind a firewall zooper Linux - Networking 1 08-04-2006 03:40 PM
C++ - problem with writing to files Nylex Programming 5 02-08-2006 01:13 AM
NET8 client-server connection through firewall agts Linux - Newbie 3 04-23-2004 08:42 AM


All times are GMT -5. The time now is 07:42 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration