Linux Practice Lab Setup

Install and Configure Fedora 8 to perform following functions:

  • DNS Server
  • DHCP Server
  • NFS Server
  • HTTP server

NFS Configuration

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

Configure Firewall

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

Client Configurations (On the client only)

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

Enable firewall logging on the server

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:

 

 

Moving your apps to Amazon or Miscrosoft Clouds?

We can help you analyze your existing infrastructure, identify the cost savings we can achieve by migrating to a cloud provider. We can then execute end-to-end migration plan of your infrastructure and bringing down your TCO.

Cloud Computing

Ready for IPv6 Migration?

The Internet is running out of the equivalent of phone numbers - familiar problem, non-trivial solution.

The world has to move to IPv6, with its 128-bit addresses. But that's easier said than done.

IPv6 Migration

Are you fluent in "Linux"?

Learn Linux from a leading expert and quickly master you Linux skills.

Learn how to simplify your workflow and increase your productivity using tips and techniques of the pros.

Ideal training for Corporate IT Beginners and Advanced IT Admins alike.

Corporate Linux Training

Who's Online

We have 9 guests and no members online