Installing and Configuring a Network with Services

Installing and Configuring a Network with Services

banner02

By: Chantell McIntosh

Table of Contents

  • Focus: Networking between different OS ……  3
    • Pre-Set up of Virtual Box Machines………………………………….3
  • IP Addresses…………………………………….….……4
  • Fedora Router Setup……………………………………5
    • Start-up and Installation Process………………………..5
    • Setup Process……………………………………………5
    • DHCP Server Setup…………………………………….6
    • Apache Server Setup…………………………..…..…..6
    • Open SSH Server Setup…………………………………7
    • Network IP Setup……………………………………….7
  • Windows Server Setup …..…………………………..8
    • Start-up and Installation Process….…………………..…8
    • Setup Process….…………………………..……………..8
    • Set up the Network Card for intent 1…………………….8
    • DNS Server Setup………………………………………9
    • IIS Setup………………………………………………….10
    • Mozilla Firefox Setup…………………………………11
    • Thunderbird E-Mail Setup……………………………….11
    • FileZilla FTP……………………………………………11
    • MySQL Database Server Setup…………………………12
    • Hmail Server Setup……………………………………13
  • Windows Host/Client Setup …..………………….14
    • Start-up and Installation Process….……………………14
    • Setup Process….…………………………..……………14
    • Set up the Network Card for intent 2……………………14
    • Mozilla Firefox Setup………………………………….15
    • Thunderbird E-Mail Setup………………………………15
    • Incredmail Setup………………………………………….16
    • MySQL WorkBench Client……………………………….16
    • SSH Secure Shell Client…………………………….….17
    • Verifying Services………………………………………17
  • Clone Host/Client Setup …..……………………..18
    • Verifying on Host/client 2  …………………………………18

Focus: Networking between different OS

You will be setting up a router a server and two host machines. Expand your knowledge on different machines, how they interact and there services.  
Services to Install and Apply:

Windows Server Install

  1. DNS Services
  2. FTP Services
  3. IIS Services
  4. MySQL Server
  5. SMTP/POP3/IMAP Mail
  6. Firefox/thunderbird email install

Linux Install

  1. IP Forwarding
  2. FTP Services
  3. Apache Web Services
  4. Firewall/Routing application
  5. SSH Services
  6. DHCP Servicea

Client Services Install

– DHCP Pool IP assignment

– Mail, HTTP, FTP, SSH and database clients


Pre-Set up of Virtual Box Machines

Here is a link to download to install Virtual Box: http://www.virtualbox.org/wiki/Linux_Downloads
 After the Virtual Box is installed properly, set up your virtual machines by getting an ISO image or a live CD. (Any installation CD/DVD or Live CD will do.)
Choose Fedora for your router and Windows Server for your Server. Choose and Windows base for your host/client machines. (Fedora 12/13/14, Windows Server/XP/7)
Set up both the clients and servers machines. Name them accordingly, so you will not get them mixed up. [Fedora Router, Windows Server, Windows Host]
Before starting up the Server and Client machines, make sure you set the make sure you set the networks adapters to “Internal Network”. (Since there will be three different subnets please name the network adapters accordingly. ‘Ex. intent 1, 2, 3 or intent A, B, C’)

 

 

 

IP Addresses

[145.165.0.0 255.255.255.254.0]

[192.168.0.0 255.255.255.0]

[18.0.0.0 255.255.248.0]

Fedora Router Setup

Start-up and Installation process:

Install using an image or CD/DVD install in the storage, storage tree the way you did in previous semesters. Make sure you assign enough base memory, and create a dynamic virtual disk to hold the operating system with enough space. 10GB should be fine.
Remember to boot from the source you are using (ISO, CD/DVD) and press “Start”. Leave options default like previous installation labs. Name your machine uniquely your Seneca learn id, and remember or write down the password that you assign the machine. Use entire space, and change time zone to fit your current time.
In case you do not remember how to install Fedora go to this link:
http://www.wikihow.com/Install-Fedora
Note: Update Fedora and client machines, so you can avoid minor errors. (yum -y update and Windows Update)

Setup Process:

Once you have and installed and updated your machine we will set up the Internal network adaptors.

Note: machine must be turned off to set up the machines network.

Fedora Router in the beginning should have three Intent (intent 1, 2 and 3) adaptors and one NAT to connect to the internet for any updates or installing of services.

Once you have set them up start the machine again. By default it will have the internet up. Install all the necessary services. Some services are already installed.

Services:

– DHCP

–  Apache (Port: 8880)

– SSH (Port: 2131)


DHCP Server Setup:

