Re: Mounting nfs file systems - iptables stop

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hiya,

You would need to allow traffic between the to boxes on ports 111 (tcp
and udp) and 2049 (tcp and udp).

You would use something like the following.
On the nfs source server:
iptables -A INPUT -p tcp --source [ip address of host mounting resource]
--dport 111 -j ACCEPT
iptables -A INPUT -p udp --source [ip address of host mounting resource]
--dport 111 -j ACCEPT
iptables -A INPUT -p tcp --source [ip address of host mounting resource]
--dport 2049 -j ACCEPT
iptables -A INPUT -p udp --source [ip address of host mounting resource]
--dport 2049 -j ACCEPT

then you would need to dump the rules to the script file that gets
loaded at boot time...
iptables-save > /etc/sysconfig/iptables

You may want to actually check what rules currently exist and what the
default policy of the INPUT chain is.
You may have to insert the rules at a specified position rather then
just appending to the chain.
i.e. iptables -I INPUT 8 ... to insert a rule at position 8.

Try that and see if it helps.

regards
-art


>>> andy.allen@xxxxxxxxxx 13/01/07 11:05 AM >>>
Managed to mount nfs file system on RedHat9 by using command
'/etc/init.d/iptables stop' on both machines. It seems a bit tedious to
have to do this every time - is there a way of doing it at boot-up
without having to 'stop' iptables on the command line? 

Andy 

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux