LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 05-04-2004, 03:13 PM   #1
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Rep: Reputation: 30
NFS vs. Shorewall conflict (should be easy to solve - :newbie: here)


** duplicate post - i'm sorry but it's an easy question yet there's two places 4 it **
(take a guess where the other is)

Ok, i can get NFS to share read-only directories between two Mandrake Linux machines over a LinkSys box. However to do so, I have to turn off Shorewall, effectively leaving me wide open for Firewall protection....

What parameters do I supply Shorewall with to allow NFS to operate and is this a bad thing ?

thanks a bunch

- perry
 
Old 05-04-2004, 04:00 PM   #2
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 50
i never used nfs but i use shorewall on linux. You have to locate the shorewall rules file on your distro and allow nfs's tcp/udp ports. I am running bsd right now so i can't show you examples but you can find some on shorewall.net i think.
 
Old 05-04-2004, 05:05 PM   #3
kebabhead
LQ Newbie
 
Registered: Apr 2004
Location: west coast USA
Distribution: redhat 9, fedora core 2, Gentoo
Posts: 20

Rep: Reputation: 0
nfs firewall

Hi,
You may find this link: http://www.lowth.com/LinWiz/nfs_help.html
Helpfull in setting up static ports...
Cheers
 
Old 05-05-2004, 04:57 PM   #4
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
Here's a quick summary for Mandrake (not the only way to do it, but one way)

1. Edit /etc/sysconfig/nfs, setting the following variables :
MOUNTD_PORT=4002
LOCKD_TCPPORT=4001
LOCKD_UDPPORT=4001
STATD_PORT=4000

2. Open up the following firewall ports
111/udp 111/tcp 2049/udp 2049/tcp 4000/udp 4000/tcp 4001/udp 4001/tcp 4002/udp 4002/tcp

3. Restart NFS
/etc/init.d/nfs restart
/etc/init.d/nfslock restart

(Tested on Mandrake 10, so I can't guarantee it works on 9.1; but if not it will just be a matter of where those variables are set).
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
network connectivity...probably easy to solve.. nooodles Linux - Networking 3 09-29-2005 10:05 PM
Debian file name issue...(easy to solve?) goldeneyexs Linux - Software 0 06-11-2004 07:58 PM
NFS vs. Shorewall conflict (should be easy to solve - :newbie: here) perry Linux - Networking 2 05-21-2004 01:49 PM
How to solve the problem of IP conflict Bassam Linux - Networking 5 03-23-2004 03:24 AM
!!!!easy Problem To Solve!!!!! destkid Linux - General 5 11-21-2001 06:27 AM


All times are GMT -5. The time now is 04:54 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