For DHCP to run as a service we would have to disable a few features. It is recommended to put this into a start-up script with the network configuration above, because Virtual box machines do not keep its configuration.

  • SELinux (Security-Enhanced Linux): setenforce 0
  • Disable Fedora’s firewall: iptables -F
  • Enable IP forwarding so packets can pass through the machine and get to others connected: echo 1 > /proc/sys/net/ipv4/ip_forward

 

  1. Install DHCP server: yum –y install dhcp
  2. Edit the configuration file /etc/dhcp/dhcpd.conf add:
  • IP range
  • DNS IP
  • Domain Name
  • Routers Default IP
  • Lease time
  • Max lease time
  • Broadcast Address
  1. Start the Apache service: service httpd start
  2. Run httpd on your runlevel 5: chkconfig –level 5 httpd on
  3. Create a default webpage index.html for clients to view in the directory /var/www/html/

Note: Go to /usr/share/doc/dhcp*/dhcpd.conf.sample for a sample configuration file. Remember to follow the syntax or the service will not start. More on DHCP go to man 5 dhcpd.conf.

Apache Web Server Setup:

  • Install Apache Web server: yum –y install httpd
  •  Change the default port by editing the configuration file /etc/httpd/httpd.conf change the listening port to 8880.
  •  Run httpd on runlevel 5: chkconfig –level 5 httpd on
  •  Start the Apache service: service httpd start
  •  Create a default webpage index.html for clients to view in the directory /var/www/html/

Note: to check if your server is up go to localhost: 8880 in your internet browser.   Open SSH Server Setup:

1.      Install SSH server: yum –y install openssh-server
2.      Edit the configuration file /etc/ssh/sshd_config and change the port to 2131
3.      Run SSH server on runlevel 5: chkconfig –level 5 sshd on
4.      Start the SSH server service: service sshd start

Network IP Setup:

After everything is installed set up the network configuration, we will have the network configured. We will give the server three interfaces with IP’s to connect to the other machines. Try to make the Linux server’s last octet 1 so you will not get confused while pinging. These networks will match up with intent 1, 2 or 3. To drop the interface that has the internet (NAT) so it will not interrupt with your other machines: ifconfig ethY down.

It is recommended to put these following commands into a start-up script.

  • ifconfig eth0 18.0.X.X netmask 255.255.248.0 (Connect to WINSER)
  • ifconfig eth1 145.165.X.X netmask 255.255.254.0 (Connect to WIN Host)
  • ifconfig eth2 192.165.X.X netmask 255.255.255.0 (Connect to Second WIN Host)

Windows Server Setup

Start-up and Installation process:

Install using an image or CD/DVD install in the storage, storage tree the way you did in previous semesters. Make sure you assign enough base memory, and create a dynamic virtual disk to hold the operating system with enough space. 20GB should be fine.

Remember to boot from the source you are using (ISO, CD/DVD) and press “Start”. Leave options default like previous installation labs. Name your machine uniquely your Seneca learn id, and remember or write down the password that you assign the machine. Use entire space, and change time zone to fit your current time.

In case you do not remember how to install Windows Server go to this link:

http://www.petri.co.il/install_windows_2003.htm

Setup Process:

Always make sure you are in ADMINISTRATOR Account. Once you have and installed and updated your machine we will set up the internal network adaptors. Firewall must be disabled, and have the all assigned ports enabled.

Note: machine must be turned off to set up the machines network.

Windows Server should have one intnet (intent 1) adaptor and one NAT to connect to the internet for any updates or installing of services.

Once you have set them up start the machine again. By default it will have the internet up. Install all the necessary services. Once everything is installed make sure to disable the NAT interface name them accordingly to keep track of them.

S

et up the Network Card for intent 1:

Leave this statically assigned.

  • IP Address and subnet mask: 18.0.X.2 255.255.248.0
  • Default Gateway (router): 18.0.X.1
  • Preferred DNS IP address: 18.0.X.2

Services/Applications:

–  DNS

– IIS (Port: 9990)

–  Mozilla Firefox and Thunderbird E-mail

–  FTP Server (Filezilla Port: 2121)

– MySQL Database Server

– SMTP/IMAP/Pop3 (Hmail Server)

DNS Server Setup:

  1. Go to Add/Remove Programs in Control Panel
  2. Go to Add/Remove Windows Components
  3. In the Components list, click Network Services and then click Details
  4. Select Domain Name System (DNS)
  5. Press OK and Next

Note: When you are prompted for a CD, go to Devices on the top of the window and select CD/DVD devices and then selet the Windows Server ISO or CD/DVD.

Now manage and configure the Server. We must create Host records and mail server records so we can forward packets and send the right resources to the right machines.

  1. Go to Administrative Tools and then select DNS
  2. Expand your server domain name
  3. Go to Forward Lookup Zones
  4. Select your domain, then right click “New Host (A)
  5. Enter the Router’s name and its IP address
  6. Done
  7. Enter the DNS’s name and its IP address
  8. Done
  9. Right click “New Mail Exchanger(MX)
  10. Enter mail and browse for the DNS Host record, then press OK
  11. OK and Restart the DNS Server. (Domain Name -> All Tasks -> Restart)

 

 

 

 

 

 

