Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 05-04-2004, 03:13 PM   #1
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
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 i think.
Old 05-04-2004, 05:05 PM   #3
LQ Newbie
Registered: Apr 2004
Location: west coast USA
Distribution: redhat 9, fedora core 2, Gentoo
Posts: 20

Rep: Reputation: 0
nfs firewall

You may find this link:
Helpfull in setting up static ports...
Old 05-05-2004, 04:57 PM   #4
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 :

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).


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 08:21 AM.

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