LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-10-2013, 06:46 AM   #16
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Original Poster
Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495

Following the directions on this link:

http://www.cyberciti.biz/faq/centos-...-server-ports/

I added the following to my IPTables.
Code:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -s 192.168.2.0/24 -m state --state NEW -p udp --dport 111 -j ACCEPT
-A INPUT -s 192.168.2.0/24 -m state --state NEW -p tcp --dport 111 -j ACCEPT
-A INPUT -s 192.168.2.0/24 -m state --state NEW -p tcp --dport 2049 -j ACCEPT
-A INPUT -s 192.168.2.0/24 -m state --state NEW -p tcp --dport 32803 -j ACCEPT
-A INPUT -s 192.168.2.0/24 -m state --state NEW -p udp --dport 32769 -j ACCEPT
-A INPUT -s 192.168.2.0/24 -m state --state NEW -p tcp --dport 892 -j ACCEPT
-A INPUT -s 192.168.2.0/24 -m state --state NEW -p udp --dport 892 -j ACCEPT
-A INPUT -s 192.168.2.0/24 -m state --state NEW -p tcp --dport 875 -j ACCEPT
-A INPUT -s 192.168.2.0/24 -m state --state NEW -p udp --dport 875 -j ACCEPT
-A INPUT -s 192.168.2.0/24 -m state --state NEW -p tcp --dport 662 -j ACCEPT
-A INPUT -s 192.168.2.0/24 -m state --state NEW -p udp --dport 662 -j ACCEPT
-A INPUT -s 192.168.2.0/24 -m state --state NEW -p udp --dport 137 -j ACCEPT
-A INPUT -s 192.168.2.0/24 -m state --state NEW -p tcp --dport 137 -j ACCEPT
-A INPUT -s 192.168.2.0/24 -m state --state NEW -p udp --dport 138 -j ACCEPT
-A INPUT -s 192.168.2.0/24 -m state --state NEW -p tcp --dport 138 -j ACCEPT
-A INPUT -s 192.168.2.0/24 -m state --state NEW -p udp --dport 139 -j ACCEPT
-A INPUT -s 192.168.2.0/24 -m state --state NEW -p tcp --dport 139 -j ACCEPT
-A INPUT -s 192.168.2.0/24 -m state --state NEW -p udp --dport 445 -j ACCEPT
-A INPUT -s 192.168.2.0/24 -m state --state NEW -p tcp --dport 445 -j ACCEPT
That is the portion on my server, what do i need to do to the laptop?
 
Old 01-10-2013, 04:33 PM   #17
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Original Poster
Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
found the problem to not be iptables, but firewalld. This is something new starting with Fedora 17.

http://fedoraproject.org/wiki/FirewallD

This page had the info I needed to resolve my issue. Was able to identify the zone for the laptop, public as she is using wan0, duh, and add nfs as a service to that zone. Now it mounts and we have access to the files. It is not instant like I am accustom to, but it does sooner or later show the files and allows access to them.

The commands I used were as follows:

Code:
442  service iptables restart
  443  mount -t nfs -v -o vers=3 jackknife:/home/ray/NFS/ /home/kayla/NFS/
  444  umount /home/kayla/NFS 
  445  ifconfig
  446  exit
  447  umount /home/kayla/NFS 
  448  ifconfig
  449  exit
  450  vi /etc/firewalld/zones/
  451  d /etc/firewalld/
  452  d /etc/firewalld/zones/
  453  df -Th
  454  firewall-cmd --state
  455  firewall-cmd --state && ech "Running" || echo "Not Running"
  456  firewall-cmd --state && echo "Running" || echo "Not Running"
  457  firewall-cmd --get-services
  458  mount -t nfs -v -o vers=3 jackknife:/home/ray/NFS/ /home/kayla/NFS/
  459  firewall-cmd --list-all-zones
  460  ifconfig
  461  firewall-cmd --get-active-zones
  462  firewall-cmd --zone=public --add-service=nfs
  463  df -Th
  464  d /home/kayla/NFS/
This is all from root, but from user you need to issue the following command:

Code:
[kayla@localhost ~]$ ps -ea | grep -i firewalld
  648 ?        00:00:00 firewalld
When I ran that as root, it did not find anything. found that a bit odd, but that is what the -ea is on the ps.

hope this helps others who might run into the same issue.
 
Old 01-10-2013, 04:37 PM   #18
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Original Poster
Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
Code:
[root@localhost ~]# firewall-cmd --state
[root@localhost ~]# firewall-cmd --state && echo "Running" || echo "Not running"
Running
[root@localhost ~]# firewall-cmd --get-services
cluster-suite pop3s bacula-client smtp ipp radius bacula ftp mdns samba dhcpv6-client dns openvpn imaps samba-client http https ntp vnc-server telnet libvirt ssh ipsec ipp-client amanda-client tftp-client nfs tftp libvirt-tls
[root@localhost ~]# firewall-cmd --list-all-public
  interfaces: wlan0
  services: mdns dhcpv6-client ssh
  ports: 
  forward-ports: 
  icmp-blocks: 
[root@localhost~]# firewall-cmd --zone=public --add-service=nfs
[root@localhost ~]# firewall-cmd --zone=public --list-all
public
  interfaces: wlan0
  services: mdns dhcpv6-client nfs ssh
  ports: 
  forward-ports: 
  icmp-blocks:
That is a bit more details on what I did to resolve the issue.
 
  


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
NFS connection issues lleb Linux - Newbie 4 12-25-2012 11:04 PM
NFS Issues rbell54 Linux - Newbie 2 05-13-2009 07:41 PM
NFS issues alexb Linux - Server 0 09-10-2007 09:09 AM
NFS issues noir911 Linux - Software 3 09-12-2006 05:33 AM
nfs issues cwwilson721 Slackware 4 05-12-2006 02:29 AM


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