IIS Setup:

  1. Go to Add/Remove Programs in Control Panel
  2. Go to Add/Remove Windows Components
  3. In the Components list, click Application Server and then click Details
  4. Select Internet Information Services (IIS)
  5. Press OK and Next

Note: When are prompted for a CD, go to Devices on the top of the window and select CD/DVD devices and then selet the Windows Server ISO or CD/DVD.

Now manage and configure this service. We must create Default webpage that the client can go to and also to test if the IIS is running. We also need to change the port to 9990. Make sure it is the default webpage. (Index.html properties -> document tab -> Move index.html up)

  1. Go to C:\Inetpub\wwwroot and create and edit an index page called index.html.
  2. Go to Administrative Tools and click Internet Information Services (IIS) manager
  3. Expand your domain name and expand Web Sites
  4. Right click on Default Web Sites and select Properties
  5. In the Description enter the index page full name
  6. In the TCP Port box enter 9990 for port number
  7. Select OK
  8. In Internet explorer enter http://localhost:9990/index.html to test if it’s up and running.

 

 

Mozilla Firefox & Thunderbird E-mail Setup:

You might want to set your internet security options to be on Trusted Zones.

Mozilla Firefox

  1. Go to http://www.mozilla.com/en-US/firefox/new/
  2. Download and install the latest version, Do not import anything from Internet Explorer
  3. Leave everything default or recommended settings.

 

Thunderbird E-mail

  1. Go to http://www.mozillamessaging.com/en-GB/thunderbird/
  2. Download and install the latest version
  3. Leave everything with default or recommended settings

 

FileZilla Server Setup:

  1. Go to http://filezilla-project.org/ and download FileZilla Server
  2. Server Download page and select the Windows link
  3. If this does not work try a standard mirror direct link
  4. Leave the rest of the settings default

Configure FileZilla:

  1. Leave the Server address
  2. Change port to 2121
  3. Enter Administration password and write it down
  4. Always connect to this server and then OK
  5. Add a user and give them a password

MySQL Database Server Setup:

  1. Go to http://dev.mysql.com/downloads/mysql/
  2. Click “No thanks, just take me to the downloads!”
  3. Download and install the MSI version
  4. Pick any mirror (Use a Canadian mirror if in Canada)
  5. Run as Complete install
  6.   Finish

Configure MySQL database:

  1. Select Standard Configuration
  2. Include bin if you need to do any configurations from the command prompt
  3. Enter your root password
  4. Allow root remote access
  5. Allow anonymous Account
  6. Execute the configuration

You will need to create a database called NDD and create a table that any user can access but only read and not modify. Go to MySQL and open command prompt enter the root password and do the following:

  1. Create a database named NDD
  2. Use the database: use NDD;
  3. Create a table named assign with the right properties
  4. Create  a user: username@’localhost’ identified by ‘password’;
  5. Restart the permissions: flush privileges;
5.      Read only permissions: GRANT SELECT ON database.* TO username@'localhost' IDENTIFIED BY 'password';

 

Hmail Server Setup:

  1. Go to http://www.hmailserver.com/?page=download
  2. Download and install Production Latest release hMailServer 5.3.3
  3. Use default settings and make sure .NET Framework 2.0 is installed.
  4. Enter Administrative password
  5. Run the Hmail server

Now we have to configure the Hmail Server. Add a mail server domain name that corresponds with the DNS name we made earlier. We want to set up four accounts, make sure SMTP, IMAP and POP3 are enabled. We have to set up the ports (110, 25 and 143) to be allowed by the firewall.

  1. Add your Domain Name
  2. Add four mail accounts and there password
  3. Enable IMAP, POP3 and SMTP protocol
  4. For SMTP Relayer enter the name in the DNS record
  5. Enable logging of all the protocols (keep files open for troubleshooting)
  6. For Auto-Ban change Max invalid logon attempts to 20
  7. In IP Ranges options add IP ranges for all your subnets (get this from your DHCP configuration)

Check your configuration by going to the Diagnostics and entering your mail domain name. If all is green that you are ready to start emailing.

 

 

 

 

 

Windows Host/Client Setup

Start-up and Installation process:

Install using an image or CD/DVD install in the storage, storage tree the way you did in previous semesters. Make sure you assign enough base memory, and create a dynamic virtual disk to hold the operating system with enough space. 20GB should be fine.

Remember to boot from the source you are using (ISO, CD/DVD) and press “Start”. Leave options default like previous installation labs. Name your machine uniquely your Seneca learn id, and remember or write down the password that you assign the machine. Use entire space, and change time zone to fit your current time.

In case you do not remember how to install Windows XP/7 go to this link:

