LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-25-2012, 10:41 PM   #1
subashd
LQ Newbie
 
Registered: Dec 2011
Posts: 6
Blog Entries: 1

Rep: Reputation: Disabled
problem in nfs ,while policy is drop


I am curently using RHEL6, while I make policy drop in iptables ,there will be problem in nfs while booting .
for command #service nfs restart ,it will show the failed.
please help me soon
 
Old 01-26-2012, 11:38 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, welcome to LQ!

Quote:
I am curently using RHEL6, while I make policy drop in iptables ,there will be problem in nfs while booting .
for command #service nfs restart ,it will show the failed.
Open ports (permit them) that NFS requires?
 
Old 01-28-2012, 04:15 AM   #3
subashd
LQ Newbie
 
Registered: Dec 2011
Posts: 6
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
yes , I have open the port .
# vim /etc/sysconfig/nfs
LOCKD_TCPPORT=32803
LOCKD_UDPPORT=32769
STATD_PORT=662
MOUNTD_PORT=892 :wq

And in iptables i have done follwing
iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT
iptables -P FORWARD DROP
iptables -F
iptables -A INPUT -i l0 -j ACCEPT
iptables -A INPUT -s 192.168.1.1 -d 192.168.1.2 -p tcp --dport 2049 -j ACCEPT

iptables -A INPUT -s 192.168.1.1 -d 192.168.1.2 -p udp --dport 2049 -j ACCEPT

iptables -A INPUT -s 192.168.1.1 -d 192.168.1.2 -p tcp --dport 111 -j ACCEPT
iptables -A INPUT -s 192.168.1.1 -d 192.168.1.2 -p udp --dport 111 -j ACCEPT

iptables -A INPUT -s 192.168.1.1 -d 192.168.1.2 -p tcp --dport 892 -j ACCEPT
iptables -A INPUT -s 192.168.1.1 -d 192.168.1.2 -p udp --dport 892 -j ACCEPT

iptables -A INPUT -s 192.168.1.1 -d 192.168.1.2 -p tcp --dport 662 -j ACCEPT
iptables -A INPUT -s 192.168.1.1 -d 192.168.1.2 -p udp --dport 662 -j ACCEPT

iptables -A INPUT -s 192.168.1.1 -d 192.168.1.2 -p tcp --dport 32803 -j ACCEPT

iptables -A INPUT -s 192.168.1.1 -d 192.168.1.2 -p udp --dport 32769 -j ACCEPT

iptables -I INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

service iptables save
service iptables restart


But when i give the command #service nfs restart ,it shows the following command
Starting NFS quotas: Failed

Starting NFS daemon: Failed
Starting NFS mountd: Failed

This happen is my laptop (lenovo G460)
please help me as soon as possible

Last edited by subashd; 01-28-2012 at 04:28 AM.
 
  


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
tcpdump shows packages even if iptables policy is set to DROP paliga Linux - Networking 7 06-05-2011 12:37 PM
Samba System Policy, Default User Policy scooter549 Linux - General 2 02-24-2009 03:23 AM
iptables / output *drop* policy reverse Linux - Security 3 11-22-2007 11:39 AM
Iptables drop policy problem Dakkar Linux - General 5 10-18-2006 03:38 PM
WU-FTPD and IPTABLES DROP Policy Cpare Linux - Networking 0 10-23-2001 10:19 PM


All times are GMT -5. The time now is 01:17 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration