Install and Configure Fedora 8 to perform following functions:
Install the NFS packages using yum
Configure exports file:
nano /etc/exports
Add line:
/var/www/html/inst 192.168.88.2(rw,sync)
Edit your hosts.allow file
portmap: 192.168.88.3
lockd: 192.168.88.3
mountd: 192.168.88.3
rquotad: 192.168.88.3
statd: 192.168.88.3
Save and close.
Edit your hosts.deny file
portmap: ALL
lockd: ALL
mountd: ALL
rquotad: ALL
statd: ALL
Add the following line to /etc/sysconfig/iptables:
-A RH-Firewall-1-INPUT -s 192.168.88.3 -j ACCEPT
Restart
#service iptables restart
Enable nfs services
#chkconfig --level 35 nfs on
#exportfs -ra
#reboot
Create a mountpoint for the NFS share (as root):
#mkdir /media/admin
#chmod 777 /media/admin
Edit /etc/fstab:
192.168.88.2:/var/www/html/inst /media/admin nfs noauto,rw,user 0 0
Mount:
#mount -a
Check running services on the server:
#rpcinfo -p 192.168.88.2
Mount the share type:
#mount /media/admin
Edit /etc/rsyslog.conf file to redirect logs to the file other than messages:
# nano /etc/rsyslog.conf
Append following line:
kern.warning /var/log/iptables.log
Add the following line at the end of the fules if you use default log file "messages":
-A RH-Firewall-1-INPUT -j LOG --log-prefix "FW:" --log-level warning
Then to search for firewall events:
cat /var/log/messages | grep FW:
We have 9 guests and no members online