http://www.buildeasypc.com/sw/windows_xp.htm

Setup Process:

Once you have and installed and updated your machine we will set up the internal network adaptors. Firewall must be disabled, and have the all assigned ports enabled.

Note: machine must be turned off to set up the machines network.

Windows XP should have one intnet (intent 2) adaptor and one NAT to connect to the internet for any updates or installing of services.

Once you have set them up start the machine again. By default it will have the internet up. Install all the necessary services. Once everything is installed make sure to disable the NAT interface name them accordingly to keep track of them.

Network Card Configuration intent 2:

For this network card configuration we will leave the DHCP to assign the IP in its range.

 

Services:

–  Mozilla Firefox and Thunderbird E-mail

–  IncredMail

–  MySQL Client

–  SSH Client

Mozilla Firefox & Thunderbird E-mail Setup:

You might want to set your internet security options to be on Trusted Zones.

Mozilla Firefox

  1. Go to http://www.mozilla.com/en-US/firefox/new/
  2. Download and install the latest version, Do not import anything from Internet Explorer
  3. Leave everything default or recommended settings.

 

Thunderbird E-mail

  1. Go to http://www.mozillamessaging.com/en-GB/thunderbird/
  2. Download and install the latest version
  3. Leave everything with default or recommended settings
  4. Standard Install

Configure E-mail for Thunderbird:

  1. Go into Tools
  2. Select Account Settings
  3. Click Account Actions and click Add Mail Account
  4. Enter full email account name for name
  5. Enter full email account name for email
  6. Enter the password
  7. Configure account for POP3 by changing the port to 110
  8. Enable the firewall for all three Protocols. 

 

Incredmail Setup:

  1. Go to http://www.incredimail.com/english/download/
  2. Download and install the full setup version

Configure E-mail for Incredmail:

  1. Go to Tools
  2. Go to Email Accounts
  3. Click Other
  4. Enter the full email name
  5. Enter your password
  6. Pick IMAP
  7. Enter the SMTP Relayer mail server name
  8. Enter your full email name
  9. Enter your password

Send email to the POP3 account and vice versa.

MySQL WorkBench Client:

  1. Go to http://dev.mysql.com/downloads/workbench/5.2.html
  2. Click “No thanks, just take me to the downloads!”
  3. Download and install the right version for your  windows XP/7 machine
  4. Pick a North American Mirror
  5. Complete install
  6. Make sure .NET Framework 4.0 is installed

 

Configure MySQL WorkBench Client:

  1. Click New Connection
  2. Enter Connect name (leave Method)
  3. Change hostname of the Server’s IP or its IP address
  4. Enter port into Firewall (3306)
  5. Change the username to the one you created in MySQL Database server
  6. Enter the password you created
  7. Test the connection
  8. Then OK
  9. SSH Secure Client Shell:
  10. Go to http://www.colorado.edu/its/docs/authenticate/printouts/win_ssh.html
  11. Click the link below SSH Download
  12. Press Quick Connection
  13. Enter the hostname or username on router
  14. Enter the router FQDN or IP
  15. Enter the Port 2131
  16. Connect

Verifying DHCP:

Make sure the NAT interface is disabled. Make sure your IP is within the scope you assigned on the router’s DHCP configuration.

  1. Go to Command Prompt
  2. Type: ipconfig /all

Verifying DNS:

Ping by FQDN: ping router1.domain10.com

 

Verifying FTP:

  • Go to Firefox or Internet Explorer
  • Type: ftp://18.0.X.2:2121
  • Enter the username you have and the password.

 

Verifying IIS:

 

Verifying Apache:

 

Clone Window Host/Client:

  1. Make sure the source virtual machine is off
  2. Release the Hard Disk from Host machine (Remember to put it back)
  3. Go to the file location of where the images are (On the machine that holds virtual box): C:\Documents and Settings\Name\.VirtualBox\Hard Disks or VDI
  4. Type in this command: VBoxManage clonevdi vdinamehere1.vdi Newvdinamehere2.vdi
 
This is what you should get:
VirtualBox Command Line Management Interface
Version 2.0.4 (C) 2005-2008 Sun Microsystems, Inc.  All rights
reserved.

0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

 

  1. Create a new virtual machine and with the same properties as the other machine until you get to the Hard Disk option. Now add the new virtual hard disk that you cloned.
  2. Change the Internal Network to intent 3, do not add NAT.
  3. Start the new cloned virtual machine
  4. Create two more different E-mail Accounts

Verifying on Host/Client 2:

Check the following:

  • DHCP(see if you get a different IP in then the 1st host/client machine.)
  • DNS (Ping a FQDN machine)
  • FTP
  • Apache
  • IIS
  • SSH
  • MySQL Database
  • Send E-mails to the First Host

 

 

Finished!

Let me know how you feel, my friend :)

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s