<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ihitc.net/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Riptide+wave</id>
	<title>ITCwiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ihitc.net/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Riptide+wave"/>
	<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/w/Special:Contributions/Riptide_wave"/>
	<updated>2026-04-09T03:39:18Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.38.5</generator>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_11&amp;diff=6460</id>
		<title>Franske ITC-2480 Lab 11</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_11&amp;diff=6460"/>
		<updated>2014-04-01T23:34:43Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: /* Mounting Partitions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account&lt;br /&gt;
&lt;br /&gt;
== Exploring /proc ==&lt;br /&gt;
# To start this lab, go to /proc in putty. /proc is a very special folder is its a virtual filesystem. Its sometimes referred to as a process information pseudo-file system. The reason is that all of the files in /proc are not real files, but runtime and system information.&lt;br /&gt;
# For example, now that you are in /proc, run cat cpuinfo. Notice how the output tells your information about the CPU that is running the Virtual Machine. /proc is used not only to get hardware and runtime information, but it can also be used to tweak kernel settings. Look back on Lab 10 and notice how we echoed a number to a file in /proc to enable packet forwarding.&lt;br /&gt;
# There are a few files in /proc you should get to know:&lt;br /&gt;
#* &#039;&#039;&#039;/proc/cpuinfo&#039;&#039;&#039; = Shows you the CPU info for your machine.&lt;br /&gt;
#* &#039;&#039;&#039;/proc/modules&#039;&#039;&#039; = Shows you the currently enabled kernel modules that are active on your kernel.&lt;br /&gt;
#* &#039;&#039;&#039;/proc/cmdline&#039;&#039;&#039; = Shows you the boot arguements used to boot your kernel.&lt;br /&gt;
#* &#039;&#039;&#039;/proc/version&#039;&#039;&#039; = Shows you your kernel version.&lt;br /&gt;
# It is important to note that some of these files have commands tied to them, for example.&lt;br /&gt;
#* &#039;&#039;&#039;/proc/modules&#039;&#039;&#039; = lsmod&lt;br /&gt;
#* &#039;&#039;&#039;/proc/mounts&#039;&#039;&#039; = mount&lt;br /&gt;
#* &#039;&#039;&#039;/proc/version&#039;&#039;&#039; = uname -a&lt;br /&gt;
# Normally it is best to use the command version to lookup the information as it is normally formatted to be easier to read and understand.&lt;br /&gt;
# Explore around with these commands and find the differences between the command line and file output versions.&lt;br /&gt;
== Exploring /dev ==&lt;br /&gt;
# now change directories to /dev and list the files. Notice that there are ALOT, but don&#039;t worry there is organization in the mess. Each file, like in /proc, is actually a device or interface on the machine. Here is a list of the most common interfaces you will see:&lt;br /&gt;
#* &#039;&#039;&#039;/dev/sd*&#039;&#039;&#039; = SATA Hard Drives&lt;br /&gt;
#* &#039;&#039;&#039;/dev/hd*&#039;&#039;&#039; = IDE Hard Drives&lt;br /&gt;
#* &#039;&#039;&#039;/dev/vd*&#039;&#039;&#039; = VirtIO (Virtualized) Hard Drives&lt;br /&gt;
#* &#039;&#039;&#039;/dev/ttyS*&#039;&#039;&#039; = Serial Interfaces on your PC.&lt;br /&gt;
#* &#039;&#039;&#039;/dev/tty*&#039;&#039;&#039; = Virtual Consoles, similar to the one you are using to enter commands. Mostly used by background programs or services.&lt;br /&gt;
# There are also some commands you should learn that will help you with detecting, and looking up devices:&lt;br /&gt;
#* &#039;&#039;&#039;lsusb&#039;&#039;&#039; = List USB Devices (Bus, Device, ID, and advertised vendor)&lt;br /&gt;
#* &#039;&#039;&#039;lspci&#039;&#039;&#039; = List PCI Devices (Bus, Type, Advertised Name, Revision)&lt;br /&gt;
#* &#039;&#039;&#039;dmesg&#039;&#039;&#039; = Display or Driver Message. This shows kernel messages that are normally linked to adding, or removing devices.&lt;br /&gt;
== Adding a 2nd disk ==&lt;br /&gt;
# If you noticed when exploring /dev, our VM setup uses sd devices for our hard drives. If you remember from the reading, the * in the name is a letter standing for which device is on the first sata interface, and the number after that, ex 0, marks the first partition. So for the first partition on the first disk, the drive would be /dev/sda0&lt;br /&gt;
# Now if you noticed there is a sdb that has no partitions. We are going to format this drive into 2 partitions, and then later setup automatic mounting.&lt;br /&gt;
# To start, run cfdisk /dev/sdb as root. &#039;&#039;cfdisk&#039;&#039; is a graphical version of &#039;&#039;fdisk&#039;&#039;, which is a tool used to setup disk partitioning. Note that &#039;&#039;fdisk&#039;&#039; only sets up the MBR, and does not actually format the drive. Also notice how we tell &#039;&#039;cfdisk&#039;&#039; what drive we want to format by appending the drive file to the end of the command.&lt;br /&gt;
# Once in &#039;&#039;cfdisk&#039;&#039;, Press the New option. Now select Primary as we are making a Primary partition, then for the size set it to 15GB (15306MB) and select Beginning. &lt;br /&gt;
# Now, use the arrow keys to go down to the Free Space, and press enter to Select New. Again, set it to Primary, and leave the size that it shows. Then press Enter.&lt;br /&gt;
# Press enter to mark the first partition bootable.&lt;br /&gt;
# At this point we should have two partitions, one named sdb1 with a size of 15305~ that is set as bootable, and sdb2 which takes up the rest of the drive. At this point, use the arrow keys to select Write, and press enter. You will be warned that this will write the table to the disk. enter yes, and press enter to confirm.&lt;br /&gt;
# If on the bottom you see &amp;quot;wrote partition table to disk&amp;quot;, then you have successfully wrote the MBR to the drive. Now you can navigate to quit to exit the program.&lt;br /&gt;
# Now run &#039;&#039;ls -l /dev | grep sdb&#039;&#039;. Notice how the two partitions, sdb1 and sdb2 show up.&lt;br /&gt;
# Now we are going to format our two partitions. The first one we will format to ext4, and the second partition will be formatted to btrfs. For more information on the differences and similarities between btrfs and ext4, refer to your book or google.&lt;br /&gt;
# To create the ext4 partition, we will use the &#039;&#039;mkfs.ext4&#039;&#039; command. So as root, run the command &#039;&#039;mkfs.ext4 /dev/sdb1&#039;&#039;. This will partition the drive to ext4 with no label. If you would like to label the partition, look into the options of &#039;&#039;mkfs.ext4&#039;&#039; using &#039;&#039;man mkfs.ext4&#039;&#039;.&lt;br /&gt;
# Now, before we format the other partition to btrfs we need to install some tools. As root, use your favorite package manager to download the btrfs-tools package.&lt;br /&gt;
* Note if you have issues with installing packages, check your firewall rules you created in the last lab.&lt;br /&gt;
# Now we will format the btrfs partition. To do this, we will run &#039;&#039;mkfs.btrfs /dev/sdb2&#039;&#039; as root. Just like before, we need to tell the &#039;&#039;mkfs.btrfs&#039;&#039; package what partition to format.&lt;br /&gt;
# Now that we are done, we are ready to move onto mounting the partitions.&lt;br /&gt;
== Mounting Partitions == &lt;br /&gt;
# There are two main ways to mount disks in linux. One is done manually, and the other is to setup mounting at boot.&lt;br /&gt;
# To start, we will learn how to manually mount a partition. change into the /mnt directory and then create a folder called part1. Now cd into the part1 folder and create a empty file called unmounted.&lt;br /&gt;
# Now, go back to the mnt directory. We are now going to use the mount command to mount the first partition we created to the part1 folder. To do this, we will run &#039;&#039;mount /dev/sdb1 /mnt/part1&#039;&#039; as root. Now, go back into the part1 folder and list files. Notice how the file you made called unmounted no longer exists. This is because the folder is being used as the mount point for the partition. Now change back to the /mnt folder.&lt;br /&gt;
# To unmount the partition, run the command &#039;&#039;umount /mnt/part1&#039;&#039;. Now list the contents of the folder part1 again. Notice how the unmounted file is now back. This is because when a drive is mounted to the file, it overlays on top of any files in the folder, but it does not delete or touch the files.&lt;br /&gt;
# Now we are going to make a folder called btrfs in /mnt. Once created, using the file editor of your choice, open up the file /etc/fstab.&lt;br /&gt;
# The fstab file is used to tell a linux system what drives and partitions is should mount as boot, as well as mount options and where to mount the partitions. On the bottom of the file, add the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;/dev/sdb1       /mnt/part1      ext4    defaults        0       0&lt;br /&gt;
/dev/sdb2       /mnt/btrfs      btrfs   defaults        0       0&amp;lt;/pre&amp;gt; &lt;br /&gt;
# Adding these lines will tell the fstab file to mount both partitions at boot to the folders we created. To mount the partitions without rebooting or using the full mount command syntax, we can just run mount -a which will load and mount all partitions in the fstab file.&lt;br /&gt;
&lt;br /&gt;
== Disk and File Usage ==&lt;br /&gt;
# At this point we can now use the &#039;&#039;df&#039;&#039; command to verify that our new partitions are properly mounted. When you run &#039;&#039;df&#039;&#039;, you should see something similar to this at the bottom of the output:&lt;br /&gt;
&amp;lt;pre&amp;gt;/dev/sdb1                 14712416  167576  13797488   2% /mnt/part1&lt;br /&gt;
/dev/sdb2                 26995912     120  24870016   1% /mnt/btrfs&amp;lt;/pre&amp;gt;&lt;br /&gt;
# This means that your two partitions are mounted properly to the folders we created earlier. &#039;&#039;df&#039;&#039; is a powerful command as not only will it show you what is mounted where, but it also shows you how much disk space is used, as well as how much space is left.&lt;br /&gt;
# Now, cd into /mnt/part1 so you are on the ext4 partition you created. Then as root, run the command &#039;&#039;cp -r /var/log ./&#039;&#039;&lt;br /&gt;
# Now cd into the log folder, and run &#039;&#039;du -h&#039;&#039;. &#039;&#039;du&#039;&#039; is a command that allows you to view file usage in a tree format. the -h flag tells &#039;&#039;du&#039;&#039; to output the usage in a &amp;quot;human readable&amp;quot; format, while the -a flag tells it to show you the results for all files, and not just folders.&lt;br /&gt;
# Mess around with using this across the file system. How much data is the /etc/ folder taking up on your linux system?&lt;br /&gt;
# This concludes the Chapter 11 Lab.&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_11&amp;diff=6459</id>
		<title>Franske ITC-2480 Lab 11</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_11&amp;diff=6459"/>
		<updated>2014-04-01T23:34:11Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account&lt;br /&gt;
&lt;br /&gt;
== Exploring /proc ==&lt;br /&gt;
# To start this lab, go to /proc in putty. /proc is a very special folder is its a virtual filesystem. Its sometimes referred to as a process information pseudo-file system. The reason is that all of the files in /proc are not real files, but runtime and system information.&lt;br /&gt;
# For example, now that you are in /proc, run cat cpuinfo. Notice how the output tells your information about the CPU that is running the Virtual Machine. /proc is used not only to get hardware and runtime information, but it can also be used to tweak kernel settings. Look back on Lab 10 and notice how we echoed a number to a file in /proc to enable packet forwarding.&lt;br /&gt;
# There are a few files in /proc you should get to know:&lt;br /&gt;
#* &#039;&#039;&#039;/proc/cpuinfo&#039;&#039;&#039; = Shows you the CPU info for your machine.&lt;br /&gt;
#* &#039;&#039;&#039;/proc/modules&#039;&#039;&#039; = Shows you the currently enabled kernel modules that are active on your kernel.&lt;br /&gt;
#* &#039;&#039;&#039;/proc/cmdline&#039;&#039;&#039; = Shows you the boot arguements used to boot your kernel.&lt;br /&gt;
#* &#039;&#039;&#039;/proc/version&#039;&#039;&#039; = Shows you your kernel version.&lt;br /&gt;
# It is important to note that some of these files have commands tied to them, for example.&lt;br /&gt;
#* &#039;&#039;&#039;/proc/modules&#039;&#039;&#039; = lsmod&lt;br /&gt;
#* &#039;&#039;&#039;/proc/mounts&#039;&#039;&#039; = mount&lt;br /&gt;
#* &#039;&#039;&#039;/proc/version&#039;&#039;&#039; = uname -a&lt;br /&gt;
# Normally it is best to use the command version to lookup the information as it is normally formatted to be easier to read and understand.&lt;br /&gt;
# Explore around with these commands and find the differences between the command line and file output versions.&lt;br /&gt;
== Exploring /dev ==&lt;br /&gt;
# now change directories to /dev and list the files. Notice that there are ALOT, but don&#039;t worry there is organization in the mess. Each file, like in /proc, is actually a device or interface on the machine. Here is a list of the most common interfaces you will see:&lt;br /&gt;
#* &#039;&#039;&#039;/dev/sd*&#039;&#039;&#039; = SATA Hard Drives&lt;br /&gt;
#* &#039;&#039;&#039;/dev/hd*&#039;&#039;&#039; = IDE Hard Drives&lt;br /&gt;
#* &#039;&#039;&#039;/dev/vd*&#039;&#039;&#039; = VirtIO (Virtualized) Hard Drives&lt;br /&gt;
#* &#039;&#039;&#039;/dev/ttyS*&#039;&#039;&#039; = Serial Interfaces on your PC.&lt;br /&gt;
#* &#039;&#039;&#039;/dev/tty*&#039;&#039;&#039; = Virtual Consoles, similar to the one you are using to enter commands. Mostly used by background programs or services.&lt;br /&gt;
# There are also some commands you should learn that will help you with detecting, and looking up devices:&lt;br /&gt;
#* &#039;&#039;&#039;lsusb&#039;&#039;&#039; = List USB Devices (Bus, Device, ID, and advertised vendor)&lt;br /&gt;
#* &#039;&#039;&#039;lspci&#039;&#039;&#039; = List PCI Devices (Bus, Type, Advertised Name, Revision)&lt;br /&gt;
#* &#039;&#039;&#039;dmesg&#039;&#039;&#039; = Display or Driver Message. This shows kernel messages that are normally linked to adding, or removing devices.&lt;br /&gt;
== Adding a 2nd disk ==&lt;br /&gt;
# If you noticed when exploring /dev, our VM setup uses sd devices for our hard drives. If you remember from the reading, the * in the name is a letter standing for which device is on the first sata interface, and the number after that, ex 0, marks the first partition. So for the first partition on the first disk, the drive would be /dev/sda0&lt;br /&gt;
# Now if you noticed there is a sdb that has no partitions. We are going to format this drive into 2 partitions, and then later setup automatic mounting.&lt;br /&gt;
# To start, run cfdisk /dev/sdb as root. &#039;&#039;cfdisk&#039;&#039; is a graphical version of &#039;&#039;fdisk&#039;&#039;, which is a tool used to setup disk partitioning. Note that &#039;&#039;fdisk&#039;&#039; only sets up the MBR, and does not actually format the drive. Also notice how we tell &#039;&#039;cfdisk&#039;&#039; what drive we want to format by appending the drive file to the end of the command.&lt;br /&gt;
# Once in &#039;&#039;cfdisk&#039;&#039;, Press the New option. Now select Primary as we are making a Primary partition, then for the size set it to 15GB (15306MB) and select Beginning. &lt;br /&gt;
# Now, use the arrow keys to go down to the Free Space, and press enter to Select New. Again, set it to Primary, and leave the size that it shows. Then press Enter.&lt;br /&gt;
# Press enter to mark the first partition bootable.&lt;br /&gt;
# At this point we should have two partitions, one named sdb1 with a size of 15305~ that is set as bootable, and sdb2 which takes up the rest of the drive. At this point, use the arrow keys to select Write, and press enter. You will be warned that this will write the table to the disk. enter yes, and press enter to confirm.&lt;br /&gt;
# If on the bottom you see &amp;quot;wrote partition table to disk&amp;quot;, then you have successfully wrote the MBR to the drive. Now you can navigate to quit to exit the program.&lt;br /&gt;
# Now run &#039;&#039;ls -l /dev | grep sdb&#039;&#039;. Notice how the two partitions, sdb1 and sdb2 show up.&lt;br /&gt;
# Now we are going to format our two partitions. The first one we will format to ext4, and the second partition will be formatted to btrfs. For more information on the differences and similarities between btrfs and ext4, refer to your book or google.&lt;br /&gt;
# To create the ext4 partition, we will use the &#039;&#039;mkfs.ext4&#039;&#039; command. So as root, run the command &#039;&#039;mkfs.ext4 /dev/sdb1&#039;&#039;. This will partition the drive to ext4 with no label. If you would like to label the partition, look into the options of &#039;&#039;mkfs.ext4&#039;&#039; using &#039;&#039;man mkfs.ext4&#039;&#039;.&lt;br /&gt;
# Now, before we format the other partition to btrfs we need to install some tools. As root, use your favorite package manager to download the btrfs-tools package.&lt;br /&gt;
* Note if you have issues with installing packages, check your firewall rules you created in the last lab.&lt;br /&gt;
# Now we will format the btrfs partition. To do this, we will run &#039;&#039;mkfs.btrfs /dev/sdb2&#039;&#039; as root. Just like before, we need to tell the &#039;&#039;mkfs.btrfs&#039;&#039; package what partition to format.&lt;br /&gt;
# Now that we are done, we are ready to move onto mounting the partitions.&lt;br /&gt;
== Mounting Partitions == &lt;br /&gt;
# There are two main ways to mount disks in linux. One is done manually, and the other is to setup mounting at boot.&lt;br /&gt;
# To start, we will learn how to manually mount a partition. change into the /mnt directory and then create a folder called part1. Now cd into the part1 folder and create a empty file called unmounted.&lt;br /&gt;
# Now, go back to the mnt directory. We are now going to use the mount command to mount the first partition we created to the part1 folder. To do this, we will run &#039;&#039;mount /dev/sdb1 /mnt/part1&#039;&#039; as root. Now, go back into the part1 folder and list files. Notice how the file you made called unmounted no longer exists. This is because the folder is being used as the mount point for the partition. Now change back to the /mnt folder.&lt;br /&gt;
# To unmount the partition, run the command &#039;&#039;umount /mnt/part1&#039;&#039;. Now list the contents of the folder part1 again. Notice how the unmounted file is now back. This is because when a drive is mounted to the file, it overlays on top of any files in the folder, but it does not delete or touch the files.&lt;br /&gt;
# Now we are going to make a folder called btrfs in /mnt. Once created, using the file editor of your choice, open up the file /etc/fstab.&lt;br /&gt;
# The fstab file is used to tell a linux system what drives and partitions is should mount as boot, as well as mount options and where to mount the partitions. On the bottom of the file, add the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;/dev/vdb1       /mnt/part1      ext4    defaults        0       0&lt;br /&gt;
/dev/sdb2       /mnt/btrfs      btrfs   defaults        0       0&amp;lt;/pre&amp;gt; &lt;br /&gt;
# Adding these lines will tell the fstab file to mount both partitions at boot to the folders we created. To mount the partitions without rebooting or using the full mount command syntax, we can just run mount -a which will load and mount all partitions in the fstab file.&lt;br /&gt;
== Disk and File Usage ==&lt;br /&gt;
# At this point we can now use the &#039;&#039;df&#039;&#039; command to verify that our new partitions are properly mounted. When you run &#039;&#039;df&#039;&#039;, you should see something similar to this at the bottom of the output:&lt;br /&gt;
&amp;lt;pre&amp;gt;/dev/sdb1                 14712416  167576  13797488   2% /mnt/part1&lt;br /&gt;
/dev/sdb2                 26995912     120  24870016   1% /mnt/btrfs&amp;lt;/pre&amp;gt;&lt;br /&gt;
# This means that your two partitions are mounted properly to the folders we created earlier. &#039;&#039;df&#039;&#039; is a powerful command as not only will it show you what is mounted where, but it also shows you how much disk space is used, as well as how much space is left.&lt;br /&gt;
# Now, cd into /mnt/part1 so you are on the ext4 partition you created. Then as root, run the command &#039;&#039;cp -r /var/log ./&#039;&#039;&lt;br /&gt;
# Now cd into the log folder, and run &#039;&#039;du -h&#039;&#039;. &#039;&#039;du&#039;&#039; is a command that allows you to view file usage in a tree format. the -h flag tells &#039;&#039;du&#039;&#039; to output the usage in a &amp;quot;human readable&amp;quot; format, while the -a flag tells it to show you the results for all files, and not just folders.&lt;br /&gt;
# Mess around with using this across the file system. How much data is the /etc/ folder taking up on your linux system?&lt;br /&gt;
# This concludes the Chapter 11 Lab.&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_11&amp;diff=6458</id>
		<title>Franske ITC-2480 Lab 11</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_11&amp;diff=6458"/>
		<updated>2014-04-01T15:17:45Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: Created page with &amp;quot;=Introduction= =Lab Procedure= == Prerequisites == # Open an SSH console to your Linux system using the PuTTY software, login with your standard user account  == Exploring /pr...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account&lt;br /&gt;
&lt;br /&gt;
== Exploring /proc ==&lt;br /&gt;
# To start this lab, go to /proc in putty. /proc is a very special folder is its a virtual filesystem. Its sometimes referred to as a process information pseudo-file system. The reason is that all of the files in /proc are not real files, but runtime and system information.&lt;br /&gt;
# For example, now that you are in /proc, run cat cpuinfo. Notice how the output tells your information about the CPU that is running the Virtual Machine. /proc is used not only to get hardware and runtime information, but it can also be used to tweak kernel settings. Look back on Lab 10 and notice how we echoed a number to a file in /proc to enable packet forwarding.&lt;br /&gt;
# There are a few files in /proc you should get to know:&lt;br /&gt;
#* &#039;&#039;&#039;/proc/cpuinfo&#039;&#039;&#039; = Shows you the CPU info for your machine.&lt;br /&gt;
#* &#039;&#039;&#039;/proc/modules&#039;&#039;&#039; = Shows you the currently enabled kernel modules that are active on your kernel.&lt;br /&gt;
#* &#039;&#039;&#039;/proc/cmdline&#039;&#039;&#039; = Shows you the boot arguements used to boot your kernel.&lt;br /&gt;
#* &#039;&#039;&#039;/proc/version&#039;&#039;&#039; = Shows you your kernel version.&lt;br /&gt;
# It is important to note that some of these files have commands tied to them, for example.&lt;br /&gt;
#* &#039;&#039;&#039;/proc/modules&#039;&#039;&#039; = lsmod&lt;br /&gt;
#* &#039;&#039;&#039;/proc/mounts&#039;&#039;&#039; = mount&lt;br /&gt;
#* &#039;&#039;&#039;/proc/version&#039;&#039;&#039; = uname -a&lt;br /&gt;
# Normally it is best to use the command version to lookup the information as it is normally formatted to be easier to read and understand.&lt;br /&gt;
# Explore around with these commands and find the differences between the command line and file output versions.&lt;br /&gt;
== Exploring /dev ==&lt;br /&gt;
# now change directories to /dev and list the files. Notice that there are ALOT, but don&#039;t worry there is organization in the mess. Each file, like in /proc, is actually a device or interface on the machine. Here is a list of the most common interfaces you will see:&lt;br /&gt;
#* &#039;&#039;&#039;/dev/sd*&#039;&#039;&#039; = SATA Hard Drives/Disk Drives&lt;br /&gt;
#* &#039;&#039;&#039;/dev/hd*&#039;&#039;&#039; = IDE Hard Drives/Disk Drives&lt;br /&gt;
#* &#039;&#039;&#039;/dev/ttyS*&#039;&#039;&#039; = Serial Interfaces on your PC.&lt;br /&gt;
#* &#039;&#039;&#039;/dev/tty*&#039;&#039;&#039; = Virtual Consoles, similar to the one you are using to enter commands. Mostly used by background programs or services.&lt;br /&gt;
# There are also some commands you should learn that will help you with detecting, and looking up devices:&lt;br /&gt;
#* &#039;&#039;&#039;lsusb&#039;&#039;&#039; = List USB Devices (Bus, Device, ID, and advertised vendor)&lt;br /&gt;
#* &#039;&#039;&#039;lspci&#039;&#039;&#039; = List PCI Devices (Bus, Type, Advertised Name, Revision)&lt;br /&gt;
#* &#039;&#039;&#039;dmesg&#039;&#039;&#039; = Display or Driver Message. This shows kernel messages that are normally linked to adding, or removing devices.&lt;br /&gt;
== Adding a 2nd disk ==&lt;br /&gt;
#&lt;br /&gt;
== Formatting &amp;amp; Mounting Partitions == &lt;br /&gt;
#&lt;br /&gt;
== Disk and File Usage ==&lt;br /&gt;
#&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Assignments&amp;diff=6457</id>
		<title>Franske ITC-2480 Assignments</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Assignments&amp;diff=6457"/>
		<updated>2014-04-01T15:16:28Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Labs=&lt;br /&gt;
You are responsible for completing ALL of these labs. You must submit a [[Franske Lab Report Format|lab report]] for each chapter (you may combine multiple labs from the chapter into a single report). If you work with a partner on a lab you only need to submit a single lab report for the two of you but it must have both your names on it. Each lab report is worth up to 20 points. This falls into the Labs/Homework category of your course grade.&lt;br /&gt;
&lt;br /&gt;
# [[Franske ITC-2480 Lab 1|Lab 1: Install Debian, check IP, remote access with ssh/sftp]]&lt;br /&gt;
# [[Franske ITC-2480 Lab 2|Lab 2: Install Links, install Apache, download, copy, move, remove files, tar file extraction, directories]]&lt;br /&gt;
# [[Franske ITC-2480 Lab 3|Lab 3: Install sudo, create new user, change ownership and permissions on files/dirs, view man pages, install webmin]]&lt;br /&gt;
# [[Franske ITC-2480 Lab 4|Lab 4: redirect/pipe output, create links, create compressed files, text editing]]&lt;br /&gt;
# [[Franske ITC-2480 Lab 5|Lab 5: Set static IP, install PHP/mySQL, experiment with websites and databases, view logfiles]] &lt;br /&gt;
# [[Franske ITC-2480 Lab 6|Lab 6: Install forum &amp;amp; blog software, experiment with PHP]]&lt;br /&gt;
# [[Franske ITC-2480 Lab 7|Lab 7: Install Samba, configure for basic workgroup filesharing]] &lt;br /&gt;
# [[Franske ITC-2480 Lab 8|Lab 8: Install Postfix MTA, courier-imap]]&lt;br /&gt;
# [[Franske ITC-2480 Lab 9|Lab 9: Install BIND and configure as caching plus zones for a local domain]] &lt;br /&gt;
# [[Franske ITC-2480 Lab 10|Lab 10: 2nd NIC internal network configuration]] &lt;br /&gt;
# [[Franske ITC-2480 Lab 11|Lab 11: Explore /proc /dev, Partition/format/mount 2nd HDD]] &lt;br /&gt;
# Lab 12: Use of nmap, netstat, MRTG/cacti, Nagios &lt;br /&gt;
# Lab 13: Write BASH scripts&lt;br /&gt;
&lt;br /&gt;
=Homework=&lt;br /&gt;
Any homework assigned in the course will go here. This falls into the Labs/Homework category of your course grade. Remember, for homework assignments turn in the actual pages from your lab book or printouts from the curriculum and not a lab report. Homework assignment are individual, you and your lab partner need to both turn them in separately even if you work on them together.&lt;br /&gt;
&lt;br /&gt;
=Participation Activities=&lt;br /&gt;
Any participation activities completed in the course will go here. This falls into the participation category of your course grade.&lt;br /&gt;
* Meet with the instructor once per week to discuss course progress and ask questions (up to 10 points each based on progress)&lt;br /&gt;
&lt;br /&gt;
=Unit Assessments=&lt;br /&gt;
You are responsible for completing an online unit assessment for each chapter. These fall into the online assessments category of your course grade.&lt;br /&gt;
&lt;br /&gt;
=Other=&lt;br /&gt;
You are also responsible for completing these things, see the course syllabus for category and weighting information.&lt;br /&gt;
* Online Final Exam&lt;br /&gt;
* Skills Final Exam&lt;br /&gt;
&lt;br /&gt;
=Skills Final Exam=&lt;br /&gt;
The Skills Final Exam is designed to test your ability to apply the concepts learned in this class and practiced in labs to common, real-world scenarios.&lt;br /&gt;
&lt;br /&gt;
[[Franske ITC-2480|Return to ITC-2480 Homepage]]&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_10&amp;diff=6456</id>
		<title>Franske ITC-2480 Lab 10</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_10&amp;diff=6456"/>
		<updated>2014-03-27T03:59:27Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: /* iptables from the command line */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account&lt;br /&gt;
# Have a browser window set to the webmin interface for your linux VM.&lt;br /&gt;
&lt;br /&gt;
== Setup a 2nd NIC Interface ==&lt;br /&gt;
# To start this lab we will need to create a second network interface called eth1. We will use eth1 as our LAN interface that will allow other computers to connect to the internet.&lt;br /&gt;
# In putty, open up /etc/network/interfaces with your favorite text editor, then go to the bottom of the file and add the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;auto eth1&lt;br /&gt;
iface eth1 inet static&lt;br /&gt;
	address 192.168.1.1&lt;br /&gt;
	netmask 255.255.255.0&amp;lt;/pre&amp;gt;&lt;br /&gt;
* As this is a LAN only interface, we do not need to define a gateway for the VM, as the VM is the gateway for this network.&lt;br /&gt;
# Once this is done, save the file and then run &amp;quot;ifup eth1&amp;quot;. This should bring up the new interface. You can check to see if its enabled by using ifconfig.&lt;br /&gt;
== Enable NAT ==&lt;br /&gt;
# Now we will need to enable NAT so we can forward traffic to our LAN interface. &lt;br /&gt;
# In your console, you will need to open up /etc/sysctl.conf with a text editor. This file is used to change and tweak multiple system variables. Scroll down until you find the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;# Uncomment the next line to enable packet forwarding for IPv4&lt;br /&gt;
#net.ipv4.ip_forward=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Uncomment the net.ipv4.ip_forward line. This will enable packet forwarding in the kernel. When you are done, save the file.&lt;br /&gt;
# Changes to the sysctl.conf file require a reboot, but most can be set without a reboot by echoing response codes to files in /proc. We will get into that more in a later chapter, but for now run the following command to enable ip_forwarding without rebooting the machine. &#039;&#039;echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&#039;&#039;&lt;br /&gt;
# Now we will need to use webmin to setup iptables to allow for NAT. In webmin, Go to Networking, then Linux Firewall. You will be taken to a page that will ask you to setup iptables for the first time. To start, select the option &amp;quot;Block all except SSH, IDENT, ping and high ports on interface eth0.&amp;quot; Also select the Enable firewall at boot time option, then press Setup Firewall.&lt;br /&gt;
# You will now be shown the firewall setup page. notice how webmin was nice enough to create a handful of default rules for you. We will get into creating custom rules later in this lab, but for now we need to enable NAT in iptables.&lt;br /&gt;
# On the top of the page where it says Showing IPtable:, change the dropdown option to Network address translation (nat).&lt;br /&gt;
# On this page, under the POSTROUTING category, press the Add Rule button. Use the following configuration to enable NAT:&lt;br /&gt;
&amp;lt;pre&amp;gt;Rule comment: Enable NAT for eth1&lt;br /&gt;
Action to take: Masquerade&lt;br /&gt;
Source ports for masquerading: any&lt;br /&gt;
IPs and ports to SNAT: Default&lt;br /&gt;
Source address or network: Equals: 192.168.1.1/24&lt;br /&gt;
Outgoing Interfce: Equals: eth0&amp;lt;/pre&amp;gt;&lt;br /&gt;
# When you are done, press Save at the bottom, and then on the firewall page press Apply Configuration. At this point you can use your linux VM as a router, but only with static IP addresses set on clients. So, next we will setup a DHCP server.&lt;br /&gt;
== Setup a DHCP Server ==&lt;br /&gt;
# To setup a DHCP server, we will first need to install the required software. In your SSH console use your favorite package manager to install isc-dhcp-server. &lt;br /&gt;
# After you install the package you may get a warning about isc-dhcp-server being unable to start. This is normal as we have yet to define the interface and settings we want used.&lt;br /&gt;
# Now back in Webmin, select the Refresh Modules option. After it is done, go to Servers, then DHCP Server.&lt;br /&gt;
# Before we define our DHCP range, we need to set our listening interface. Click on the Edit Network Interface option, and select eth1 and press save.&lt;br /&gt;
# Now under Subnets and Shared Networks, select Add a new subnet. Use the following settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Subnet description: LAN DHCP Range&lt;br /&gt;
Network Address: 192.168.1.0&lt;br /&gt;
Netmask: 255.255.255.0&lt;br /&gt;
Address Ranges: 192.168.1.100-192.168.1.254&amp;lt;/pre&amp;gt;&lt;br /&gt;
# When you are done, press Save. Now, click on the network you just created to review the settings, then press Edit Client Options at the bottom.&lt;br /&gt;
# From here we will setup the default gateway and DNS servers for the clients to use. Under Default Routers, set the option to 192.168.1.1 and under DNS servers, set it to 192.168.1.1 as well. Notice how we are setting these options to the IP of eth1 that we setup. This is because our linux VM will act as the router and DNS for our clients as well.&lt;br /&gt;
# When you are done, press save, and then on the Edit Subnet page, press save again.&lt;br /&gt;
# Now that you are back on the DHCP server page, press the Start Server button. If all goes good, the button should change to &amp;quot;Stop Server&amp;quot;. If this does not happen, then the server was unable start. If that happens, re-check your DHCP server configurations to make sure everything is correct.&lt;br /&gt;
== Setup a 2nd VM ==&lt;br /&gt;
# Now we are going to setup a 2nd VM on the VMWare server so we can have a client to connect to our network we just created. For this though, we will be using Ubuntu Desktop instead of Debian so we have a user interface to help us with testing.&lt;br /&gt;
# Once you have Ubuntu installed, reboot the machine and login. Notice how the machine is able to connect to the network. Now, press the Unity Icon in the top left corner, and enter &amp;quot;Terminal&amp;quot;. Then, open the terminal application.&lt;br /&gt;
# You now have a shell on the system. From here, use sudo ifconfig to check your network settings. Notice how you have a IP from the DHCP pool we created earlier. Now try pinging 172.17.50.10. Are you able to ping? If so, NAT is working properly on your network.&lt;br /&gt;
# Now run ping google.com. If you are able to ping, this shows that not only is NAT working, but DNS resolving as well.&lt;br /&gt;
# At this point we have a fully functional LAN environment.&lt;br /&gt;
== Port Forwarding and Firewalling ==&lt;br /&gt;
# Now we are going to enable port forwarding to our VM. This will allow you to access the 2nd VM from the IHITC network.&lt;br /&gt;
# So back in webmin, go to Networking, and then Linux Firewall. Now change the Showing IPTable option to Network Address Translation (nat). Now under PREROUTING, press Add Rule.&lt;br /&gt;
# For our rule we are going to forward port 2222 to port 22 on our Ubuntu VM. You will need to know the IP address of the Ubuntu Machine, but for this example it will be 192.168.1.100&lt;br /&gt;
# Use the following information to create the new rule:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Rule comment: Forward 2222 to SSH&lt;br /&gt;
Action to take: Destination NAT&lt;br /&gt;
IPs and ports for DNAT: IP range: 192.168.1.100: Port range: 22&lt;br /&gt;
Network protocol: Equals: TCP&lt;br /&gt;
Destination TCP or UDP Port: Equals: 2222&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Help: Use the following image for extra reference if required: [http://wiki.ihitc.net/mw/images/f/f3/Port_Forward.png Link]&lt;br /&gt;
# When you are done press save, and then Apply Configuration. Now on the Ubuntu VM, make sure openssh-server is installed. From a computer on the IHITC network, try to SSH to port 2222 on your original (Debian) VM. If everything was setup successfully, you will be able to sign into the Ubuntu Desktop VM through the Debian VM.&lt;br /&gt;
# Now that we have our network setup up, it is time to secure it with firewall rules. Go back into Webmin. Go to Networking, then Linux Firewall.&lt;br /&gt;
# When we first setup iptables we used some default rules, but we are going to secure it a bit by limiting access to only allow clients from the 172.17.0.0/16 networks.&lt;br /&gt;
# Under the Incoming packets (INPUT) category, on the top rule, press the upward arrow under the Add category. Use the following options in the ruleset:&lt;br /&gt;
&amp;lt;pre&amp;gt;Rule comment: Limit Access&lt;br /&gt;
Action to take: Drop&lt;br /&gt;
Source address or network: Does not equal: 172.17.0.0/16&lt;br /&gt;
Incoming interface: Equals: eth0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now press save, then press Apply Configuration. This ends the Firewall setup.&lt;br /&gt;
&lt;br /&gt;
== iptables from the command line ==&lt;br /&gt;
# Now that you know how to create rules with webmin, lets learn how to do it from the command line.&lt;br /&gt;
# If you want to view the current rulesets applied on a system, or you want to backup your current configuration, you would use the iptables-save command. Run it, and review the output. Notice how all of the rules we created in webmin show up.&lt;br /&gt;
# Now if you want to backup your rules, you would use iptables-save &amp;gt; rules.txt. This would dump the current configuration into a file called rules.txt.&lt;br /&gt;
# To reload the rules into iptables, you would use iptables-restore. With the file we created, we would load it back in by running iptables-restore rules.txt&lt;br /&gt;
# Lastly you can create and delete select roles from the command line using the iptables command directly. Use the man page to help you understand the arguments, and try to figure out how to remove the default firewall rule that Accepts packets if the destination port is between 1024 and 65535.&lt;br /&gt;
# At this point, we are now going to create some rules in webmin for the firewall. Back in webmin, go to Networking then Linux Firewall. Notice the default rules Webmin created for us earlier. Delete the following rules, but DO NOT press the apply button:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Drop	If protocol is TCP and destination port is 2049:2050&lt;br /&gt;
Drop	If protocol is TCP and destination port is 6000:6063		&lt;br /&gt;
Drop	If protocol is TCP and destination port is 7000:7010	&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now we need to open ports for our running services. First we will create a rule to allow webmin to continue running. Use the following configuration for the webmin rule:&lt;br /&gt;
&amp;lt;pre&amp;gt;Action to take: Accept&lt;br /&gt;
Network Protocol: Equals: TCP&lt;br /&gt;
Destination TCP or UDP port: Equals: 10000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now using the same format above, open ports for all running services. This includes SSH, DNS, SNMP, POP3, IMAP, and HTTP.&lt;br /&gt;
# When you are done creating the rules, press apply to have the rules enabled on your system.&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_10&amp;diff=6454</id>
		<title>Franske ITC-2480 Lab 10</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_10&amp;diff=6454"/>
		<updated>2014-03-25T23:07:12Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: /* iptables from the command line */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account&lt;br /&gt;
# Have a browser window set to the webmin interface for your linux VM.&lt;br /&gt;
&lt;br /&gt;
== Setup a 2nd NIC Interface ==&lt;br /&gt;
# To start this lab we will need to create a second network interface called eth1. We will use eth1 as our LAN interface that will allow other computers to connect to the internet.&lt;br /&gt;
# In putty, open up /etc/network/interfaces with your favorite text editor, then go to the bottom of the file and add the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;auto eth1&lt;br /&gt;
iface eth1 inet static&lt;br /&gt;
	address 192.168.1.1&lt;br /&gt;
	netmask 255.255.255.0&amp;lt;/pre&amp;gt;&lt;br /&gt;
* As this is a LAN only interface, we do not need to define a gateway for the VM, as the VM is the gateway for this network.&lt;br /&gt;
# Once this is done, save the file and then run &amp;quot;ifup eth1&amp;quot;. This should bring up the new interface. You can check to see if its enabled by using ifconfig.&lt;br /&gt;
== Enable NAT ==&lt;br /&gt;
# Now we will need to enable NAT so we can forward traffic to our LAN interface. &lt;br /&gt;
# In your console, you will need to open up /etc/sysctl.conf with a text editor. This file is used to change and tweak multiple system variables. Scroll down until you find the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;# Uncomment the next line to enable packet forwarding for IPv4&lt;br /&gt;
#net.ipv4.ip_forward=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Uncomment the net.ipv4.ip_forward line. This will enable packet forwarding in the kernel. When you are done, save the file.&lt;br /&gt;
# Changes to the sysctl.conf file require a reboot, but most can be set without a reboot by echoing response codes to files in /proc. We will get into that more in a later chapter, but for now run the following command to enable ip_forwarding without rebooting the machine. &#039;&#039;echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&#039;&#039;&lt;br /&gt;
# Now we will need to use webmin to setup iptables to allow for NAT. In webmin, Go to Networking, then Linux Firewall. You will be taken to a page that will ask you to setup iptables for the first time. To start, select the option &amp;quot;Block all except SSH, IDENT, ping and high ports on interface eth0.&amp;quot; Also select the Enable firewall at boot time option, then press Setup Firewall.&lt;br /&gt;
# You will now be shown the firewall setup page. notice how webmin was nice enough to create a handful of default rules for you. We will get into creating custom rules later in this lab, but for now we need to enable NAT in iptables.&lt;br /&gt;
# On the top of the page where it says Showing IPtable:, change the dropdown option to Network address translation (nat).&lt;br /&gt;
# On this page, under the POSTROUTING category, press the Add Rule button. Use the following configuration to enable NAT:&lt;br /&gt;
&amp;lt;pre&amp;gt;Rule comment: Enable NAT for eth1&lt;br /&gt;
Action to take: Masquerade&lt;br /&gt;
Source ports for masquerading: any&lt;br /&gt;
IPs and ports to SNAT: Default&lt;br /&gt;
Source address or network: Equals: 192.168.1.1/24&lt;br /&gt;
Outgoing Interfce: Equals: eth0&amp;lt;/pre&amp;gt;&lt;br /&gt;
# When you are done, press Save at the bottom, and then on the firewall page press Apply Configuration. At this point you can use your linux VM as a router, but only with static IP addresses set on clients. So, next we will setup a DHCP server.&lt;br /&gt;
== Setup a DHCP Server ==&lt;br /&gt;
# To setup a DHCP server, we will first need to install the required software. In your SSH console use your favorite package manager to install isc-dhcp-server. &lt;br /&gt;
# After you install the package you may get a warning about isc-dhcp-server being unable to start. This is normal as we have yet to define the interface and settings we want used.&lt;br /&gt;
# Now back in Webmin, select the Refresh Modules option. After it is done, go to Servers, then DHCP Server.&lt;br /&gt;
# Before we define our DHCP range, we need to set our listening interface. Click on the Edit Network Interface option, and select eth1 and press save.&lt;br /&gt;
# Now under Subnets and Shared Networks, select Add a new subnet. Use the following settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Subnet description: LAN DHCP Range&lt;br /&gt;
Network Address: 192.168.1.0&lt;br /&gt;
Netmask: 255.255.255.0&lt;br /&gt;
Address Ranges: 192.168.1.100-192.168.1.254&amp;lt;/pre&amp;gt;&lt;br /&gt;
# When you are done, press Save. Now, click on the network you just created to review the settings, then press Edit Client Options at the bottom.&lt;br /&gt;
# From here we will setup the default gateway and DNS servers for the clients to use. Under Default Routers, set the option to 192.168.1.1 and under DNS servers, set it to 192.168.1.1 as well. Notice how we are setting these options to the IP of eth1 that we setup. This is because our linux VM will act as the router and DNS for our clients as well.&lt;br /&gt;
# When you are done, press save, and then on the Edit Subnet page, press save again.&lt;br /&gt;
# Now that you are back on the DHCP server page, press the Start Server button. If all goes good, the button should change to &amp;quot;Stop Server&amp;quot;. If this does not happen, then the server was unable start. If that happens, re-check your DHCP server configurations to make sure everything is correct.&lt;br /&gt;
== Setup a 2nd VM ==&lt;br /&gt;
# Now we are going to setup a 2nd VM on the VMWare server so we can have a client to connect to our network we just created. For this though, we will be using Ubuntu Desktop instead of Debian so we have a user interface to help us with testing.&lt;br /&gt;
# Once you have Ubuntu installed, reboot the machine and login. Notice how the machine is able to connect to the network. Now, press the Unity Icon in the top left corner, and enter &amp;quot;Terminal&amp;quot;. Then, open the terminal application.&lt;br /&gt;
# You now have a shell on the system. From here, use sudo ifconfig to check your network settings. Notice how you have a IP from the DHCP pool we created earlier. Now try pinging 172.17.50.10. Are you able to ping? If so, NAT is working properly on your network.&lt;br /&gt;
# Now run ping google.com. If you are able to ping, this shows that not only is NAT working, but DNS resolving as well.&lt;br /&gt;
# At this point we have a fully functional LAN environment.&lt;br /&gt;
== Port Forwarding and Firewalling ==&lt;br /&gt;
# Now we are going to enable port forwarding to our VM. This will allow you to access the 2nd VM from the IHITC network.&lt;br /&gt;
# So back in webmin, go to Networking, and then Linux Firewall. Now change the Showing IPTable option to Network Address Translation (nat). Now under PREROUTING, press Add Rule.&lt;br /&gt;
# For our rule we are going to forward port 2222 to port 22 on our Ubuntu VM. You will need to know the IP address of the Ubuntu Machine, but for this example it will be 192.168.1.100&lt;br /&gt;
# Use the following information to create the new rule:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Rule comment: Forward 2222 to SSH&lt;br /&gt;
Action to take: Destination NAT&lt;br /&gt;
IPs and ports for DNAT: IP range: 192.168.1.100: Port range: 22&lt;br /&gt;
Network protocol: Equals: TCP&lt;br /&gt;
Destination TCP or UDP Port: Equals: 2222&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Help: Use the following image for extra reference if required: [http://wiki.ihitc.net/mw/images/f/f3/Port_Forward.png Link]&lt;br /&gt;
# When you are done press save, and then Apply Configuration. Now on the Ubuntu VM, make sure openssh-server is installed. From a computer on the IHITC network, try to SSH to port 2222 on your VM. If everything was setup successfully, you will be able to sign into the Ubuntu Desktop VM through the Debian VM.&lt;br /&gt;
# Now that we have our network setup up, it is time to secure it with firewall rules. Go back into Webmin. Go to Networking, then Linux Firewall.&lt;br /&gt;
# When we first setup iptables we used some default rules, but we are going to secure it a bit by limiting access to only allow clients from the 172.17.0.0/16 networks.&lt;br /&gt;
# Under the Incoming packets (INPUT) category, on the top rule, press the upward arrow under the Add category. Use the following options in the ruleset:&lt;br /&gt;
&amp;lt;pre&amp;gt;Rule comment: Limit Access&lt;br /&gt;
Action to take: Drop&lt;br /&gt;
Source address or network: Does not equal: 172.17.0.0/16&lt;br /&gt;
Incoming interface: Equals: eth0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now press save, then press Apply Configuration. This ends the Firewall setup.&lt;br /&gt;
== iptables from the command line ==&lt;br /&gt;
# Now that you know how to create rules with webmin, lets learn how to do it from the command line.&lt;br /&gt;
# If you want to view the current rulesets applied on a system, or you want to backup your current configuration, you would use the iptables-save command. Run it, and review the output. Notice how all of the rules we created in webmin show up.&lt;br /&gt;
# Now if you want to backup your rules, you would use iptables-save &amp;gt; rules.txt. This would dump the current configuration into a file called rules.txt.&lt;br /&gt;
# To reload the rules into iptables, you would use iptables-restore. With the file we created, we would load it back in by running iptables-restore rules.txt&lt;br /&gt;
# Lastly you can create and delete select roles from the command line using the iptables command directly. Use the man page to help you understand the arguments, and try to figure out how to remove the default firewall rule that Accepts packets if the destination port is between 1024 and 65535.&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_10&amp;diff=6453</id>
		<title>Franske ITC-2480 Lab 10</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_10&amp;diff=6453"/>
		<updated>2014-03-25T23:06:36Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account&lt;br /&gt;
# Have a browser window set to the webmin interface for your linux VM.&lt;br /&gt;
&lt;br /&gt;
== Setup a 2nd NIC Interface ==&lt;br /&gt;
# To start this lab we will need to create a second network interface called eth1. We will use eth1 as our LAN interface that will allow other computers to connect to the internet.&lt;br /&gt;
# In putty, open up /etc/network/interfaces with your favorite text editor, then go to the bottom of the file and add the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;auto eth1&lt;br /&gt;
iface eth1 inet static&lt;br /&gt;
	address 192.168.1.1&lt;br /&gt;
	netmask 255.255.255.0&amp;lt;/pre&amp;gt;&lt;br /&gt;
* As this is a LAN only interface, we do not need to define a gateway for the VM, as the VM is the gateway for this network.&lt;br /&gt;
# Once this is done, save the file and then run &amp;quot;ifup eth1&amp;quot;. This should bring up the new interface. You can check to see if its enabled by using ifconfig.&lt;br /&gt;
== Enable NAT ==&lt;br /&gt;
# Now we will need to enable NAT so we can forward traffic to our LAN interface. &lt;br /&gt;
# In your console, you will need to open up /etc/sysctl.conf with a text editor. This file is used to change and tweak multiple system variables. Scroll down until you find the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;# Uncomment the next line to enable packet forwarding for IPv4&lt;br /&gt;
#net.ipv4.ip_forward=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Uncomment the net.ipv4.ip_forward line. This will enable packet forwarding in the kernel. When you are done, save the file.&lt;br /&gt;
# Changes to the sysctl.conf file require a reboot, but most can be set without a reboot by echoing response codes to files in /proc. We will get into that more in a later chapter, but for now run the following command to enable ip_forwarding without rebooting the machine. &#039;&#039;echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&#039;&#039;&lt;br /&gt;
# Now we will need to use webmin to setup iptables to allow for NAT. In webmin, Go to Networking, then Linux Firewall. You will be taken to a page that will ask you to setup iptables for the first time. To start, select the option &amp;quot;Block all except SSH, IDENT, ping and high ports on interface eth0.&amp;quot; Also select the Enable firewall at boot time option, then press Setup Firewall.&lt;br /&gt;
# You will now be shown the firewall setup page. notice how webmin was nice enough to create a handful of default rules for you. We will get into creating custom rules later in this lab, but for now we need to enable NAT in iptables.&lt;br /&gt;
# On the top of the page where it says Showing IPtable:, change the dropdown option to Network address translation (nat).&lt;br /&gt;
# On this page, under the POSTROUTING category, press the Add Rule button. Use the following configuration to enable NAT:&lt;br /&gt;
&amp;lt;pre&amp;gt;Rule comment: Enable NAT for eth1&lt;br /&gt;
Action to take: Masquerade&lt;br /&gt;
Source ports for masquerading: any&lt;br /&gt;
IPs and ports to SNAT: Default&lt;br /&gt;
Source address or network: Equals: 192.168.1.1/24&lt;br /&gt;
Outgoing Interfce: Equals: eth0&amp;lt;/pre&amp;gt;&lt;br /&gt;
# When you are done, press Save at the bottom, and then on the firewall page press Apply Configuration. At this point you can use your linux VM as a router, but only with static IP addresses set on clients. So, next we will setup a DHCP server.&lt;br /&gt;
== Setup a DHCP Server ==&lt;br /&gt;
# To setup a DHCP server, we will first need to install the required software. In your SSH console use your favorite package manager to install isc-dhcp-server. &lt;br /&gt;
# After you install the package you may get a warning about isc-dhcp-server being unable to start. This is normal as we have yet to define the interface and settings we want used.&lt;br /&gt;
# Now back in Webmin, select the Refresh Modules option. After it is done, go to Servers, then DHCP Server.&lt;br /&gt;
# Before we define our DHCP range, we need to set our listening interface. Click on the Edit Network Interface option, and select eth1 and press save.&lt;br /&gt;
# Now under Subnets and Shared Networks, select Add a new subnet. Use the following settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Subnet description: LAN DHCP Range&lt;br /&gt;
Network Address: 192.168.1.0&lt;br /&gt;
Netmask: 255.255.255.0&lt;br /&gt;
Address Ranges: 192.168.1.100-192.168.1.254&amp;lt;/pre&amp;gt;&lt;br /&gt;
# When you are done, press Save. Now, click on the network you just created to review the settings, then press Edit Client Options at the bottom.&lt;br /&gt;
# From here we will setup the default gateway and DNS servers for the clients to use. Under Default Routers, set the option to 192.168.1.1 and under DNS servers, set it to 192.168.1.1 as well. Notice how we are setting these options to the IP of eth1 that we setup. This is because our linux VM will act as the router and DNS for our clients as well.&lt;br /&gt;
# When you are done, press save, and then on the Edit Subnet page, press save again.&lt;br /&gt;
# Now that you are back on the DHCP server page, press the Start Server button. If all goes good, the button should change to &amp;quot;Stop Server&amp;quot;. If this does not happen, then the server was unable start. If that happens, re-check your DHCP server configurations to make sure everything is correct.&lt;br /&gt;
== Setup a 2nd VM ==&lt;br /&gt;
# Now we are going to setup a 2nd VM on the VMWare server so we can have a client to connect to our network we just created. For this though, we will be using Ubuntu Desktop instead of Debian so we have a user interface to help us with testing.&lt;br /&gt;
# Once you have Ubuntu installed, reboot the machine and login. Notice how the machine is able to connect to the network. Now, press the Unity Icon in the top left corner, and enter &amp;quot;Terminal&amp;quot;. Then, open the terminal application.&lt;br /&gt;
# You now have a shell on the system. From here, use sudo ifconfig to check your network settings. Notice how you have a IP from the DHCP pool we created earlier. Now try pinging 172.17.50.10. Are you able to ping? If so, NAT is working properly on your network.&lt;br /&gt;
# Now run ping google.com. If you are able to ping, this shows that not only is NAT working, but DNS resolving as well.&lt;br /&gt;
# At this point we have a fully functional LAN environment.&lt;br /&gt;
== Port Forwarding and Firewalling ==&lt;br /&gt;
# Now we are going to enable port forwarding to our VM. This will allow you to access the 2nd VM from the IHITC network.&lt;br /&gt;
# So back in webmin, go to Networking, and then Linux Firewall. Now change the Showing IPTable option to Network Address Translation (nat). Now under PREROUTING, press Add Rule.&lt;br /&gt;
# For our rule we are going to forward port 2222 to port 22 on our Ubuntu VM. You will need to know the IP address of the Ubuntu Machine, but for this example it will be 192.168.1.100&lt;br /&gt;
# Use the following information to create the new rule:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Rule comment: Forward 2222 to SSH&lt;br /&gt;
Action to take: Destination NAT&lt;br /&gt;
IPs and ports for DNAT: IP range: 192.168.1.100: Port range: 22&lt;br /&gt;
Network protocol: Equals: TCP&lt;br /&gt;
Destination TCP or UDP Port: Equals: 2222&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Help: Use the following image for extra reference if required: [http://wiki.ihitc.net/mw/images/f/f3/Port_Forward.png Link]&lt;br /&gt;
# When you are done press save, and then Apply Configuration. Now on the Ubuntu VM, make sure openssh-server is installed. From a computer on the IHITC network, try to SSH to port 2222 on your VM. If everything was setup successfully, you will be able to sign into the Ubuntu Desktop VM through the Debian VM.&lt;br /&gt;
# Now that we have our network setup up, it is time to secure it with firewall rules. Go back into Webmin. Go to Networking, then Linux Firewall.&lt;br /&gt;
# When we first setup iptables we used some default rules, but we are going to secure it a bit by limiting access to only allow clients from the 172.17.0.0/16 networks.&lt;br /&gt;
# Under the Incoming packets (INPUT) category, on the top rule, press the upward arrow under the Add category. Use the following options in the ruleset:&lt;br /&gt;
&amp;lt;pre&amp;gt;Rule comment: Limit Access&lt;br /&gt;
Action to take: Drop&lt;br /&gt;
Source address or network: Does not equal: 172.17.0.0/16&lt;br /&gt;
Incoming interface: Equals: eth0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now press save, then press Apply Configuration. This ends the Firewall setup.&lt;br /&gt;
== iptables on the Command Line ==&lt;br /&gt;
# Now that you know how to create rules with webmin, lets learn how to do it from the command line.&lt;br /&gt;
# If you want to view the current rulesets applied on a system, or you want to backup your current configuration, you would use the iptables-save command. Run it, and review the output. Notice how all of the rules we created in webmin show up.&lt;br /&gt;
# Now if you want to backup your rules, you would use iptables-save &amp;gt; rules.txt. This would dump the current configuration into a file called rules.txt.&lt;br /&gt;
# To reload the rules into iptables, you would use iptables-restore. With the file we created, we would load it back in by running iptables-restore rules.txt&lt;br /&gt;
# Lastly you can create and delete select roles from the command line using the iptables command directly. Use the man page to help you understand the arguments, and try to figure out how to remove the default firewall rule that Accepts packets if the destination port is between 1024 and 65535.&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_10&amp;diff=6452</id>
		<title>Franske ITC-2480 Lab 10</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_10&amp;diff=6452"/>
		<updated>2014-03-25T22:52:25Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account&lt;br /&gt;
# Have a browser window set to the webmin interface for your linux VM.&lt;br /&gt;
&lt;br /&gt;
== Setup a 2nd NIC Interface ==&lt;br /&gt;
# To start this lab we will need to create a second network interface called eth1. We will use eth1 as our LAN interface that will allow other computers to connect to the internet.&lt;br /&gt;
# In putty, open up /etc/network/interfaces with your favorite text editor, then go to the bottom of the file and add the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;auto eth1&lt;br /&gt;
iface eth1 inet static&lt;br /&gt;
	address 192.168.1.1&lt;br /&gt;
	netmask 255.255.255.0&amp;lt;/pre&amp;gt;&lt;br /&gt;
* As this is a LAN only interface, we do not need to define a gateway for the VM, as the VM is the gateway for this network.&lt;br /&gt;
# Once this is done, save the file and then run &amp;quot;ifup eth1&amp;quot;. This should bring up the new interface. You can check to see if its enabled by using ifconfig.&lt;br /&gt;
== Enable NAT ==&lt;br /&gt;
# Now we will need to enable NAT so we can forward traffic to our LAN interface. &lt;br /&gt;
# In your console, you will need to open up /etc/sysctl.conf with a text editor. This file is used to change and tweak multiple system variables. Scroll down until you find the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;# Uncomment the next line to enable packet forwarding for IPv4&lt;br /&gt;
#net.ipv4.ip_forward=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Uncomment the net.ipv4.ip_forward line. This will enable packet forwarding in the kernel. When you are done, save the file.&lt;br /&gt;
# Changes to the sysctl.conf file require a reboot, but most can be set without a reboot by echoing response codes to files in /proc. We will get into that more in a later chapter, but for now run the following command to enable ip_forwarding without rebooting the machine. &#039;&#039;echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&#039;&#039;&lt;br /&gt;
# Now we will need to use webmin to setup iptables to allow for NAT. In webmin, Go to Networking, then Linux Firewall. You will be taken to a page that will ask you to setup iptables for the first time. To start, select the option &amp;quot;Block all except SSH, IDENT, ping and high ports on interface eth0.&amp;quot; Also select the Enable firewall at boot time option, then press Setup Firewall.&lt;br /&gt;
# You will now be shown the firewall setup page. notice how webmin was nice enough to create a handful of default rules for you. We will get into creating custom rules later in this lab, but for now we need to enable NAT in iptables.&lt;br /&gt;
# On the top of the page where it says Showing IPtable:, change the dropdown option to Network address translation (nat).&lt;br /&gt;
# On this page, under the POSTROUTING category, press the Add Rule button. Use the following configuration to enable NAT:&lt;br /&gt;
&amp;lt;pre&amp;gt;Rule comment: Enable NAT for eth1&lt;br /&gt;
Action to take: Masquerade&lt;br /&gt;
Source ports for masquerading: any&lt;br /&gt;
IPs and ports to SNAT: Default&lt;br /&gt;
Source address or network: Equals: 192.168.1.1/24&lt;br /&gt;
Outgoing Interfce: Equals: eth0&amp;lt;/pre&amp;gt;&lt;br /&gt;
# When you are done, press Save at the bottom, and then on the firewall page press Apply Configuration. At this point you can use your linux VM as a router, but only with static IP addresses set on clients. So, next we will setup a DHCP server.&lt;br /&gt;
== Setup a DHCP Server ==&lt;br /&gt;
# To setup a DHCP server, we will first need to install the required software. In your SSH console use your favorite package manager to install isc-dhcp-server. &lt;br /&gt;
# After you install the package you may get a warning about isc-dhcp-server being unable to start. This is normal as we have yet to define the interface and settings we want used.&lt;br /&gt;
# Now back in Webmin, select the Refresh Modules option. After it is done, go to Servers, then DHCP Server.&lt;br /&gt;
# Before we define our DHCP range, we need to set our listening interface. Click on the Edit Network Interface option, and select eth1 and press save.&lt;br /&gt;
# Now under Subnets and Shared Networks, select Add a new subnet. Use the following settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Subnet description: LAN DHCP Range&lt;br /&gt;
Network Address: 192.168.1.0&lt;br /&gt;
Netmask: 255.255.255.0&lt;br /&gt;
Address Ranges: 192.168.1.100-192.168.1.254&amp;lt;/pre&amp;gt;&lt;br /&gt;
# When you are done, press Save. Now, click on the network you just created to review the settings, then press Edit Client Options at the bottom.&lt;br /&gt;
# From here we will setup the default gateway and DNS servers for the clients to use. Under Default Routers, set the option to 192.168.1.1 and under DNS servers, set it to 192.168.1.1 as well. Notice how we are setting these options to the IP of eth1 that we setup. This is because our linux VM will act as the router and DNS for our clients as well.&lt;br /&gt;
# When you are done, press save, and then on the Edit Subnet page, press save again.&lt;br /&gt;
# Now that you are back on the DHCP server page, press the Start Server button. If all goes good, the button should change to &amp;quot;Stop Server&amp;quot;. If this does not happen, then the server was unable start. If that happens, re-check your DHCP server configurations to make sure everything is correct.&lt;br /&gt;
== Setup a 2nd VM ==&lt;br /&gt;
# Now we are going to setup a 2nd VM on the VMWare server so we can have a client to connect to our network we just created. For this though, we will be using Ubuntu Desktop instead of Debian so we have a user interface to help us with testing.&lt;br /&gt;
# Once you have Ubuntu installed, reboot the machine and login. Notice how the machine is able to connect to the network. Now, press the Unity Icon in the top left corner, and enter &amp;quot;Terminal&amp;quot;. Then, open the terminal application.&lt;br /&gt;
# You now have a shell on the system. From here, use sudo ifconfig to check your network settings. Notice how you have a IP from the DHCP pool we created earlier. Now try pinging 172.17.50.10. Are you able to ping? If so, NAT is working properly on your network.&lt;br /&gt;
# Now run ping google.com. If you are able to ping, this shows that not only is NAT working, but DNS resolving as well.&lt;br /&gt;
# At this point we have a fully functional LAN environment.&lt;br /&gt;
== Port Forwarding and Firewalling ==&lt;br /&gt;
# Now we are going to enable port forwarding to our VM. This will allow you to access the 2nd VM from the IHITC network.&lt;br /&gt;
# So back in webmin, go to Networking, and then Linux Firewall. Now change the Showing IPTable option to Network Address Translation (nat). Now under PREROUTING, press Add Rule.&lt;br /&gt;
# For our rule we are going to forward port 2222 to port 22 on our Ubuntu VM. You will need to know the IP address of the Ubuntu Machine, but for this example it will be 192.168.1.100&lt;br /&gt;
# Use the following information to create the new rule:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Rule comment: Forward 2222 to SSH&lt;br /&gt;
Action to take: Destination NAT&lt;br /&gt;
IPs and ports for DNAT: IP range: 192.168.1.100: Port range: 22&lt;br /&gt;
Network protocol: Equals: TCP&lt;br /&gt;
Destination TCP or UDP Port: Equals: 2222&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Help: Use the following image for extra reference if required: [http://wiki.ihitc.net/mw/images/f/f3/Port_Forward.png Link]&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_10&amp;diff=6451</id>
		<title>Franske ITC-2480 Lab 10</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_10&amp;diff=6451"/>
		<updated>2014-03-25T22:51:42Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account&lt;br /&gt;
# Have a browser window set to the webmin interface for your linux VM.&lt;br /&gt;
&lt;br /&gt;
== Setup a 2nd NIC Interface ==&lt;br /&gt;
# To start this lab we will need to create a second network interface called eth1. We will use eth1 as our LAN interface that will allow other computers to connect to the internet.&lt;br /&gt;
# In putty, open up /etc/network/interfaces with your favorite text editor, then go to the bottom of the file and add the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;auto eth1&lt;br /&gt;
iface eth1 inet static&lt;br /&gt;
	address 192.168.1.1&lt;br /&gt;
	netmask 255.255.255.0&amp;lt;/pre&amp;gt;&lt;br /&gt;
* As this is a LAN only interface, we do not need to define a gateway for the VM, as the VM is the gateway for this network.&lt;br /&gt;
# Once this is done, save the file and then run &amp;quot;ifup eth1&amp;quot;. This should bring up the new interface. You can check to see if its enabled by using ifconfig.&lt;br /&gt;
== Enable NAT ==&lt;br /&gt;
# Now we will need to enable NAT so we can forward traffic to our LAN interface. &lt;br /&gt;
# In your console, you will need to open up /etc/sysctl.conf with a text editor. This file is used to change and tweak multiple system variables. Scroll down until you find the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;# Uncomment the next line to enable packet forwarding for IPv4&lt;br /&gt;
#net.ipv4.ip_forward=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Uncomment the net.ipv4.ip_forward line. This will enable packet forwarding in the kernel. When you are done, save the file.&lt;br /&gt;
# Changes to the sysctl.conf file require a reboot, but most can be set without a reboot by echoing response codes to files in /proc. We will get into that more in a later chapter, but for now run the following command to enable ip_forwarding without rebooting the machine. &#039;&#039;echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&#039;&#039;&lt;br /&gt;
# Now we will need to use webmin to setup iptables to allow for NAT. In webmin, Go to Networking, then Linux Firewall. You will be taken to a page that will ask you to setup iptables for the first time. To start, select the option &amp;quot;Block all except SSH, IDENT, ping and high ports on interface eth0.&amp;quot; Also select the Enable firewall at boot time option, then press Setup Firewall.&lt;br /&gt;
# You will now be shown the firewall setup page. notice how webmin was nice enough to create a handful of default rules for you. We will get into creating custom rules later in this lab, but for now we need to enable NAT in iptables.&lt;br /&gt;
# On the top of the page where it says Showing IPtable:, change the dropdown option to Network address translation (nat).&lt;br /&gt;
# On this page, under the POSTROUTING category, press the Add Rule button. Use the following configuration to enable NAT:&lt;br /&gt;
&amp;lt;pre&amp;gt;Rule comment: Enable NAT for eth1&lt;br /&gt;
Action to take: Masquerade&lt;br /&gt;
Source ports for masquerading: any&lt;br /&gt;
IPs and ports to SNAT: Default&lt;br /&gt;
Source address or network: Equals: 192.168.1.1/24&lt;br /&gt;
Outgoing Interfce: Equals: eth0&amp;lt;/pre&amp;gt;&lt;br /&gt;
# When you are done, press Save at the bottom, and then on the firewall page press Apply Configuration. At this point you can use your linux VM as a router, but only with static IP addresses set on clients. So, next we will setup a DHCP server.&lt;br /&gt;
== Setup a DHCP Server ==&lt;br /&gt;
# To setup a DHCP server, we will first need to install the required software. In your SSH console use your favorite package manager to install isc-dhcp-server. &lt;br /&gt;
# After you install the package you may get a warning about isc-dhcp-server being unable to start. This is normal as we have yet to define the interface and settings we want used.&lt;br /&gt;
# Now back in Webmin, select the Refresh Modules option. After it is done, go to Servers, then DHCP Server.&lt;br /&gt;
# Before we define our DHCP range, we need to set our listening interface. Click on the Edit Network Interface option, and select eth1 and press save.&lt;br /&gt;
# Now under Subnets and Shared Networks, select Add a new subnet. Use the following settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Subnet description: LAN DHCP Range&lt;br /&gt;
Network Address: 192.168.1.0&lt;br /&gt;
Netmask: 255.255.255.0&lt;br /&gt;
Address Ranges: 192.168.1.100-192.168.1.254&amp;lt;/pre&amp;gt;&lt;br /&gt;
# When you are done, press Save. Now, click on the network you just created to review the settings, then press Edit Client Options at the bottom.&lt;br /&gt;
# From here we will setup the default gateway and DNS servers for the clients to use. Under Default Routers, set the option to 192.168.1.1 and under DNS servers, set it to 192.168.1.1 as well. Notice how we are setting these options to the IP of eth1 that we setup. This is because our linux VM will act as the router and DNS for our clients as well.&lt;br /&gt;
# When you are done, press save, and then on the Edit Subnet page, press save again.&lt;br /&gt;
# Now that you are back on the DHCP server page, press the Start Server button. If all goes good, the button should change to &amp;quot;Stop Server&amp;quot;. If this does not happen, then the server was unable start. If that happens, re-check your DHCP server configurations to make sure everything is correct.&lt;br /&gt;
== Setup a 2nd VM ==&lt;br /&gt;
# Now we are going to setup a 2nd VM on the VMWare server so we can have a client to connect to our network we just created. For this though, we will be using Ubuntu Desktop instead of Debian so we have a user interface to help us with testing.&lt;br /&gt;
# Once you have Ubuntu installed, reboot the machine and login. Notice how the machine is able to connect to the network. Now, press the Unity Icon in the top left corner, and enter &amp;quot;Terminal&amp;quot;. Then, open the terminal application.&lt;br /&gt;
# You now have a shell on the system. From here, use sudo ifconfig to check your network settings. Notice how you have a IP from the DHCP pool we created earlier. Now try pinging 172.17.50.10. Are you able to ping? If so, NAT is working properly on your network.&lt;br /&gt;
# Now run ping google.com. If you are able to ping, this shows that not only is NAT working, but DNS resolving as well.&lt;br /&gt;
# At this point we have a fully functional LAN environment.&lt;br /&gt;
== Port Forwarding and Firewalling ==&lt;br /&gt;
# Now we are going to enable port forwarding to our VM. This will allow you to access the 2nd VM from the IHITC network.&lt;br /&gt;
# So back in webmin, go to Networking, and then Linux Firewall. Now change the Showing IPTable option to Network Address Translation (nat). Now under PREROUTING, press Add Rule.&lt;br /&gt;
# For our rule we are going to forward port 2222 to port 22 on our Ubuntu VM. You will need to know the IP address of the Ubuntu Machine, but for this example it will be 192.168.1.100&lt;br /&gt;
# Use the following information to create the new rule:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Rule comment: Forward 2222 to SSH&lt;br /&gt;
Action to take: Destination NAT&lt;br /&gt;
IPs and ports for DNAT: IP range: 192.168.1.100: Port range: 22&lt;br /&gt;
Network protocol: Equals: TCP&lt;br /&gt;
Destination TCP or UDP Port: Equals: 2222&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Help: Use the following image for extra reference if required: [[File:Port Forward.png]]&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=File:Port_Forward.png&amp;diff=6450</id>
		<title>File:Port Forward.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=File:Port_Forward.png&amp;diff=6450"/>
		<updated>2014-03-25T22:51:04Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_10&amp;diff=6449</id>
		<title>Franske ITC-2480 Lab 10</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_10&amp;diff=6449"/>
		<updated>2014-03-25T15:32:04Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account&lt;br /&gt;
# Have a browser window set to the webmin interface for your linux VM.&lt;br /&gt;
&lt;br /&gt;
== Setup a 2nd NIC Interface ==&lt;br /&gt;
# To start this lab we will need to create a second network interface called eth1. We will use eth1 as our LAN interface that will allow other computers to connect to the internet.&lt;br /&gt;
# In putty, open up /etc/network/interfaces with your favorite text editor, then go to the bottom of the file and add the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;auto eth1&lt;br /&gt;
iface eth1 inet static&lt;br /&gt;
	address 192.168.1.1&lt;br /&gt;
	netmask 255.255.255.0&amp;lt;/pre&amp;gt;&lt;br /&gt;
* As this is a LAN only interface, we do not need to define a gateway for the VM, as the VM is the gateway for this network.&lt;br /&gt;
# Once this is done, save the file and then run &amp;quot;ifup eth1&amp;quot;. This should bring up the new interface. You can check to see if its enabled by using ifconfig.&lt;br /&gt;
== Enable NAT ==&lt;br /&gt;
# Now we will need to enable NAT so we can forward traffic to our LAN interface. &lt;br /&gt;
# In your console, you will need to open up /etc/sysctl.conf with a text editor. This file is used to change and tweak multiple system variables. Scroll down until you find the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;# Uncomment the next line to enable packet forwarding for IPv4&lt;br /&gt;
#net.ipv4.ip_forward=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Uncomment the net.ipv4.ip_forward line. This will enable packet forwarding in the kernel. When you are done, save the file.&lt;br /&gt;
# Changes to the sysctl.conf file require a reboot, but most can be set without a reboot by echoing response codes to files in /proc. We will get into that more in a later chapter, but for now run the following command to enable ip_forwarding without rebooting the machine. &#039;&#039;echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&#039;&#039;&lt;br /&gt;
# Now we will need to use webmin to setup iptables to allow for NAT. In webmin, Go to Networking, then Linux Firewall. You will be taken to a page that will ask you to setup iptables for the first time. To start, select the option &amp;quot;Block all except SSH, IDENT, ping and high ports on interface eth0.&amp;quot; Also select the Enable firewall at boot time option, then press Setup Firewall.&lt;br /&gt;
# You will now be shown the firewall setup page. notice how webmin was nice enough to create a handful of default rules for you. We will get into creating custom rules later in this lab, but for now we need to enable NAT in iptables.&lt;br /&gt;
# On the top of the page where it says Showing IPtable:, change the dropdown option to Network address translation (nat).&lt;br /&gt;
# On this page, under the POSTROUTING category, press the Add Rule button. Use the following configuration to enable NAT:&lt;br /&gt;
&amp;lt;pre&amp;gt;Rule comment: Enable NAT for eth1&lt;br /&gt;
Action to take: Masquerade&lt;br /&gt;
Source ports for masquerading: any&lt;br /&gt;
IPs and ports to SNAT: Default&lt;br /&gt;
Source address or network: Equals: 192.168.1.1/24&lt;br /&gt;
Outgoing Interfce: Equals: eth0&amp;lt;/pre&amp;gt;&lt;br /&gt;
# When you are done, press Save at the bottom, and then on the firewall page press Apply Configuration. At this point you can use your linux VM as a router, but only with static IP addresses set on clients. So, next we will setup a DHCP server.&lt;br /&gt;
== Setup a DHCP Server ==&lt;br /&gt;
# To setup a DHCP server, we will first need to install the required software. In your SSH console use your favorite package manager to install isc-dhcp-server. &lt;br /&gt;
# After you install the package you may get a warning about isc-dhcp-server being unable to start. This is normal as we have yet to define the interface and settings we want used.&lt;br /&gt;
# Now back in Webmin, select the Refresh Modules option. After it is done, go to Servers, then DHCP Server.&lt;br /&gt;
# Before we define our DHCP range, we need to set our listening interface. Click on the Edit Network Interface option, and select eth1 and press save.&lt;br /&gt;
# Now under Subnets and Shared Networks, select Add a new subnet. Use the following settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Subnet description: LAN DHCP Range&lt;br /&gt;
Network Address: 192.168.1.0&lt;br /&gt;
Netmask: 255.255.255.0&lt;br /&gt;
Address Ranges: 192.168.1.100-192.168.1.254&amp;lt;/pre&amp;gt;&lt;br /&gt;
# When you are done, press Save. Now, click on the network you just created to review the settings, then press Edit Client Options at the bottom.&lt;br /&gt;
# From here we will setup the default gateway and DNS servers for the clients to use. Under Default Routers, set the option to 192.168.1.1 and under DNS servers, set it to 192.168.1.1 as well. Notice how we are setting these options to the IP of eth1 that we setup. This is because our linux VM will act as the router and DNS for our clients as well.&lt;br /&gt;
# When you are done, press save, and then on the Edit Subnet page, press save again.&lt;br /&gt;
# Now that you are back on the DHCP server page, press the Start Server button. If all goes good, the button should change to &amp;quot;Stop Server&amp;quot;. If this does not happen, then the server was unable start. If that happens, re-check your DHCP server configurations to make sure everything is correct.&lt;br /&gt;
== Setup a 2nd VM ==&lt;br /&gt;
# Now we are going to setup a 2nd VM on the VMWare server so we can have a client to connect to our network we just created. For this though, we will be using Ubuntu Desktop instead of Debian so we have a user interface to help us with testing.&lt;br /&gt;
# Once you have Ubuntu installed, reboot the machine and login. Notice how the machine is able to connect to the network. Now, press the Unity Icon in the top left corner, and enter &amp;quot;Terminal&amp;quot;. Then, open the terminal application.&lt;br /&gt;
# You now have a shell on the system. From here, use sudo ifconfig to check your network settings. Notice how you have a IP from the DHCP pool we created earlier. Now try pinging 172.17.50.10. Are you able to ping? If so, NAT is working properly on your network.&lt;br /&gt;
# Now run ping google.com. If you are able to ping, this shows that not only is NAT working, but DNS resolving as well.&lt;br /&gt;
# At this point we have a fully functional LAN environment.&lt;br /&gt;
== Port Forwarding and Firewalling ==&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_10&amp;diff=6441</id>
		<title>Franske ITC-2480 Lab 10</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_10&amp;diff=6441"/>
		<updated>2014-03-23T20:28:44Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: Created page with &amp;quot;=Introduction= =Lab Procedure= == Prerequisites == # Open an SSH console to your Linux system using the PuTTY software, login with your standard user account  == Setup a 2nd N...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account&lt;br /&gt;
&lt;br /&gt;
== Setup a 2nd NIC Interface ==&lt;br /&gt;
&lt;br /&gt;
== Enable NAT ==&lt;br /&gt;
&lt;br /&gt;
== Setup a DHCP Server ==&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Assignments&amp;diff=6440</id>
		<title>Franske ITC-2480 Assignments</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Assignments&amp;diff=6440"/>
		<updated>2014-03-23T20:25:44Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: /* Labs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Labs=&lt;br /&gt;
You are responsible for completing ALL of these labs. You must submit a [[Franske Lab Report Format|lab report]] for each chapter (you may combine multiple labs from the chapter into a single report). If you work with a partner on a lab you only need to submit a single lab report for the two of you but it must have both your names on it. Each lab report is worth up to 20 points. This falls into the Labs/Homework category of your course grade.&lt;br /&gt;
&lt;br /&gt;
# [[Franske ITC-2480 Lab 1|Lab 1: Install Debian, check IP, remote access with ssh/sftp]]&lt;br /&gt;
# [[Franske ITC-2480 Lab 2|Lab 2: Install Links, install Apache, download, copy, move, remove files, tar file extraction, directories]]&lt;br /&gt;
# [[Franske ITC-2480 Lab 3|Lab 3: Install sudo, create new user, change ownership and permissions on files/dirs, view man pages, install webmin]]&lt;br /&gt;
# [[Franske ITC-2480 Lab 4|Lab 4: redirect/pipe output, create links, create compressed files, text editing]]&lt;br /&gt;
# [[Franske ITC-2480 Lab 5|Lab 5: Set static IP, install PHP/mySQL, experiment with websites and databases, view logfiles]] &lt;br /&gt;
# [[Franske ITC-2480 Lab 6|Lab 6: Install forum &amp;amp; blog software, experiment with PHP]]&lt;br /&gt;
# [[Franske ITC-2480 Lab 7|Lab 7: Install Samba, configure for basic workgroup filesharing]] &lt;br /&gt;
# [[Franske ITC-2480 Lab 8|Lab 8: Install Postfix MTA, courier-imap]]&lt;br /&gt;
# [[Franske ITC-2480 Lab 9|Lab 9: Install BIND and configure as caching plus zones for a local domain]] &lt;br /&gt;
# [[Franske ITC-2480 Lab 10|Lab 10: 2nd NIC internal network configuration]] &lt;br /&gt;
# Lab 11: Explore /proc /dev, Partition/format/mount 2nd HDD &lt;br /&gt;
# Lab 12: Use of nmap, netstat, MRTG/cacti, Nagios &lt;br /&gt;
# Lab 13: Write BASH scripts&lt;br /&gt;
&lt;br /&gt;
=Homework=&lt;br /&gt;
Any homework assigned in the course will go here. This falls into the Labs/Homework category of your course grade. Remember, for homework assignments turn in the actual pages from your lab book or printouts from the curriculum and not a lab report. Homework assignment are individual, you and your lab partner need to both turn them in separately even if you work on them together.&lt;br /&gt;
&lt;br /&gt;
=Participation Activities=&lt;br /&gt;
Any participation activities completed in the course will go here. This falls into the participation category of your course grade.&lt;br /&gt;
* Meet with the instructor once per week to discuss course progress and ask questions (up to 10 points each based on progress)&lt;br /&gt;
&lt;br /&gt;
=Unit Assessments=&lt;br /&gt;
You are responsible for completing an online unit assessment for each chapter. These fall into the online assessments category of your course grade.&lt;br /&gt;
&lt;br /&gt;
=Other=&lt;br /&gt;
You are also responsible for completing these things, see the course syllabus for category and weighting information.&lt;br /&gt;
* Online Final Exam&lt;br /&gt;
* Skills Final Exam&lt;br /&gt;
&lt;br /&gt;
=Skills Final Exam=&lt;br /&gt;
The Skills Final Exam is designed to test your ability to apply the concepts learned in this class and practiced in labs to common, real-world scenarios.&lt;br /&gt;
&lt;br /&gt;
[[Franske ITC-2480|Return to ITC-2480 Homepage]]&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_9&amp;diff=6422</id>
		<title>Franske ITC-2480 Lab 9</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_9&amp;diff=6422"/>
		<updated>2014-03-19T23:01:58Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: /* Adding a AAAA record */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account.&lt;br /&gt;
# Make sure that webmin is installed on your system. &lt;br /&gt;
== Install BIND &amp;amp; Enable Caching ==&lt;br /&gt;
# First you will need to install bind. Bind is one of the few available DNS server applications for linux. To install it, use your favorite package manager to install bind9.&lt;br /&gt;
# Now we will need to enable DNS caching and forwarding on the bind server. This will allow us to use it for DNS resolving locally, as well as speed up frequent DNS requests. To do this, open up /etc/bind/named.conf.options with your favorite text editor.&lt;br /&gt;
# You are now in the local options file for bind. You will need to uncomment out the following lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;# forwarders {&lt;br /&gt;
#     0.0.0.0;&lt;br /&gt;
# };&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Note that you will need to replace 0.0.0.0 with 172.17.139.10 for outside DNS lookups to function.&lt;br /&gt;
# The reason we setup a forwarder address is so that domain requests that are not on our system are passed to another DNS server instead of being searched against the root nameservers. You may want to do this in domain or enterprise environments as most large networks have internal domain names setup that only redirect inside of a local LAN. By using a forwarder, as long as the DNS server you push requests to is able to access those internal records, you will be able to access local content from internal domain names instead of needing to rely on IP addresses. &lt;br /&gt;
# To apply this change, you will need to restart the Bind DNS serice. to do this run &amp;quot;sudo service bind9 restart&amp;quot;. This will restart the Bind DNS service.&lt;br /&gt;
# Next we will need to change our DNS server set in /etc/network/interfaces so our eth0 interfaces uses our local system for DNS lookups. To do this, open up your interfaces file with your favorite file editor, and change the dns server to 127.0.0.1. Remember to restart your interface eth0 to apply the changes.&lt;br /&gt;
# To test if its working, run the command &amp;quot;nslookup inverhills.edu&amp;quot;. If bind is working, you should now see the following output:&lt;br /&gt;
&amp;lt;pre&amp;gt;Server:		127.0.0.1&lt;br /&gt;
Address:	127.0.0.1#53&lt;br /&gt;
&lt;br /&gt;
Non-authoritative answer:&lt;br /&gt;
Name:	inverhills.edu&lt;br /&gt;
Address: 134.29.183.71&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Notice how it shows it is using 127.0.0.1 as the server. If you do not see this, then your interface file is not set to use the local machine for DNS lookups.&lt;br /&gt;
&lt;br /&gt;
== Create a Domain using Webmin ==&lt;br /&gt;
# Now we are going to use webmin to create a few different type of domain records. We will go over A (Host), AAAA (IPv6 host), MX (Mail Exchange), and CNAME (Canonical Name).&lt;br /&gt;
# Open up your Webmin panel and sign in. Now that we have bind9 installed, you will need to click the Refresh Modules option on the left sidebar to have Webmin recheck the system for installed packages and services.&lt;br /&gt;
# Now under the Servers tab, open up BIND DNS Server. Now under Existing DNS Zones, clock Create master zone. From here we will create a new domain name for our server to host.&lt;br /&gt;
# Now use the following options, where * is your System ID that was defined in [[Franske ITC-2480 Lab 5|Lab 5.]]&lt;br /&gt;
&amp;lt;pre&amp;gt;Zone type: Forward (Names to Addresses)&lt;br /&gt;
Domain name / Network: debserv-*.test&lt;br /&gt;
Records file: Automatic&lt;br /&gt;
Master server: Leave as your hostname&lt;br /&gt;
Email address: root@debserv-*.test&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now click the create button to add our domain. As this point you should now be on the Edit Master Zone page. From here you can add and edit domain record settings.&lt;br /&gt;
# To create our A record which will point your domain to a IP address, click the Address button. For the Name enter @. the @ symbol in DNS Zones defines the parent domain. Now under address, enter your VM&#039;s static IP we set back in [[Franske ITC-2480 Lab 5|Lab 5]] and click Create. Now return back to the main BIND DNS Server page again. When there, click the Apply Configuration option in the top right corner.&lt;br /&gt;
# Now we will test the A record we just created. .use nslookup to lookup the domain you just created, which should be debserv-*.test by entering &amp;quot;nslookup debserv-*.test&amp;quot;&lt;br /&gt;
* Remember, * is used to represent your given letter to use in lab 5. Also, if you have issues looking up the domain, make sure that nslookup is still set to use 127.0.0.1 as the Server. If not, check your /etc/resolv.conf file.&lt;br /&gt;
== Adding additional record types ==&lt;br /&gt;
# Now we are going to add a few more record types to our Domain. This will include a MX (Mail Exchange) and CNAME (Canonical Name) record. &lt;br /&gt;
# We will start with the MX record. MX records are used by email servers to look up where to forward email for a specific domain.&lt;br /&gt;
# So to create a MX record we will use Webmin again. In Webmin on the BIND DNS Server page, click the domain on the bottom named debserv-*.test and then click the Mail Server button. Under name, enter @ again, and for the address enter your VM&#039;s static IP address. Now for Priority, enter 1. The Priority entry allows people to define more than 1 MX record for a domain, and the Priority defines which one should be used before the rest.&lt;br /&gt;
# Now go back to the domain zone overview page. We are now going to create a CNAME record. CNAME records are useful as they allow you to create virtual A records, but point them to a domain name instead of a host. This is most helpful in situations where you have a dynamic IP address on a system that always has a common DNS name.&lt;br /&gt;
# Now on the Edit Master Zone page for your domain, click the Name Alias button. For the Name, enter &amp;quot;blog&amp;quot; and for the Real Name, enter your domain &amp;quot;debserv-*.test.&amp;quot; but remember to put a period at the end of the domain as this is an absolute name. Then press create to add the record.&lt;br /&gt;
# Now press the Apply Configuration option in the top right of the page again. This will apply the records you have created. Now back in putty, run &amp;quot;nslookup blog.debserv-*.test&amp;quot;. You should get a response similar to:&lt;br /&gt;
&amp;lt;pre&amp;gt;Server:		127.0.0.1&lt;br /&gt;
Address:	127.0.0.1#53&lt;br /&gt;
&lt;br /&gt;
blog.debserv-*.test	canonical name = debserv-*.test.&lt;br /&gt;
Name:	debserv-*.test&lt;br /&gt;
Address: 172.17.50.XXX&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now we are going to create a virtual web host in apache that listens for the domain blog.debserv-*.test, and then forwards you directly to your blog folder. &lt;br /&gt;
# In Webmin under the servers tab, select Apache Webserver. Then on the top, click the Create virtual host button and use the following Configuration:&lt;br /&gt;
&amp;lt;pre&amp;gt;Handle Connections to Address: any address&lt;br /&gt;
Port: 80&lt;br /&gt;
Document Root: /var/www/blog/&lt;br /&gt;
Server Name: blog.debserv-*.test&lt;br /&gt;
Add virtual server to file: new file under virtual servers directory&lt;br /&gt;
Copy directives from: nowhere&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# When done, press Create Now. When you are back at the Apache Webserver page, then click Apply Changes in the top right.&lt;br /&gt;
# Now in a SSH session, open up your favorite command line web browser like w3m and visit blog.debserv-*.test. Notice how you are now visiting the blog directly, instead of your modified index.html file. This is because we setup a virtual host in apache that listens for requests directly from the CNAME we created. &lt;br /&gt;
# Congrats, at this point you have a basic domain working with a MX, CNAME, and A record.&lt;br /&gt;
&lt;br /&gt;
== Adding a AAAA record ==&lt;br /&gt;
# Now we are going to add an AAAA (IPv6 host) record to our domain. To do this, we will first need to make sure that IPv6 networking is setup in our virtual machine.&lt;br /&gt;
# In putty, using your favorite text editor, open up /etc/network/interfaces. We are going to enable IPv6 over DHCP to make sure that IPv6 is running on our VM. Add &amp;quot;iface eth0 inet6 dhcp&amp;quot; to the end if the eth0 configuration to do this. Your interface should now look similar to this:&lt;br /&gt;
&amp;lt;pre&amp;gt;auto eth0&lt;br /&gt;
iface eth0 inet static&lt;br /&gt;
	address 172.17.50.xxx&lt;br /&gt;
	netmask 255.255.255.0&lt;br /&gt;
	gateway 172.17.50.1&lt;br /&gt;
	dns-nameservers xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx&lt;br /&gt;
iface eth0 inet6 dhcp&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Afterwords, restart the eth0 interface by using &amp;quot;ifdown eth0 &amp;amp;&amp;amp; ifup eth0&amp;quot;. Remember that you need to run this command as root otherwise it will not work.&lt;br /&gt;
# Now use ifconfig to find your IPv6 address. Remember this as we will use it in webmin to create our AAAA record.&lt;br /&gt;
# Back in webmin, under servers and BIND DNS Server, select your debserv-*.test domain from the bottom and then click the IPv6 Address button. For the name, enter @ and for the address enter your IPv6 address WITHOUT the subnet prefix. It should look similar to this. 2607:f930:1c00:50:xxxx:xxxx:xxxx:xxxx&lt;br /&gt;
# When done press create. Remember to press the apply configuration button in the top right to make these changes applied. Now use nslookup to lookup your domain, and notice how you now have a IPv6 and IPv4 record for your domain.&lt;br /&gt;
# Congratulations, you have not setup a dual-stack DNS server for your debian server.&lt;br /&gt;
&lt;br /&gt;
== Adding a Delegated Domain ==&lt;br /&gt;
# Now we are going to add another domain to the system, but this domain is a delegated domain. Luckily we can add this to BIND the same way we added our first domain.&lt;br /&gt;
# So in Webmin, go to Servers, then BIND DNS Server. Then under Existing DNS Zones, Click on Create Master Zone and use the following settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Zone type: Forward (Names to Addresses)&lt;br /&gt;
Domain name / Network: *.itc2480.campus.ihitc.net&lt;br /&gt;
Records file: Automatic&lt;br /&gt;
Master server: Leave as your hostname&lt;br /&gt;
Email address: root@ *.itc2480.campus.ihitc.net&amp;lt;/pre&amp;gt;&lt;br /&gt;
* NOTE: the * stands for your hostname letter, the same as you used for the other domain we created.&lt;br /&gt;
# Now using webmin, create an A record for @ the same way as we did for the last domain. If you need help with this step, you can review the process we did earlier.&lt;br /&gt;
&lt;br /&gt;
== Manually editing a zone file ==&lt;br /&gt;
# Lastly we are going to look at the domain zone file. While webmin provides a nice interface to add records, all it is doing is manually adding our records to our zone file. When you use BIND for DNS, every domain created gets its own record file which is called the zone file. In this file all subdomains and records are stored for said domain.&lt;br /&gt;
# By default, the location for these records will be in /var/lib/bind, so cd into that folder and ls the contents.&lt;br /&gt;
# Now, with your favorite text editor, open up the file. It should look similar to this:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ttl 38400&lt;br /&gt;
debserv-A.test.	IN	SOA	VMHostname. root.debserv-A.test. (&lt;br /&gt;
			1395013947&lt;br /&gt;
			10800&lt;br /&gt;
			3600&lt;br /&gt;
			604800&lt;br /&gt;
			38400 )&lt;br /&gt;
debserv-A.test.	IN	NS	VMHostname.&lt;br /&gt;
debserv-A.test.	IN	A	172.17.50.XXX&lt;br /&gt;
debserv-A.test.	IN	MX	1 172.17.50.XXX&lt;br /&gt;
cname.debserv-A.test.	IN	CNAME	debserv-A.test.&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Notice the formatting for domain records. Each record is defined by the domain or subdomain, IN, then the record type, followed by what the record is pointed to.&lt;br /&gt;
# For this example, we want to change the MX priority from 1 to 10, so change the MX record settings using your text editor.&lt;br /&gt;
# When you are done, restart the bind9 service to reload the changes. We will now use a new command, dig, to lookup the record to make sure the changes were applied correctly.&lt;br /&gt;
* Note: when restarting bind, if you have any errors restarting the service this normally means you have a typo in one of your zone files. If this is the case, go through the file again in a text editor to make sure you did not add anything extra.&lt;br /&gt;
# dig is a very powerful DNS tool that allows you to lookup specific records for DNS domains, as well as many other things such as PTR, or reverse records. For our reasons though, we will use it to lookup the edited MX record. To do this, run &amp;quot;dig MX debserv-*.test&amp;quot;. &lt;br /&gt;
* Note: If you are having issues, add @127.0.0.1 to the end of the dig command to force dig to use the local DNS server.&lt;br /&gt;
# You should see the following response:&lt;br /&gt;
&amp;lt;pre&amp;gt;; &amp;lt;&amp;lt;&amp;gt;&amp;gt; DiG 9.8.4-rpz2+rl005.12-P1 &amp;lt;&amp;lt;&amp;gt;&amp;gt; MX debserv-*.test @127.0.0.1&lt;br /&gt;
;; global options: +cmd&lt;br /&gt;
;; Got answer:&lt;br /&gt;
;; -&amp;gt;&amp;gt;HEADER&amp;lt;&amp;lt;- opcode: QUERY, status: NOERROR, id: 59875&lt;br /&gt;
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0&lt;br /&gt;
&lt;br /&gt;
;; QUESTION SECTION:&lt;br /&gt;
;debserv-*.test.			IN	MX&lt;br /&gt;
&lt;br /&gt;
;; ANSWER SECTION:&lt;br /&gt;
debserv-*.test.		38400	IN	MX	10 172.17.50.XXX.debserv-*.test.&lt;br /&gt;
&lt;br /&gt;
;; AUTHORITY SECTION:&lt;br /&gt;
debserv-*.test.		38400	IN	NS	VMHostname.&lt;br /&gt;
&lt;br /&gt;
;; Query time: 4 msec&lt;br /&gt;
;; SERVER: 127.0.0.1#53(127.0.0.1)&lt;br /&gt;
;; WHEN: Sun Mar 16 20:40:02 2014&lt;br /&gt;
;; MSG SIZE  rcvd: 78&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Notice how the Answer Section shows the MX record is pointed to the IP of the domain, and that the priority is set to 10.&lt;br /&gt;
# Congrats, you have now setup a functional DNS server.&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_9&amp;diff=6419</id>
		<title>Franske ITC-2480 Lab 9</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_9&amp;diff=6419"/>
		<updated>2014-03-19T02:25:38Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: /* Adding a Forwarded Domain */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account.&lt;br /&gt;
# Make sure that webmin is installed on your system. &lt;br /&gt;
== Install BIND &amp;amp; Enable Caching ==&lt;br /&gt;
# First you will need to install bind. Bind is one of the few available DNS server applications for linux. To install it, use your favorite package manager to install bind9.&lt;br /&gt;
# Now we will need to enable DNS caching and forwarding on the bind server. This will allow us to use it for DNS resolving locally, as well as speed up frequent DNS requests. To do this, open up /etc/bind/named.conf.options with your favorite text editor.&lt;br /&gt;
# You are now in the local options file for bind. You will need to uncomment out the following lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;# forwarders {&lt;br /&gt;
#     0.0.0.0;&lt;br /&gt;
# };&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Note that you will need to replace 0.0.0.0 with 172.17.139.10 for outside DNS lookups to function.&lt;br /&gt;
# The reason we setup a forwarder address is so that domain requests that are not on our system are passed to another DNS server instead of being searched against the root nameservers. You may want to do this in domain or enterprise environments as most large networks have internal domain names setup that only redirect inside of a local LAN. By using a forwarder, as long as the DNS server you push requests to is able to access those internal records, you will be able to access local content from internal domain names instead of needing to rely on IP addresses. &lt;br /&gt;
# To apply this change, you will need to restart the Bind DNS serice. to do this run &amp;quot;sudo service bind9 restart&amp;quot;. This will restart the Bind DNS service.&lt;br /&gt;
# Next we will need to change our DNS server set in /etc/network/interfaces so our eth0 interfaces uses our local system for DNS lookups. To do this, open up your interfaces file with your favorite file editor, and change the dns server to 127.0.0.1. Remember to restart your interface eth0 to apply the changes.&lt;br /&gt;
# To test if its working, run the command &amp;quot;nslookup inverhills.edu&amp;quot;. If bind is working, you should now see the following output:&lt;br /&gt;
&amp;lt;pre&amp;gt;Server:		127.0.0.1&lt;br /&gt;
Address:	127.0.0.1#53&lt;br /&gt;
&lt;br /&gt;
Non-authoritative answer:&lt;br /&gt;
Name:	inverhills.edu&lt;br /&gt;
Address: 134.29.183.71&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Notice how it shows it is using 127.0.0.1 as the server. If you do not see this, then your interface file is not set to use the local machine for DNS lookups.&lt;br /&gt;
&lt;br /&gt;
== Create a Domain using Webmin ==&lt;br /&gt;
# Now we are going to use webmin to create a few different type of domain records. We will go over A (Host), AAAA (IPv6 host), MX (Mail Exchange), and CNAME (Canonical Name).&lt;br /&gt;
# Open up your Webmin panel and sign in. Now that we have bind9 installed, you will need to click the Refresh Modules option on the left sidebar to have Webmin recheck the system for installed packages and services.&lt;br /&gt;
# Now under the Servers tab, open up BIND DNS Server. Now under Existing DNS Zones, clock Create master zone. From here we will create a new domain name for our server to host.&lt;br /&gt;
# Now use the following options, where * is your System ID that was defined in [[Franske ITC-2480 Lab 5|Lab 5.]]&lt;br /&gt;
&amp;lt;pre&amp;gt;Zone type: Forward (Names to Addresses)&lt;br /&gt;
Domain name / Network: debserv-*.test&lt;br /&gt;
Records file: Automatic&lt;br /&gt;
Master server: Leave as your hostname&lt;br /&gt;
Email address: root@debserv-*.test&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now click the create button to add our domain. As this point you should now be on the Edit Master Zone page. From here you can add and edit domain record settings.&lt;br /&gt;
# To create our A record which will point your domain to a IP address, click the Address button. For the Name enter @. the @ symbol in DNS Zones defines the parent domain. Now under address, enter your VM&#039;s static IP we set back in [[Franske ITC-2480 Lab 5|Lab 5]] and click Create. Now return back to the main BIND DNS Server page again. When there, click the Apply Configuration option in the top right corner.&lt;br /&gt;
# Now we will test the A record we just created. .use nslookup to lookup the domain you just created, which should be debserv-*.test by entering &amp;quot;nslookup debserv-*.test&amp;quot;&lt;br /&gt;
* Remember, * is used to represent your given letter to use in lab 5. Also, if you have issues looking up the domain, make sure that nslookup is still set to use 127.0.0.1 as the Server. If not, check your /etc/resolv.conf file.&lt;br /&gt;
== Adding additional record types ==&lt;br /&gt;
# Now we are going to add a few more record types to our Domain. This will include a MX (Mail Exchange) and CNAME (Canonical Name) record. &lt;br /&gt;
# We will start with the MX record. MX records are used by email servers to look up where to forward email for a specific domain.&lt;br /&gt;
# So to create a MX record we will use Webmin again. In Webmin on the BIND DNS Server page, click the domain on the bottom named debserv-*.test and then click the Mail Server button. Under name, enter @ again, and for the address enter your VM&#039;s static IP address. Now for Priority, enter 1. The Priority entry allows people to define more than 1 MX record for a domain, and the Priority defines which one should be used before the rest.&lt;br /&gt;
# Now go back to the domain zone overview page. We are now going to create a CNAME record. CNAME records are useful as they allow you to create virtual A records, but point them to a domain name instead of a host. This is most helpful in situations where you have a dynamic IP address on a system that always has a common DNS name.&lt;br /&gt;
# Now on the Edit Master Zone page for your domain, click the Name Alias button. For the Name, enter &amp;quot;blog&amp;quot; and for the Real Name, enter your domain &amp;quot;debserv-*.test.&amp;quot; but remember to put a period at the end of the domain as this is an absolute name. Then press create to add the record.&lt;br /&gt;
# Now press the Apply Configuration option in the top right of the page again. This will apply the records you have created. Now back in putty, run &amp;quot;nslookup blog.debserv-*.test&amp;quot;. You should get a response similar to:&lt;br /&gt;
&amp;lt;pre&amp;gt;Server:		127.0.0.1&lt;br /&gt;
Address:	127.0.0.1#53&lt;br /&gt;
&lt;br /&gt;
blog.debserv-*.test	canonical name = debserv-*.test.&lt;br /&gt;
Name:	debserv-*.test&lt;br /&gt;
Address: 172.17.50.XXX&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now we are going to create a virtual web host in apache that listens for the domain blog.debserv-*.test, and then forwards you directly to your blog folder. &lt;br /&gt;
# In Webmin under the servers tab, select Apache Webserver. Then on the top, click the Create virtual host button and use the following Configuration:&lt;br /&gt;
&amp;lt;pre&amp;gt;Handle Connections to Address: any address&lt;br /&gt;
Port: 80&lt;br /&gt;
Document Root: /var/www/blog/&lt;br /&gt;
Server Name: blog.debserv-*.test&lt;br /&gt;
Add virtual server to file: new file under virtual servers directory&lt;br /&gt;
Copy directives from: nowhere&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# When done, press Create Now. When you are back at the Apache Webserver page, then click Apply Changes in the top right.&lt;br /&gt;
# Now in a SSH session, open up your favorite command line web browser like w3m and visit blog.debserv-*.test. Notice how you are now visiting the blog directly, instead of your modified index.html file. This is because we setup a virtual host in apache that listens for requests directly from the CNAME we created. &lt;br /&gt;
# Congrats, at this point you have a basic domain working with a MX, CNAME, and A record.&lt;br /&gt;
&lt;br /&gt;
== Adding a AAAA record ==&lt;br /&gt;
# Now we are going to add an AAAA (IPv6 host) record to our domain. To do this, we will first need to make sure that IPv6 networking is setup in our virtual machine.&lt;br /&gt;
# In putty, using your favorite text editor, open up /etc/network/interfaces. We are going to enable IPv6 over DHCP to make sure that IPv6 is running on our VM. Add &amp;quot;iface eth0 inet6 dhcp&amp;quot; to the end if the eth0 configuration to do this. Your interface should now look similar to this:&lt;br /&gt;
&amp;lt;pre&amp;gt;auto eth0&lt;br /&gt;
iface eth0 inet static&lt;br /&gt;
	address 172.17.50.xxx&lt;br /&gt;
	netmask 255.255.255.0&lt;br /&gt;
	gateway 172.17.50.1&lt;br /&gt;
	dns-nameservers xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx&lt;br /&gt;
iface eth0 inet6 dhcp&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Afterwords, restart the eth0 interface by using &amp;quot;ifdown eth0 &amp;amp;&amp;amp; ifup eth0&amp;quot;. Remember that you need to run this command as root otherwise it will not work.&lt;br /&gt;
# Now use ifconfig to find your IPv6 address. Remember this as we will use it in webmin to create our AAAA record.&lt;br /&gt;
# Back in webmin, under servers and BIND DNS Server, select your debserv-*.test domain from the bottom and then click the IPv6 Address button. For the name, enter @ and for the address enter your IPv6 address as well as the subnet prefix. It should look similar to this. 2607:f930:1c00:50:xxxx:xxxx:xxxx:xxxx/64&lt;br /&gt;
# When done press create. Remember to press the apply configuration button in the top right to make these changes applied. Now use nslookup to lookup your domain, and notice how you now have a IPv6 and IPv4 record for your domain.&lt;br /&gt;
# Congratulations, you have not setup a dual-stack DNS server for your debian server.&lt;br /&gt;
&lt;br /&gt;
== Adding a Forwarded Domain ==&lt;br /&gt;
# Now we are going to add another domain to the system, but this domain is a forwarded domain. Luckily we can add this to BIND the same way we added our first domain.&lt;br /&gt;
# So in Webmin, go to Servers, then BIND DNS Server. Then under Existing DNS Zones, Click on Create Master Zone and use the following settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Zone type: Forward (Names to Addresses)&lt;br /&gt;
Domain name / Network: *.itc2480.campus.ihitc.net&lt;br /&gt;
Records file: Automatic&lt;br /&gt;
Master server: Leave as your hostname&lt;br /&gt;
Email address: root@ *.itc2480.campus.ihitc.net&amp;lt;/pre&amp;gt;&lt;br /&gt;
* NOTE: the * stands for your hostname letter, the same as you used for the other domain we created.&lt;br /&gt;
# Now using webmin, create an A record for @ the same way as we did for the last domain. If you need help with this step, you can review the process we did earlier.&lt;br /&gt;
&lt;br /&gt;
== Manually editing a zone file ==&lt;br /&gt;
# Lastly we are going to look at the domain zone file. While webmin provides a nice interface to add records, all it is doing is manually adding our records to our zone file. When you use BIND for DNS, every domain created gets its own record file which is called the zone file. In this file all subdomains and records are stored for said domain.&lt;br /&gt;
# By default, the location for these records will be in /var/lib/bind, so cd into that folder and ls the contents.&lt;br /&gt;
# Now, with your favorite text editor, open up the file. It should look similar to this:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ttl 38400&lt;br /&gt;
debserv-A.test.	IN	SOA	VMHostname. root.debserv-A.test. (&lt;br /&gt;
			1395013947&lt;br /&gt;
			10800&lt;br /&gt;
			3600&lt;br /&gt;
			604800&lt;br /&gt;
			38400 )&lt;br /&gt;
debserv-A.test.	IN	NS	VMHostname.&lt;br /&gt;
debserv-A.test.	IN	A	172.17.50.XXX&lt;br /&gt;
debserv-A.test.	IN	MX	1 172.17.50.XXX&lt;br /&gt;
cname.debserv-A.test.	IN	CNAME	debserv-A.test.&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Notice the formatting for domain records. Each record is defined by the domain or subdomain, IN, then the record type, followed by what the record is pointed to.&lt;br /&gt;
# For this example, we want to change the MX priority from 1 to 10, so change the MX record settings using your text editor.&lt;br /&gt;
# When you are done, restart the bind9 service to reload the changes. We will now use a new command, dig, to lookup the record to make sure the changes were applied correctly.&lt;br /&gt;
* Note: when restarting bind, if you have any errors restarting the service this normally means you have a typo in one of your zone files. If this is the case, go through the file again in a text editor to make sure you did not add anything extra.&lt;br /&gt;
# dig is a very powerful DNS tool that allows you to lookup specific records for DNS domains, as well as many other things such as PTR, or reverse records. For our reasons though, we will use it to lookup the edited MX record. To do this, run &amp;quot;dig MX debserv-*.test&amp;quot;. &lt;br /&gt;
* Note: If you are having issues, add @127.0.0.1 to the end of the dig command to force dig to use the local DNS server.&lt;br /&gt;
# You should see the following response:&lt;br /&gt;
&amp;lt;pre&amp;gt;; &amp;lt;&amp;lt;&amp;gt;&amp;gt; DiG 9.8.4-rpz2+rl005.12-P1 &amp;lt;&amp;lt;&amp;gt;&amp;gt; MX debserv-*.test @127.0.0.1&lt;br /&gt;
;; global options: +cmd&lt;br /&gt;
;; Got answer:&lt;br /&gt;
;; -&amp;gt;&amp;gt;HEADER&amp;lt;&amp;lt;- opcode: QUERY, status: NOERROR, id: 59875&lt;br /&gt;
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0&lt;br /&gt;
&lt;br /&gt;
;; QUESTION SECTION:&lt;br /&gt;
;debserv-*.test.			IN	MX&lt;br /&gt;
&lt;br /&gt;
;; ANSWER SECTION:&lt;br /&gt;
debserv-*.test.		38400	IN	MX	10 172.17.50.XXX.debserv-*.test.&lt;br /&gt;
&lt;br /&gt;
;; AUTHORITY SECTION:&lt;br /&gt;
debserv-*.test.		38400	IN	NS	VMHostname.&lt;br /&gt;
&lt;br /&gt;
;; Query time: 4 msec&lt;br /&gt;
;; SERVER: 127.0.0.1#53(127.0.0.1)&lt;br /&gt;
;; WHEN: Sun Mar 16 20:40:02 2014&lt;br /&gt;
;; MSG SIZE  rcvd: 78&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Notice how the Answer Section shows the MX record is pointed to the IP of the domain, and that the priority is set to 10.&lt;br /&gt;
# Congrats, you have now setup a functional DNS server.&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_9&amp;diff=6418</id>
		<title>Franske ITC-2480 Lab 9</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_9&amp;diff=6418"/>
		<updated>2014-03-18T23:18:06Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: /* Adding an AAAA record */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account.&lt;br /&gt;
# Make sure that webmin is installed on your system. &lt;br /&gt;
== Install BIND &amp;amp; Enable Caching ==&lt;br /&gt;
# First you will need to install bind. Bind is one of the few available DNS server applications for linux. To install it, use your favorite package manager to install bind9.&lt;br /&gt;
# Now we will need to enable DNS caching and forwarding on the bind server. This will allow us to use it for DNS resolving locally, as well as speed up frequent DNS requests. To do this, open up /etc/bind/named.conf.options with your favorite text editor.&lt;br /&gt;
# You are now in the local options file for bind. You will need to uncomment out the following lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;# forwarders {&lt;br /&gt;
#     0.0.0.0;&lt;br /&gt;
# };&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Note that you will need to replace 0.0.0.0 with 172.17.139.10 for outside DNS lookups to function.&lt;br /&gt;
# The reason we setup a forwarder address is so that domain requests that are not on our system are passed to another DNS server instead of being searched against the root nameservers. You may want to do this in domain or enterprise environments as most large networks have internal domain names setup that only redirect inside of a local LAN. By using a forwarder, as long as the DNS server you push requests to is able to access those internal records, you will be able to access local content from internal domain names instead of needing to rely on IP addresses. &lt;br /&gt;
# To apply this change, you will need to restart the Bind DNS serice. to do this run &amp;quot;sudo service bind9 restart&amp;quot;. This will restart the Bind DNS service.&lt;br /&gt;
# Next we will need to change our DNS server set in /etc/network/interfaces so our eth0 interfaces uses our local system for DNS lookups. To do this, open up your interfaces file with your favorite file editor, and change the dns server to 127.0.0.1. Remember to restart your interface eth0 to apply the changes.&lt;br /&gt;
# To test if its working, run the command &amp;quot;nslookup inverhills.edu&amp;quot;. If bind is working, you should now see the following output:&lt;br /&gt;
&amp;lt;pre&amp;gt;Server:		127.0.0.1&lt;br /&gt;
Address:	127.0.0.1#53&lt;br /&gt;
&lt;br /&gt;
Non-authoritative answer:&lt;br /&gt;
Name:	inverhills.edu&lt;br /&gt;
Address: 134.29.183.71&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Notice how it shows it is using 127.0.0.1 as the server. If you do not see this, then your interface file is not set to use the local machine for DNS lookups.&lt;br /&gt;
&lt;br /&gt;
== Create a Domain using Webmin ==&lt;br /&gt;
# Now we are going to use webmin to create a few different type of domain records. We will go over A (Host), AAAA (IPv6 host), MX (Mail Exchange), and CNAME (Canonical Name).&lt;br /&gt;
# Open up your Webmin panel and sign in. Now that we have bind9 installed, you will need to click the Refresh Modules option on the left sidebar to have Webmin recheck the system for installed packages and services.&lt;br /&gt;
# Now under the Servers tab, open up BIND DNS Server. Now under Existing DNS Zones, clock Create master zone. From here we will create a new domain name for our server to host.&lt;br /&gt;
# Now use the following options, where * is your System ID that was defined in [[Franske ITC-2480 Lab 5|Lab 5.]]&lt;br /&gt;
&amp;lt;pre&amp;gt;Zone type: Forward (Names to Addresses)&lt;br /&gt;
Domain name / Network: debserv-*.test&lt;br /&gt;
Records file: Automatic&lt;br /&gt;
Master server: Leave as your hostname&lt;br /&gt;
Email address: root@debserv-*.test&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now click the create button to add our domain. As this point you should now be on the Edit Master Zone page. From here you can add and edit domain record settings.&lt;br /&gt;
# To create our A record which will point your domain to a IP address, click the Address button. For the Name enter @. the @ symbol in DNS Zones defines the parent domain. Now under address, enter your VM&#039;s static IP we set back in [[Franske ITC-2480 Lab 5|Lab 5]] and click Create. Now return back to the main BIND DNS Server page again. When there, click the Apply Configuration option in the top right corner.&lt;br /&gt;
# Now we will test the A record we just created. .use nslookup to lookup the domain you just created, which should be debserv-*.test by entering &amp;quot;nslookup debserv-*.test&amp;quot;&lt;br /&gt;
* Remember, * is used to represent your given letter to use in lab 5. Also, if you have issues looking up the domain, make sure that nslookup is still set to use 127.0.0.1 as the Server. If not, check your /etc/resolv.conf file.&lt;br /&gt;
== Adding additional record types ==&lt;br /&gt;
# Now we are going to add a few more record types to our Domain. This will include a MX (Mail Exchange) and CNAME (Canonical Name) record. &lt;br /&gt;
# We will start with the MX record. MX records are used by email servers to look up where to forward email for a specific domain.&lt;br /&gt;
# So to create a MX record we will use Webmin again. In Webmin on the BIND DNS Server page, click the domain on the bottom named debserv-*.test and then click the Mail Server button. Under name, enter @ again, and for the address enter your VM&#039;s static IP address. Now for Priority, enter 1. The Priority entry allows people to define more than 1 MX record for a domain, and the Priority defines which one should be used before the rest.&lt;br /&gt;
# Now go back to the domain zone overview page. We are now going to create a CNAME record. CNAME records are useful as they allow you to create virtual A records, but point them to a domain name instead of a host. This is most helpful in situations where you have a dynamic IP address on a system that always has a common DNS name.&lt;br /&gt;
# Now on the Edit Master Zone page for your domain, click the Name Alias button. For the Name, enter &amp;quot;blog&amp;quot; and for the Real Name, enter your domain &amp;quot;debserv-*.test.&amp;quot; but remember to put a period at the end of the domain as this is an absolute name. Then press create to add the record.&lt;br /&gt;
# Now press the Apply Configuration option in the top right of the page again. This will apply the records you have created. Now back in putty, run &amp;quot;nslookup blog.debserv-*.test&amp;quot;. You should get a response similar to:&lt;br /&gt;
&amp;lt;pre&amp;gt;Server:		127.0.0.1&lt;br /&gt;
Address:	127.0.0.1#53&lt;br /&gt;
&lt;br /&gt;
blog.debserv-*.test	canonical name = debserv-*.test.&lt;br /&gt;
Name:	debserv-*.test&lt;br /&gt;
Address: 172.17.50.XXX&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now we are going to create a virtual web host in apache that listens for the domain blog.debserv-*.test, and then forwards you directly to your blog folder. &lt;br /&gt;
# In Webmin under the servers tab, select Apache Webserver. Then on the top, click the Create virtual host button and use the following Configuration:&lt;br /&gt;
&amp;lt;pre&amp;gt;Handle Connections to Address: any address&lt;br /&gt;
Port: 80&lt;br /&gt;
Document Root: /var/www/blog/&lt;br /&gt;
Server Name: blog.debserv-*.test&lt;br /&gt;
Add virtual server to file: new file under virtual servers directory&lt;br /&gt;
Copy directives from: nowhere&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# When done, press Create Now. When you are back at the Apache Webserver page, then click Apply Changes in the top right.&lt;br /&gt;
# Now in a SSH session, open up your favorite command line web browser like w3m and visit blog.debserv-*.test. Notice how you are now visiting the blog directly, instead of your modified index.html file. This is because we setup a virtual host in apache that listens for requests directly from the CNAME we created. &lt;br /&gt;
# Congrats, at this point you have a basic domain working with a MX, CNAME, and A record.&lt;br /&gt;
&lt;br /&gt;
== Adding a AAAA record ==&lt;br /&gt;
# Now we are going to add an AAAA (IPv6 host) record to our domain. To do this, we will first need to make sure that IPv6 networking is setup in our virtual machine.&lt;br /&gt;
# In putty, using your favorite text editor, open up /etc/network/interfaces. We are going to enable IPv6 over DHCP to make sure that IPv6 is running on our VM. Add &amp;quot;iface eth0 inet6 dhcp&amp;quot; to the end if the eth0 configuration to do this. Your interface should now look similar to this:&lt;br /&gt;
&amp;lt;pre&amp;gt;auto eth0&lt;br /&gt;
iface eth0 inet static&lt;br /&gt;
	address 172.17.50.xxx&lt;br /&gt;
	netmask 255.255.255.0&lt;br /&gt;
	gateway 172.17.50.1&lt;br /&gt;
	dns-nameservers xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx&lt;br /&gt;
iface eth0 inet6 dhcp&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Afterwords, restart the eth0 interface by using &amp;quot;ifdown eth0 &amp;amp;&amp;amp; ifup eth0&amp;quot;. Remember that you need to run this command as root otherwise it will not work.&lt;br /&gt;
# Now use ifconfig to find your IPv6 address. Remember this as we will use it in webmin to create our AAAA record.&lt;br /&gt;
# Back in webmin, under servers and BIND DNS Server, select your debserv-*.test domain from the bottom and then click the IPv6 Address button. For the name, enter @ and for the address enter your IPv6 address as well as the subnet prefix. It should look similar to this. 2607:f930:1c00:50:xxxx:xxxx:xxxx:xxxx/64&lt;br /&gt;
# When done press create. Remember to press the apply configuration button in the top right to make these changes applied. Now use nslookup to lookup your domain, and notice how you now have a IPv6 and IPv4 record for your domain.&lt;br /&gt;
# Congratulations, you have not setup a dual-stack DNS server for your debian server.&lt;br /&gt;
&lt;br /&gt;
== Adding a Forwarded Domain ==&lt;br /&gt;
&lt;br /&gt;
== Manually editing a zone file ==&lt;br /&gt;
# Lastly we are going to look at the domain zone file. While webmin provides a nice interface to add records, all it is doing is manually adding our records to our zone file. When you use BIND for DNS, every domain created gets its own record file which is called the zone file. In this file all subdomains and records are stored for said domain.&lt;br /&gt;
# By default, the location for these records will be in /var/lib/bind, so cd into that folder and ls the contents.&lt;br /&gt;
# Now, with your favorite text editor, open up the file. It should look similar to this:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ttl 38400&lt;br /&gt;
debserv-A.test.	IN	SOA	VMHostname. root.debserv-A.test. (&lt;br /&gt;
			1395013947&lt;br /&gt;
			10800&lt;br /&gt;
			3600&lt;br /&gt;
			604800&lt;br /&gt;
			38400 )&lt;br /&gt;
debserv-A.test.	IN	NS	VMHostname.&lt;br /&gt;
debserv-A.test.	IN	A	172.17.50.XXX&lt;br /&gt;
debserv-A.test.	IN	MX	1 172.17.50.XXX&lt;br /&gt;
cname.debserv-A.test.	IN	CNAME	debserv-A.test.&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Notice the formatting for domain records. Each record is defined by the domain or subdomain, IN, then the record type, followed by what the record is pointed to.&lt;br /&gt;
# For this example, we want to change the MX priority from 1 to 10, so change the MX record settings using your text editor.&lt;br /&gt;
# When you are done, restart the bind9 service to reload the changes. We will now use a new command, dig, to lookup the record to make sure the changes were applied correctly.&lt;br /&gt;
* Note: when restarting bind, if you have any errors restarting the service this normally means you have a typo in one of your zone files. If this is the case, go through the file again in a text editor to make sure you did not add anything extra.&lt;br /&gt;
# dig is a very powerful DNS tool that allows you to lookup specific records for DNS domains, as well as many other things such as PTR, or reverse records. For our reasons though, we will use it to lookup the edited MX record. To do this, run &amp;quot;dig MX debserv-*.test&amp;quot;. &lt;br /&gt;
* Note: If you are having issues, add @127.0.0.1 to the end of the dig command to force dig to use the local DNS server.&lt;br /&gt;
# You should see the following response:&lt;br /&gt;
&amp;lt;pre&amp;gt;; &amp;lt;&amp;lt;&amp;gt;&amp;gt; DiG 9.8.4-rpz2+rl005.12-P1 &amp;lt;&amp;lt;&amp;gt;&amp;gt; MX debserv-*.test @127.0.0.1&lt;br /&gt;
;; global options: +cmd&lt;br /&gt;
;; Got answer:&lt;br /&gt;
;; -&amp;gt;&amp;gt;HEADER&amp;lt;&amp;lt;- opcode: QUERY, status: NOERROR, id: 59875&lt;br /&gt;
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0&lt;br /&gt;
&lt;br /&gt;
;; QUESTION SECTION:&lt;br /&gt;
;debserv-*.test.			IN	MX&lt;br /&gt;
&lt;br /&gt;
;; ANSWER SECTION:&lt;br /&gt;
debserv-*.test.		38400	IN	MX	10 172.17.50.XXX.debserv-*.test.&lt;br /&gt;
&lt;br /&gt;
;; AUTHORITY SECTION:&lt;br /&gt;
debserv-*.test.		38400	IN	NS	VMHostname.&lt;br /&gt;
&lt;br /&gt;
;; Query time: 4 msec&lt;br /&gt;
;; SERVER: 127.0.0.1#53(127.0.0.1)&lt;br /&gt;
;; WHEN: Sun Mar 16 20:40:02 2014&lt;br /&gt;
;; MSG SIZE  rcvd: 78&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Notice how the Answer Section shows the MX record is pointed to the IP of the domain, and that the priority is set to 10.&lt;br /&gt;
# Congrats, you have now setup a functional DNS server.&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_9&amp;diff=6417</id>
		<title>Franske ITC-2480 Lab 9</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_9&amp;diff=6417"/>
		<updated>2014-03-18T23:16:15Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: /* Adding an AAAA record */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account.&lt;br /&gt;
# Make sure that webmin is installed on your system. &lt;br /&gt;
== Install BIND &amp;amp; Enable Caching ==&lt;br /&gt;
# First you will need to install bind. Bind is one of the few available DNS server applications for linux. To install it, use your favorite package manager to install bind9.&lt;br /&gt;
# Now we will need to enable DNS caching and forwarding on the bind server. This will allow us to use it for DNS resolving locally, as well as speed up frequent DNS requests. To do this, open up /etc/bind/named.conf.options with your favorite text editor.&lt;br /&gt;
# You are now in the local options file for bind. You will need to uncomment out the following lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;# forwarders {&lt;br /&gt;
#     0.0.0.0;&lt;br /&gt;
# };&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Note that you will need to replace 0.0.0.0 with 172.17.139.10 for outside DNS lookups to function.&lt;br /&gt;
# The reason we setup a forwarder address is so that domain requests that are not on our system are passed to another DNS server instead of being searched against the root nameservers. You may want to do this in domain or enterprise environments as most large networks have internal domain names setup that only redirect inside of a local LAN. By using a forwarder, as long as the DNS server you push requests to is able to access those internal records, you will be able to access local content from internal domain names instead of needing to rely on IP addresses. &lt;br /&gt;
# To apply this change, you will need to restart the Bind DNS serice. to do this run &amp;quot;sudo service bind9 restart&amp;quot;. This will restart the Bind DNS service.&lt;br /&gt;
# Next we will need to change our DNS server set in /etc/network/interfaces so our eth0 interfaces uses our local system for DNS lookups. To do this, open up your interfaces file with your favorite file editor, and change the dns server to 127.0.0.1. Remember to restart your interface eth0 to apply the changes.&lt;br /&gt;
# To test if its working, run the command &amp;quot;nslookup inverhills.edu&amp;quot;. If bind is working, you should now see the following output:&lt;br /&gt;
&amp;lt;pre&amp;gt;Server:		127.0.0.1&lt;br /&gt;
Address:	127.0.0.1#53&lt;br /&gt;
&lt;br /&gt;
Non-authoritative answer:&lt;br /&gt;
Name:	inverhills.edu&lt;br /&gt;
Address: 134.29.183.71&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Notice how it shows it is using 127.0.0.1 as the server. If you do not see this, then your interface file is not set to use the local machine for DNS lookups.&lt;br /&gt;
&lt;br /&gt;
== Create a Domain using Webmin ==&lt;br /&gt;
# Now we are going to use webmin to create a few different type of domain records. We will go over A (Host), AAAA (IPv6 host), MX (Mail Exchange), and CNAME (Canonical Name).&lt;br /&gt;
# Open up your Webmin panel and sign in. Now that we have bind9 installed, you will need to click the Refresh Modules option on the left sidebar to have Webmin recheck the system for installed packages and services.&lt;br /&gt;
# Now under the Servers tab, open up BIND DNS Server. Now under Existing DNS Zones, clock Create master zone. From here we will create a new domain name for our server to host.&lt;br /&gt;
# Now use the following options, where * is your System ID that was defined in [[Franske ITC-2480 Lab 5|Lab 5.]]&lt;br /&gt;
&amp;lt;pre&amp;gt;Zone type: Forward (Names to Addresses)&lt;br /&gt;
Domain name / Network: debserv-*.test&lt;br /&gt;
Records file: Automatic&lt;br /&gt;
Master server: Leave as your hostname&lt;br /&gt;
Email address: root@debserv-*.test&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now click the create button to add our domain. As this point you should now be on the Edit Master Zone page. From here you can add and edit domain record settings.&lt;br /&gt;
# To create our A record which will point your domain to a IP address, click the Address button. For the Name enter @. the @ symbol in DNS Zones defines the parent domain. Now under address, enter your VM&#039;s static IP we set back in [[Franske ITC-2480 Lab 5|Lab 5]] and click Create. Now return back to the main BIND DNS Server page again. When there, click the Apply Configuration option in the top right corner.&lt;br /&gt;
# Now we will test the A record we just created. .use nslookup to lookup the domain you just created, which should be debserv-*.test by entering &amp;quot;nslookup debserv-*.test&amp;quot;&lt;br /&gt;
* Remember, * is used to represent your given letter to use in lab 5. Also, if you have issues looking up the domain, make sure that nslookup is still set to use 127.0.0.1 as the Server. If not, check your /etc/resolv.conf file.&lt;br /&gt;
== Adding additional record types ==&lt;br /&gt;
# Now we are going to add a few more record types to our Domain. This will include a MX (Mail Exchange) and CNAME (Canonical Name) record. &lt;br /&gt;
# We will start with the MX record. MX records are used by email servers to look up where to forward email for a specific domain.&lt;br /&gt;
# So to create a MX record we will use Webmin again. In Webmin on the BIND DNS Server page, click the domain on the bottom named debserv-*.test and then click the Mail Server button. Under name, enter @ again, and for the address enter your VM&#039;s static IP address. Now for Priority, enter 1. The Priority entry allows people to define more than 1 MX record for a domain, and the Priority defines which one should be used before the rest.&lt;br /&gt;
# Now go back to the domain zone overview page. We are now going to create a CNAME record. CNAME records are useful as they allow you to create virtual A records, but point them to a domain name instead of a host. This is most helpful in situations where you have a dynamic IP address on a system that always has a common DNS name.&lt;br /&gt;
# Now on the Edit Master Zone page for your domain, click the Name Alias button. For the Name, enter &amp;quot;blog&amp;quot; and for the Real Name, enter your domain &amp;quot;debserv-*.test.&amp;quot; but remember to put a period at the end of the domain as this is an absolute name. Then press create to add the record.&lt;br /&gt;
# Now press the Apply Configuration option in the top right of the page again. This will apply the records you have created. Now back in putty, run &amp;quot;nslookup blog.debserv-*.test&amp;quot;. You should get a response similar to:&lt;br /&gt;
&amp;lt;pre&amp;gt;Server:		127.0.0.1&lt;br /&gt;
Address:	127.0.0.1#53&lt;br /&gt;
&lt;br /&gt;
blog.debserv-*.test	canonical name = debserv-*.test.&lt;br /&gt;
Name:	debserv-*.test&lt;br /&gt;
Address: 172.17.50.XXX&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now we are going to create a virtual web host in apache that listens for the domain blog.debserv-*.test, and then forwards you directly to your blog folder. &lt;br /&gt;
# In Webmin under the servers tab, select Apache Webserver. Then on the top, click the Create virtual host button and use the following Configuration:&lt;br /&gt;
&amp;lt;pre&amp;gt;Handle Connections to Address: any address&lt;br /&gt;
Port: 80&lt;br /&gt;
Document Root: /var/www/blog/&lt;br /&gt;
Server Name: blog.debserv-*.test&lt;br /&gt;
Add virtual server to file: new file under virtual servers directory&lt;br /&gt;
Copy directives from: nowhere&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# When done, press Create Now. When you are back at the Apache Webserver page, then click Apply Changes in the top right.&lt;br /&gt;
# Now in a SSH session, open up your favorite command line web browser like w3m and visit blog.debserv-*.test. Notice how you are now visiting the blog directly, instead of your modified index.html file. This is because we setup a virtual host in apache that listens for requests directly from the CNAME we created. &lt;br /&gt;
# Congrats, at this point you have a basic domain working with a MX, CNAME, and A record.&lt;br /&gt;
&lt;br /&gt;
== Adding an AAAA record ==&lt;br /&gt;
# Now we are going to add an AAAA (IPv6 host) record to our domain. To do this, we will first need to make sure that IPv6 networking is setup in our virtual machine.&lt;br /&gt;
# In putty, using your favorite text editor, open up /etc/network/interfaces. We are going to enable IPv6 over DHCP to make sure that IPv6 is running on our VM. Add &amp;quot;iface eth0 inet6 dhcp&amp;quot; to the end if the eth0 configuration to do this. Your interface should now look similar to this:&lt;br /&gt;
&amp;lt;pre&amp;gt;auto eth0&lt;br /&gt;
iface eth0 inet static&lt;br /&gt;
	address 172.17.50.xxx&lt;br /&gt;
	netmask 255.255.255.0&lt;br /&gt;
	gateway 172.17.50.1&lt;br /&gt;
	dns-nameservers xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx&lt;br /&gt;
iface eth0 inet6 dhcp&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Afterwords, restart the eth0 interface by using &amp;quot;ifdown eth0 &amp;amp;&amp;amp; ifup eth0&amp;quot;. Remember that you need to run this command as root otherwise it will not work.&lt;br /&gt;
# Now use ifconfig to find your IPv6 address. Remember this as we will use it in webmin to create our AAAA record.&lt;br /&gt;
# Back in webmin, under servers and BIND DNS Server, select your debserv-*.test domain from the bottom and then click the IPv6 Address button. For the name, enter @ and for the address enter your IPv6 address as well as the subnet prefix. It should look similar to this. 2607:f930:1c00:50:xxxx:xxxx:xxxx:xxxx/64&lt;br /&gt;
# When done press create. Remember to press the apply configuration button in the top right to make these changes applied. Now use nslookup to lookup your domain, and notice how you now have a IPv6 and IPv4 record for your domain.&lt;br /&gt;
# Congratulations, you have not setup a dual-stack DNS server for your debian server.&lt;br /&gt;
&lt;br /&gt;
== Adding a Forwarded Domain ==&lt;br /&gt;
&lt;br /&gt;
== Manually editing a zone file ==&lt;br /&gt;
# Lastly we are going to look at the domain zone file. While webmin provides a nice interface to add records, all it is doing is manually adding our records to our zone file. When you use BIND for DNS, every domain created gets its own record file which is called the zone file. In this file all subdomains and records are stored for said domain.&lt;br /&gt;
# By default, the location for these records will be in /var/lib/bind, so cd into that folder and ls the contents.&lt;br /&gt;
# Now, with your favorite text editor, open up the file. It should look similar to this:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ttl 38400&lt;br /&gt;
debserv-A.test.	IN	SOA	VMHostname. root.debserv-A.test. (&lt;br /&gt;
			1395013947&lt;br /&gt;
			10800&lt;br /&gt;
			3600&lt;br /&gt;
			604800&lt;br /&gt;
			38400 )&lt;br /&gt;
debserv-A.test.	IN	NS	VMHostname.&lt;br /&gt;
debserv-A.test.	IN	A	172.17.50.XXX&lt;br /&gt;
debserv-A.test.	IN	MX	1 172.17.50.XXX&lt;br /&gt;
cname.debserv-A.test.	IN	CNAME	debserv-A.test.&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Notice the formatting for domain records. Each record is defined by the domain or subdomain, IN, then the record type, followed by what the record is pointed to.&lt;br /&gt;
# For this example, we want to change the MX priority from 1 to 10, so change the MX record settings using your text editor.&lt;br /&gt;
# When you are done, restart the bind9 service to reload the changes. We will now use a new command, dig, to lookup the record to make sure the changes were applied correctly.&lt;br /&gt;
* Note: when restarting bind, if you have any errors restarting the service this normally means you have a typo in one of your zone files. If this is the case, go through the file again in a text editor to make sure you did not add anything extra.&lt;br /&gt;
# dig is a very powerful DNS tool that allows you to lookup specific records for DNS domains, as well as many other things such as PTR, or reverse records. For our reasons though, we will use it to lookup the edited MX record. To do this, run &amp;quot;dig MX debserv-*.test&amp;quot;. &lt;br /&gt;
* Note: If you are having issues, add @127.0.0.1 to the end of the dig command to force dig to use the local DNS server.&lt;br /&gt;
# You should see the following response:&lt;br /&gt;
&amp;lt;pre&amp;gt;; &amp;lt;&amp;lt;&amp;gt;&amp;gt; DiG 9.8.4-rpz2+rl005.12-P1 &amp;lt;&amp;lt;&amp;gt;&amp;gt; MX debserv-*.test @127.0.0.1&lt;br /&gt;
;; global options: +cmd&lt;br /&gt;
;; Got answer:&lt;br /&gt;
;; -&amp;gt;&amp;gt;HEADER&amp;lt;&amp;lt;- opcode: QUERY, status: NOERROR, id: 59875&lt;br /&gt;
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0&lt;br /&gt;
&lt;br /&gt;
;; QUESTION SECTION:&lt;br /&gt;
;debserv-*.test.			IN	MX&lt;br /&gt;
&lt;br /&gt;
;; ANSWER SECTION:&lt;br /&gt;
debserv-*.test.		38400	IN	MX	10 172.17.50.XXX.debserv-*.test.&lt;br /&gt;
&lt;br /&gt;
;; AUTHORITY SECTION:&lt;br /&gt;
debserv-*.test.		38400	IN	NS	VMHostname.&lt;br /&gt;
&lt;br /&gt;
;; Query time: 4 msec&lt;br /&gt;
;; SERVER: 127.0.0.1#53(127.0.0.1)&lt;br /&gt;
;; WHEN: Sun Mar 16 20:40:02 2014&lt;br /&gt;
;; MSG SIZE  rcvd: 78&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Notice how the Answer Section shows the MX record is pointed to the IP of the domain, and that the priority is set to 10.&lt;br /&gt;
# Congrats, you have now setup a functional DNS server.&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_9&amp;diff=6416</id>
		<title>Franske ITC-2480 Lab 9</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_9&amp;diff=6416"/>
		<updated>2014-03-18T22:22:38Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account.&lt;br /&gt;
# Make sure that webmin is installed on your system. &lt;br /&gt;
== Install BIND &amp;amp; Enable Caching ==&lt;br /&gt;
# First you will need to install bind. Bind is one of the few available DNS server applications for linux. To install it, use your favorite package manager to install bind9.&lt;br /&gt;
# Now we will need to enable DNS caching and forwarding on the bind server. This will allow us to use it for DNS resolving locally, as well as speed up frequent DNS requests. To do this, open up /etc/bind/named.conf.options with your favorite text editor.&lt;br /&gt;
# You are now in the local options file for bind. You will need to uncomment out the following lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;# forwarders {&lt;br /&gt;
#     0.0.0.0;&lt;br /&gt;
# };&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Note that you will need to replace 0.0.0.0 with 172.17.139.10 for outside DNS lookups to function.&lt;br /&gt;
# The reason we setup a forwarder address is so that domain requests that are not on our system are passed to another DNS server instead of being searched against the root nameservers. You may want to do this in domain or enterprise environments as most large networks have internal domain names setup that only redirect inside of a local LAN. By using a forwarder, as long as the DNS server you push requests to is able to access those internal records, you will be able to access local content from internal domain names instead of needing to rely on IP addresses. &lt;br /&gt;
# To apply this change, you will need to restart the Bind DNS serice. to do this run &amp;quot;sudo service bind9 restart&amp;quot;. This will restart the Bind DNS service.&lt;br /&gt;
# Next we will need to change our DNS server set in /etc/network/interfaces so our eth0 interfaces uses our local system for DNS lookups. To do this, open up your interfaces file with your favorite file editor, and change the dns server to 127.0.0.1. Remember to restart your interface eth0 to apply the changes.&lt;br /&gt;
# To test if its working, run the command &amp;quot;nslookup inverhills.edu&amp;quot;. If bind is working, you should now see the following output:&lt;br /&gt;
&amp;lt;pre&amp;gt;Server:		127.0.0.1&lt;br /&gt;
Address:	127.0.0.1#53&lt;br /&gt;
&lt;br /&gt;
Non-authoritative answer:&lt;br /&gt;
Name:	inverhills.edu&lt;br /&gt;
Address: 134.29.183.71&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Notice how it shows it is using 127.0.0.1 as the server. If you do not see this, then your interface file is not set to use the local machine for DNS lookups.&lt;br /&gt;
&lt;br /&gt;
== Create a Domain using Webmin ==&lt;br /&gt;
# Now we are going to use webmin to create a few different type of domain records. We will go over A (Host), AAAA (IPv6 host), MX (Mail Exchange), and CNAME (Canonical Name).&lt;br /&gt;
# Open up your Webmin panel and sign in. Now that we have bind9 installed, you will need to click the Refresh Modules option on the left sidebar to have Webmin recheck the system for installed packages and services.&lt;br /&gt;
# Now under the Servers tab, open up BIND DNS Server. Now under Existing DNS Zones, clock Create master zone. From here we will create a new domain name for our server to host.&lt;br /&gt;
# Now use the following options, where * is your System ID that was defined in [[Franske ITC-2480 Lab 5|Lab 5.]]&lt;br /&gt;
&amp;lt;pre&amp;gt;Zone type: Forward (Names to Addresses)&lt;br /&gt;
Domain name / Network: debserv-*.test&lt;br /&gt;
Records file: Automatic&lt;br /&gt;
Master server: Leave as your hostname&lt;br /&gt;
Email address: root@debserv-*.test&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now click the create button to add our domain. As this point you should now be on the Edit Master Zone page. From here you can add and edit domain record settings.&lt;br /&gt;
# To create our A record which will point your domain to a IP address, click the Address button. For the Name enter @. the @ symbol in DNS Zones defines the parent domain. Now under address, enter your VM&#039;s static IP we set back in [[Franske ITC-2480 Lab 5|Lab 5]] and click Create. Now return back to the main BIND DNS Server page again. When there, click the Apply Configuration option in the top right corner.&lt;br /&gt;
# Now we will test the A record we just created. .use nslookup to lookup the domain you just created, which should be debserv-*.test by entering &amp;quot;nslookup debserv-*.test&amp;quot;&lt;br /&gt;
* Remember, * is used to represent your given letter to use in lab 5. Also, if you have issues looking up the domain, make sure that nslookup is still set to use 127.0.0.1 as the Server. If not, check your /etc/resolv.conf file.&lt;br /&gt;
== Adding additional record types ==&lt;br /&gt;
# Now we are going to add a few more record types to our Domain. This will include a MX (Mail Exchange) and CNAME (Canonical Name) record. &lt;br /&gt;
# We will start with the MX record. MX records are used by email servers to look up where to forward email for a specific domain.&lt;br /&gt;
# So to create a MX record we will use Webmin again. In Webmin on the BIND DNS Server page, click the domain on the bottom named debserv-*.test and then click the Mail Server button. Under name, enter @ again, and for the address enter your VM&#039;s static IP address. Now for Priority, enter 1. The Priority entry allows people to define more than 1 MX record for a domain, and the Priority defines which one should be used before the rest.&lt;br /&gt;
# Now go back to the domain zone overview page. We are now going to create a CNAME record. CNAME records are useful as they allow you to create virtual A records, but point them to a domain name instead of a host. This is most helpful in situations where you have a dynamic IP address on a system that always has a common DNS name.&lt;br /&gt;
# Now on the Edit Master Zone page for your domain, click the Name Alias button. For the Name, enter &amp;quot;blog&amp;quot; and for the Real Name, enter your domain &amp;quot;debserv-*.test.&amp;quot; but remember to put a period at the end of the domain as this is an absolute name. Then press create to add the record.&lt;br /&gt;
# Now press the Apply Configuration option in the top right of the page again. This will apply the records you have created. Now back in putty, run &amp;quot;nslookup blog.debserv-*.test&amp;quot;. You should get a response similar to:&lt;br /&gt;
&amp;lt;pre&amp;gt;Server:		127.0.0.1&lt;br /&gt;
Address:	127.0.0.1#53&lt;br /&gt;
&lt;br /&gt;
blog.debserv-*.test	canonical name = debserv-*.test.&lt;br /&gt;
Name:	debserv-*.test&lt;br /&gt;
Address: 172.17.50.XXX&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now we are going to create a virtual web host in apache that listens for the domain blog.debserv-*.test, and then forwards you directly to your blog folder. &lt;br /&gt;
# In Webmin under the servers tab, select Apache Webserver. Then on the top, click the Create virtual host button and use the following Configuration:&lt;br /&gt;
&amp;lt;pre&amp;gt;Handle Connections to Address: any address&lt;br /&gt;
Port: 80&lt;br /&gt;
Document Root: /var/www/blog/&lt;br /&gt;
Server Name: blog.debserv-*.test&lt;br /&gt;
Add virtual server to file: new file under virtual servers directory&lt;br /&gt;
Copy directives from: nowhere&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# When done, press Create Now. When you are back at the Apache Webserver page, then click Apply Changes in the top right.&lt;br /&gt;
# Now in a SSH session, open up your favorite command line web browser like w3m and visit blog.debserv-*.test. Notice how you are now visiting the blog directly, instead of your modified index.html file. This is because we setup a virtual host in apache that listens for requests directly from the CNAME we created. &lt;br /&gt;
# Congrats, at this point you have a basic domain working with a MX, CNAME, and A record.&lt;br /&gt;
&lt;br /&gt;
== Adding an AAAA record ==&lt;br /&gt;
# Now we are going to add an AAAA (IPv6 host) record to our domain. To do this, we will first need to make sure that IPv6 networking is setup in our virtual machine.&lt;br /&gt;
&lt;br /&gt;
== Adding a Forwarded Domain ==&lt;br /&gt;
&lt;br /&gt;
== Manually editing a zone file ==&lt;br /&gt;
# Lastly we are going to look at the domain zone file. While webmin provides a nice interface to add records, all it is doing is manually adding our records to our zone file. When you use BIND for DNS, every domain created gets its own record file which is called the zone file. In this file all subdomains and records are stored for said domain.&lt;br /&gt;
# By default, the location for these records will be in /var/lib/bind, so cd into that folder and ls the contents.&lt;br /&gt;
# Now, with your favorite text editor, open up the file. It should look similar to this:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ttl 38400&lt;br /&gt;
debserv-A.test.	IN	SOA	VMHostname. root.debserv-A.test. (&lt;br /&gt;
			1395013947&lt;br /&gt;
			10800&lt;br /&gt;
			3600&lt;br /&gt;
			604800&lt;br /&gt;
			38400 )&lt;br /&gt;
debserv-A.test.	IN	NS	VMHostname.&lt;br /&gt;
debserv-A.test.	IN	A	172.17.50.XXX&lt;br /&gt;
debserv-A.test.	IN	MX	1 172.17.50.XXX&lt;br /&gt;
cname.debserv-A.test.	IN	CNAME	debserv-A.test.&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Notice the formatting for domain records. Each record is defined by the domain or subdomain, IN, then the record type, followed by what the record is pointed to.&lt;br /&gt;
# For this example, we want to change the MX priority from 1 to 10, so change the MX record settings using your text editor.&lt;br /&gt;
# When you are done, restart the bind9 service to reload the changes. We will now use a new command, dig, to lookup the record to make sure the changes were applied correctly.&lt;br /&gt;
* Note: when restarting bind, if you have any errors restarting the service this normally means you have a typo in one of your zone files. If this is the case, go through the file again in a text editor to make sure you did not add anything extra.&lt;br /&gt;
# dig is a very powerful DNS tool that allows you to lookup specific records for DNS domains, as well as many other things such as PTR, or reverse records. For our reasons though, we will use it to lookup the edited MX record. To do this, run &amp;quot;dig MX debserv-*.test&amp;quot;. &lt;br /&gt;
* Note: If you are having issues, add @127.0.0.1 to the end of the dig command to force dig to use the local DNS server.&lt;br /&gt;
# You should see the following response:&lt;br /&gt;
&amp;lt;pre&amp;gt;; &amp;lt;&amp;lt;&amp;gt;&amp;gt; DiG 9.8.4-rpz2+rl005.12-P1 &amp;lt;&amp;lt;&amp;gt;&amp;gt; MX debserv-*.test @127.0.0.1&lt;br /&gt;
;; global options: +cmd&lt;br /&gt;
;; Got answer:&lt;br /&gt;
;; -&amp;gt;&amp;gt;HEADER&amp;lt;&amp;lt;- opcode: QUERY, status: NOERROR, id: 59875&lt;br /&gt;
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0&lt;br /&gt;
&lt;br /&gt;
;; QUESTION SECTION:&lt;br /&gt;
;debserv-*.test.			IN	MX&lt;br /&gt;
&lt;br /&gt;
;; ANSWER SECTION:&lt;br /&gt;
debserv-*.test.		38400	IN	MX	10 172.17.50.XXX.debserv-*.test.&lt;br /&gt;
&lt;br /&gt;
;; AUTHORITY SECTION:&lt;br /&gt;
debserv-*.test.		38400	IN	NS	VMHostname.&lt;br /&gt;
&lt;br /&gt;
;; Query time: 4 msec&lt;br /&gt;
;; SERVER: 127.0.0.1#53(127.0.0.1)&lt;br /&gt;
;; WHEN: Sun Mar 16 20:40:02 2014&lt;br /&gt;
;; MSG SIZE  rcvd: 78&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Notice how the Answer Section shows the MX record is pointed to the IP of the domain, and that the priority is set to 10.&lt;br /&gt;
# Congrats, you have now setup a functional DNS server.&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_9&amp;diff=6388</id>
		<title>Franske ITC-2480 Lab 9</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_9&amp;diff=6388"/>
		<updated>2014-03-17T12:37:44Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account.&lt;br /&gt;
# Make sure that webmin is installed on your system. &lt;br /&gt;
== Install BIND &amp;amp; Enable Caching ==&lt;br /&gt;
# First you will need to install bind. Bind is one of the few available DNS server applications for linux. To install it, use your favorite package manager to install bind9.&lt;br /&gt;
# Now we will need to enable DNS caching and forwarding on the bind server. This will allow us to use it for DNS resolving locally, as well as speed up frequent DNS requests. To do this, open up /etc/bind/named.conf.options with your favorite text editor.&lt;br /&gt;
# You are now in the local options file for bind. You will need to uncomment out the following lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;# forwarders {&lt;br /&gt;
#     0.0.0.0;&lt;br /&gt;
# };&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Note that you will need to replace 0.0.0.0 with 172.17.139.10 for outside DNS lookups to function.&lt;br /&gt;
# The reason we setup a forwarder address is so that domain requests that are not on our system are passed to another DNS server instead of being searched against the root nameservers. You may want to do this in domain or enterprise environments as most large networks have internal domain names setup that only redirect inside of a local LAN. By using a forwarder, as long as the DNS server you push requests to is able to access those internal records, you will be able to access local content from internal domain names instead of needing to rely on IP addresses. &lt;br /&gt;
# To apply this change, you will need to restart the Bind DNS serice. to do this run &amp;quot;sudo service bind9 restart&amp;quot;. This will restart the Bind DNS service.&lt;br /&gt;
# Next we will need to change our DNS server set in /etc/network/interfaces so our eth0 interfaces uses our local system for DNS lookups. To do this, open up your interfaces file with your favorite file editor, and change the dns server to 127.0.0.1. Remember to restart your interface eth0 to apply the changes.&lt;br /&gt;
# To test if its working, run the command &amp;quot;nslookup inverhills.edu&amp;quot;. If bind is working, you should now see the following output:&lt;br /&gt;
&amp;lt;pre&amp;gt;Server:		127.0.0.1&lt;br /&gt;
Address:	127.0.0.1#53&lt;br /&gt;
&lt;br /&gt;
Non-authoritative answer:&lt;br /&gt;
Name:	inverhills.edu&lt;br /&gt;
Address: 134.29.183.71&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Notice how it shows it is using 127.0.0.1 as the server. If you do not see this, then your interface file is not set to use the local machine for DNS lookups.&lt;br /&gt;
&lt;br /&gt;
== Create a Domain using Webmin ==&lt;br /&gt;
# Now we are going to use webmin to create a few different type of domain records. We will go over A (Host), AAAA (IPv6 host), MX (Mail Exchange), and CNAME (Canonical Name).&lt;br /&gt;
# Open up your Webmin panel and sign in. Now that we have bind9 installed, you will need to click the Refresh Modules option on the left sidebar to have Webmin recheck the system for installed packages and services.&lt;br /&gt;
# Now under the Servers tab, open up BIND DNS Server. Now under Existing DNS Zones, clock Create master zone. From here we will create a new domain name for our server to host.&lt;br /&gt;
# Now use the following options, where * is your System ID that was defined in [[Franske ITC-2480 Lab 5|Lab 5.]]&lt;br /&gt;
&amp;lt;pre&amp;gt;Zone type: Forward (Names to Addresses)&lt;br /&gt;
Domain name / Network: debserv-*.test&lt;br /&gt;
Records file: Automatic&lt;br /&gt;
Master server: Leave as your hostname&lt;br /&gt;
Email address: root@debserv-*.test&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now click the create button to add our domain. As this point you should now be on the Edit Master Zone page. From here you can add and edit domain record settings.&lt;br /&gt;
# To create our A record which will point your domain to a IP address, click the Address button. For the Name enter @. the @ symbol in DNS Zones defines the parent domain. Now under address, enter your VM&#039;s static IP we set back in [[Franske ITC-2480 Lab 5|Lab 5]] and click Create. Now return back to the main BIND DNS Server page again. When there, click the Apply Configuration option in the top right corner.&lt;br /&gt;
# Now we will test the A record we just created. .use nslookup to lookup the domain you just created, which should be debserv-*.test by entering &amp;quot;nslookup debserv-*.test&amp;quot;&lt;br /&gt;
* Remember, * is used to represent your given letter to use in lab 5. Also, if you have issues looking up the domain, make sure that nslookup is still set to use 127.0.0.1 as the Server. If not, check your /etc/resolv.conf file.&lt;br /&gt;
== Adding additional record types ==&lt;br /&gt;
# Now we are going to add a few more record types to our Domain. This will include a MX (Mail Exchange) and CNAME (Canonical Name) record. &lt;br /&gt;
# We will start with the MX record. MX records are used by email servers to look up where to forward email for a specific domain.&lt;br /&gt;
# So to create a MX record we will use Webmin again. In Webmin on the BIND DNS Server page, click the domain on the bottom named debserv-*.test and then click the Mail Server button. Under name, enter @ again, and for the address enter your VM&#039;s static IP address. Now for Priority, enter 1. The Priority entry allows people to define more than 1 MX record for a domain, and the Priority defines which one should be used before the rest.&lt;br /&gt;
# Now go back to the domain zone overview page. We are now going to create a CNAME record. CNAME records are useful as they allow you to create virtual A records, but point them to a domain name instead of a host. This is most helpful in situations where you have a dynamic IP address on a system that always has a common DNS name.&lt;br /&gt;
# Now on the Edit Master Zone page for your domain, click the Name Alias button. For the Name, enter &amp;quot;cname&amp;quot; and for the Real Name, enter your domain &amp;quot;debserv-*.test.&amp;quot; but remember to put a period at the end of the domain as this is an absolute name. Then press create to add the record.&lt;br /&gt;
# Now press the Apply Configuration option in the top right of the page again. This will apply the records you have created. Now back in putty, run &amp;quot;nslookup cname.debserv-*.test&amp;quot;. You should get a response similar to:&lt;br /&gt;
&amp;lt;pre&amp;gt;Server:		127.0.0.1&lt;br /&gt;
Address:	127.0.0.1#53&lt;br /&gt;
&lt;br /&gt;
cname.debserv-*.test	canonical name = debserv-*.test.&lt;br /&gt;
Name:	debserv-*.test&lt;br /&gt;
Address: 172.17.50.XXX&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Congrats, at this point you have a basic domain working with a MX, CNAME, and A record.&lt;br /&gt;
== Manually editing a zone file ==&lt;br /&gt;
# Lastly we are going to look at the domain zone file. While webmin provides a nice interface to add records, all it is doing is manually adding our records to our zone file. When you use BIND for DNS, every domain created gets its own record file which is called the zone file. In this file all subdomains and records are stored for said domain.&lt;br /&gt;
# By default, the location for these records will be in /var/lib/bind, so cd into that folder and ls the contents.&lt;br /&gt;
# Now, with your favorite text editor, open up the file. It should look similar to this:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ttl 38400&lt;br /&gt;
debserv-A.test.	IN	SOA	VMHostname. root.debserv-A.test. (&lt;br /&gt;
			1395013947&lt;br /&gt;
			10800&lt;br /&gt;
			3600&lt;br /&gt;
			604800&lt;br /&gt;
			38400 )&lt;br /&gt;
debserv-A.test.	IN	NS	VMHostname.&lt;br /&gt;
debserv-A.test.	IN	A	172.17.50.XXX&lt;br /&gt;
debserv-A.test.	IN	MX	1 172.17.50.XXX&lt;br /&gt;
cname.debserv-A.test.	IN	CNAME	debserv-A.test.&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Notice the formatting for domain records. Each record is defined by the domain or subdomain, IN, then the record type, followed by what the record is pointed to.&lt;br /&gt;
# For this example, we want to change the MX priority from 1 to 10, so change the MX record settings using your text editor.&lt;br /&gt;
# When you are done, restart the bind9 service to reload the changes. We will now use a new command, dig, to lookup the record to make sure the changes were applied correctly.&lt;br /&gt;
* Note: when restarting bind, if you have any errors restarting the service this normally means you have a typo in one of your zone files. If this is the case, go through the file again in a text editor to make sure you did not add anything extra.&lt;br /&gt;
# dig is a very powerful DNS tool that allows you to lookup specific records for DNS domains, as well as many other things such as PTR, or reverse records. For our reasons though, we will use it to lookup the edited MX record. To do this, run &amp;quot;dig MX debserv-*.test&amp;quot;. &lt;br /&gt;
* Note: If you are having issues, add @127.0.0.1 to the end of the dig command to force dig to use the local DNS server.&lt;br /&gt;
# You should see the following response:&lt;br /&gt;
&amp;lt;pre&amp;gt;; &amp;lt;&amp;lt;&amp;gt;&amp;gt; DiG 9.8.4-rpz2+rl005.12-P1 &amp;lt;&amp;lt;&amp;gt;&amp;gt; MX debserv-*.test @127.0.0.1&lt;br /&gt;
;; global options: +cmd&lt;br /&gt;
;; Got answer:&lt;br /&gt;
;; -&amp;gt;&amp;gt;HEADER&amp;lt;&amp;lt;- opcode: QUERY, status: NOERROR, id: 59875&lt;br /&gt;
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0&lt;br /&gt;
&lt;br /&gt;
;; QUESTION SECTION:&lt;br /&gt;
;debserv-*.test.			IN	MX&lt;br /&gt;
&lt;br /&gt;
;; ANSWER SECTION:&lt;br /&gt;
debserv-*.test.		38400	IN	MX	10 172.17.50.XXX.debserv-*.test.&lt;br /&gt;
&lt;br /&gt;
;; AUTHORITY SECTION:&lt;br /&gt;
debserv-*.test.		38400	IN	NS	VMHostname.&lt;br /&gt;
&lt;br /&gt;
;; Query time: 4 msec&lt;br /&gt;
;; SERVER: 127.0.0.1#53(127.0.0.1)&lt;br /&gt;
;; WHEN: Sun Mar 16 20:40:02 2014&lt;br /&gt;
;; MSG SIZE  rcvd: 78&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Notice how the Answer Section shows the MX record is pointed to the IP of the domain, and that the priority is set to 10.&lt;br /&gt;
# Congrats, you have now setup a functional DNS server.&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_9&amp;diff=6387</id>
		<title>Franske ITC-2480 Lab 9</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_9&amp;diff=6387"/>
		<updated>2014-03-17T01:45:16Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: /* Install BIND &amp;amp; Enable Caching */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account.&lt;br /&gt;
# Make sure that webmin is installed on your system. &lt;br /&gt;
== Install BIND &amp;amp; Enable Caching ==&lt;br /&gt;
# First you will need to install bind. Bind is one of the few available DNS server applications for linux. To install it, use your favorite package manager to install bind9.&lt;br /&gt;
# Now we will need to enable DNS caching and forwarding on the bind server. This will allow us to use it for DNS resolving locally, as well as speed up frequent DNS requests. To do this, open up /etc/bind/named.conf.options with your favorite text editor.&lt;br /&gt;
# You are now in the local options file for bind. You will need to uncomment out the following lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;# forwarders {&lt;br /&gt;
#     0.0.0.0;&lt;br /&gt;
# };&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Note that you will need to replace 0.0.0.0 with XXX.XXX.XXX.XXX for outside DNS lookups to function.&lt;br /&gt;
# To apply this change, you will need to restart the Bind DNS serice. to do this run &amp;quot;sudo service bind9 restart&amp;quot;. This will restart the Bind DNS service.&lt;br /&gt;
# Next we will need to change our DNS server set in /etc/network/interfaces so our eth0 interfaces uses our local system for DNS lookups. To do this, open up your interfaces file with your favorite file editor, and change the dns server to 127.0.0.1. Remember to restart your interface eth0 to apply the changes.&lt;br /&gt;
# To test if its working, run the command &amp;quot;nslookup inverhills.edu&amp;quot;. If bind is working, you should now see the following output:&lt;br /&gt;
&amp;lt;pre&amp;gt;Server:		127.0.0.1&lt;br /&gt;
Address:	127.0.0.1#53&lt;br /&gt;
&lt;br /&gt;
Non-authoritative answer:&lt;br /&gt;
Name:	inverhills.edu&lt;br /&gt;
Address: 134.29.183.71&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Notice how it shows it is using 127.0.0.1 as the server. If you do not see this, then your interface file is not set to use the local machine for DNS lookups.&lt;br /&gt;
&lt;br /&gt;
== Create a Domain using Webmin ==&lt;br /&gt;
# Now we are going to use webmin to create a few different type of domain records. We will go over A (Host), AAAA (IPv6 host), MX (Mail Exchange), and CNAME (Canonical Name).&lt;br /&gt;
# Open up your Webmin panel and sign in. Now that we have bind9 installed, you will need to click the Refresh Modules option on the left sidebar to have Webmin recheck the system for installed packages and services.&lt;br /&gt;
# Now under the Servers tab, open up BIND DNS Server. Now under Existing DNS Zones, clock Create master zone. From here we will create a new domain name for our server to host.&lt;br /&gt;
# Now use the following options, where * is your System ID that was defined in [[Franske ITC-2480 Lab 5|Lab 5.]]&lt;br /&gt;
&amp;lt;pre&amp;gt;Zone type: Forward (Names to Addresses)&lt;br /&gt;
Domain name / Network: debserv-*.test&lt;br /&gt;
Records file: Automatic&lt;br /&gt;
Master server: Leave as your hostname&lt;br /&gt;
Email address: root@debserv-*.test&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now click the create button to add our domain. As this point you should now be on the Edit Master Zone page. From here you can add and edit domain record settings.&lt;br /&gt;
# To create our A record which will point your domain to a IP address, click the Address button. For the Name enter @. the @ symbol in DNS Zones defines the parent domain. Now under address, enter your VM&#039;s static IP we set back in [[Franske ITC-2480 Lab 5|Lab 5]] and click Create. Now return back to the main BIND DNS Server page again. When there, click the Apply Configuration option in the top right corner.&lt;br /&gt;
# Now we will test the A record we just created. .use nslookup to lookup the domain you just created, which should be debserv-*.test by entering &amp;quot;nslookup debserv-*.test&amp;quot;&lt;br /&gt;
* Remember, * is used to represent your given letter to use in lab 5. Also, if you have issues looking up the domain, make sure that nslookup is still set to use 127.0.0.1 as the Server. If not, check your /etc/resolv.conf file.&lt;br /&gt;
== Adding additional record types ==&lt;br /&gt;
# Now we are going to add a few more record types to our Domain. This will include a MX (Mail Exchange) and CNAME (Canonical Name) record. &lt;br /&gt;
# We will start with the MX record. MX records are used by email servers to look up where to forward email for a specific domain.&lt;br /&gt;
# So to create a MX record we will use Webmin again. In Webmin on the BIND DNS Server page, click the domain on the bottom named debserv-*.test and then click the Mail Server button. Under name, enter @ again, and for the address enter your VM&#039;s static IP address. Now for Priority, enter 1. The Priority entry allows people to define more than 1 MX record for a domain, and the Priority defines which one should be used before the rest.&lt;br /&gt;
# Now go back to the domain zone overview page. We are now going to create a CNAME record. CNAME records are useful as they allow you to create virtual A records, but point them to a domain name instead of a host. This is most helpful in situations where you have a dynamic IP address on a system that always has a common DNS name.&lt;br /&gt;
# Now on the Edit Master Zone page for your domain, click the Name Alias button. For the Name, enter &amp;quot;cname&amp;quot; and for the Real Name, enter your domain &amp;quot;debserv-*.test.&amp;quot; but remember to put a period at the end of the domain as this is an absolute name. Then press create to add the record.&lt;br /&gt;
# Now press the Apply Configuration option in the top right of the page again. This will apply the records you have created. Now back in putty, run &amp;quot;nslookup cname.debserv-*.test&amp;quot;. You should get a response similar to:&lt;br /&gt;
&amp;lt;pre&amp;gt;Server:		127.0.0.1&lt;br /&gt;
Address:	127.0.0.1#53&lt;br /&gt;
&lt;br /&gt;
cname.debserv-*.test	canonical name = debserv-*.test.&lt;br /&gt;
Name:	debserv-*.test&lt;br /&gt;
Address: 172.17.50.XXX&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Congrats, at this point you have a basic domain working with a MX, CNAME, and A record.&lt;br /&gt;
== Manually editing a zone file ==&lt;br /&gt;
# Lastly we are going to look at the domain zone file. While webmin provides a nice interface to add records, all it is doing is manually adding our records to our zone file. When you use BIND for DNS, every domain created gets its own record file which is called the zone file. In this file all subdomains and records are stored for said domain.&lt;br /&gt;
# By default, the location for these records will be in /var/lib/bind, so cd into that folder and ls the contents.&lt;br /&gt;
# Now, with your favorite text editor, open up the file. It should look similar to this:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ttl 38400&lt;br /&gt;
debserv-A.test.	IN	SOA	VMHostname. root.debserv-A.test. (&lt;br /&gt;
			1395013947&lt;br /&gt;
			10800&lt;br /&gt;
			3600&lt;br /&gt;
			604800&lt;br /&gt;
			38400 )&lt;br /&gt;
debserv-A.test.	IN	NS	VMHostname.&lt;br /&gt;
debserv-A.test.	IN	A	172.17.50.XXX&lt;br /&gt;
debserv-A.test.	IN	MX	1 172.17.50.XXX&lt;br /&gt;
cname.debserv-A.test.	IN	CNAME	debserv-A.test.&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Notice the formatting for domain records. Each record is defined by the domain or subdomain, IN, then the record type, followed by what the record is pointed to.&lt;br /&gt;
# For this example, we want to change the MX priority from 1 to 10, so change the MX record settings using your text editor.&lt;br /&gt;
# When you are done, restart the bind9 service to reload the changes. We will now use a new command, dig, to lookup the record to make sure the changes were applied correctly.&lt;br /&gt;
* Note: when restarting bind, if you have any errors restarting the service this normally means you have a typo in one of your zone files. If this is the case, go through the file again in a text editor to make sure you did not add anything extra.&lt;br /&gt;
# dig is a very powerful DNS tool that allows you to lookup specific records for DNS domains, as well as many other things such as PTR, or reverse records. For our reasons though, we will use it to lookup the edited MX record. To do this, run &amp;quot;dig MX debserv-*.test&amp;quot;. &lt;br /&gt;
* Note: If you are having issues, add @127.0.0.1 to the end of the dig command to force dig to use the local DNS server.&lt;br /&gt;
# You should see the following response:&lt;br /&gt;
&amp;lt;pre&amp;gt;; &amp;lt;&amp;lt;&amp;gt;&amp;gt; DiG 9.8.4-rpz2+rl005.12-P1 &amp;lt;&amp;lt;&amp;gt;&amp;gt; MX debserv-*.test @127.0.0.1&lt;br /&gt;
;; global options: +cmd&lt;br /&gt;
;; Got answer:&lt;br /&gt;
;; -&amp;gt;&amp;gt;HEADER&amp;lt;&amp;lt;- opcode: QUERY, status: NOERROR, id: 59875&lt;br /&gt;
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0&lt;br /&gt;
&lt;br /&gt;
;; QUESTION SECTION:&lt;br /&gt;
;debserv-*.test.			IN	MX&lt;br /&gt;
&lt;br /&gt;
;; ANSWER SECTION:&lt;br /&gt;
debserv-*.test.		38400	IN	MX	10 172.17.50.XXX.debserv-*.test.&lt;br /&gt;
&lt;br /&gt;
;; AUTHORITY SECTION:&lt;br /&gt;
debserv-*.test.		38400	IN	NS	VMHostname.&lt;br /&gt;
&lt;br /&gt;
;; Query time: 4 msec&lt;br /&gt;
;; SERVER: 127.0.0.1#53(127.0.0.1)&lt;br /&gt;
;; WHEN: Sun Mar 16 20:40:02 2014&lt;br /&gt;
;; MSG SIZE  rcvd: 78&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Notice how the Answer Section shows the MX record is pointed to the IP of the domain, and that the priority is set to 10.&lt;br /&gt;
# Congrats, you have now setup a functional DNS server.&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_9&amp;diff=6386</id>
		<title>Franske ITC-2480 Lab 9</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_9&amp;diff=6386"/>
		<updated>2014-03-17T01:44:47Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: Created page with &amp;quot;=Introduction=  =Lab Procedure= == Prerequisites == # Open an SSH console to your Linux system using the PuTTY software, login with your standard user account. # Make sure tha...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account.&lt;br /&gt;
# Make sure that webmin is installed on your system. &lt;br /&gt;
== Install BIND &amp;amp; Enable Caching ==&lt;br /&gt;
# First you will need to install bind. Bind is one of the few available DNS server applications for linux. To install it, use your favorite package manager to install bind9.&lt;br /&gt;
# Now we will need to enable DNS caching and forwarding on the bind server. This will allow us to use it for DNS resolving locally, as well as speed up frequent DNS requests. To do this, open up /etc/bind/named.conf.options with your favorite text editor.&lt;br /&gt;
# You are now in the local options file for bind. You will need to comment out the following text:&lt;br /&gt;
&amp;lt;pre&amp;gt;# forwarders {&lt;br /&gt;
#     0.0.0.0;&lt;br /&gt;
# };&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Note that you will need to replace 0.0.0.0 with XXX.XXX.XXX.XXX for outside DNS lookups to function.&lt;br /&gt;
# To apply this change, you will need to restart the Bind DNS serice. to do this run &amp;quot;sudo service bind9 restart&amp;quot;. This will restart the Bind DNS service.&lt;br /&gt;
# Next we will need to change our DNS server set in /etc/network/interfaces so our eth0 interfaces uses our local system for DNS lookups. To do this, open up your interfaces file with your favorite file editor, and change the dns server to 127.0.0.1. Remember to restart your interface eth0 to apply the changes.&lt;br /&gt;
# To test if its working, run the command &amp;quot;nslookup inverhills.edu&amp;quot;. If bind is working, you should now see the following output:&lt;br /&gt;
&amp;lt;pre&amp;gt;Server:		127.0.0.1&lt;br /&gt;
Address:	127.0.0.1#53&lt;br /&gt;
&lt;br /&gt;
Non-authoritative answer:&lt;br /&gt;
Name:	inverhills.edu&lt;br /&gt;
Address: 134.29.183.71&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Notice how it shows it is using 127.0.0.1 as the server. If you do not see this, then your interface file is not set to use the local machine for DNS lookups.&lt;br /&gt;
== Create a Domain using Webmin ==&lt;br /&gt;
# Now we are going to use webmin to create a few different type of domain records. We will go over A (Host), AAAA (IPv6 host), MX (Mail Exchange), and CNAME (Canonical Name).&lt;br /&gt;
# Open up your Webmin panel and sign in. Now that we have bind9 installed, you will need to click the Refresh Modules option on the left sidebar to have Webmin recheck the system for installed packages and services.&lt;br /&gt;
# Now under the Servers tab, open up BIND DNS Server. Now under Existing DNS Zones, clock Create master zone. From here we will create a new domain name for our server to host.&lt;br /&gt;
# Now use the following options, where * is your System ID that was defined in [[Franske ITC-2480 Lab 5|Lab 5.]]&lt;br /&gt;
&amp;lt;pre&amp;gt;Zone type: Forward (Names to Addresses)&lt;br /&gt;
Domain name / Network: debserv-*.test&lt;br /&gt;
Records file: Automatic&lt;br /&gt;
Master server: Leave as your hostname&lt;br /&gt;
Email address: root@debserv-*.test&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now click the create button to add our domain. As this point you should now be on the Edit Master Zone page. From here you can add and edit domain record settings.&lt;br /&gt;
# To create our A record which will point your domain to a IP address, click the Address button. For the Name enter @. the @ symbol in DNS Zones defines the parent domain. Now under address, enter your VM&#039;s static IP we set back in [[Franske ITC-2480 Lab 5|Lab 5]] and click Create. Now return back to the main BIND DNS Server page again. When there, click the Apply Configuration option in the top right corner.&lt;br /&gt;
# Now we will test the A record we just created. .use nslookup to lookup the domain you just created, which should be debserv-*.test by entering &amp;quot;nslookup debserv-*.test&amp;quot;&lt;br /&gt;
* Remember, * is used to represent your given letter to use in lab 5. Also, if you have issues looking up the domain, make sure that nslookup is still set to use 127.0.0.1 as the Server. If not, check your /etc/resolv.conf file.&lt;br /&gt;
== Adding additional record types ==&lt;br /&gt;
# Now we are going to add a few more record types to our Domain. This will include a MX (Mail Exchange) and CNAME (Canonical Name) record. &lt;br /&gt;
# We will start with the MX record. MX records are used by email servers to look up where to forward email for a specific domain.&lt;br /&gt;
# So to create a MX record we will use Webmin again. In Webmin on the BIND DNS Server page, click the domain on the bottom named debserv-*.test and then click the Mail Server button. Under name, enter @ again, and for the address enter your VM&#039;s static IP address. Now for Priority, enter 1. The Priority entry allows people to define more than 1 MX record for a domain, and the Priority defines which one should be used before the rest.&lt;br /&gt;
# Now go back to the domain zone overview page. We are now going to create a CNAME record. CNAME records are useful as they allow you to create virtual A records, but point them to a domain name instead of a host. This is most helpful in situations where you have a dynamic IP address on a system that always has a common DNS name.&lt;br /&gt;
# Now on the Edit Master Zone page for your domain, click the Name Alias button. For the Name, enter &amp;quot;cname&amp;quot; and for the Real Name, enter your domain &amp;quot;debserv-*.test.&amp;quot; but remember to put a period at the end of the domain as this is an absolute name. Then press create to add the record.&lt;br /&gt;
# Now press the Apply Configuration option in the top right of the page again. This will apply the records you have created. Now back in putty, run &amp;quot;nslookup cname.debserv-*.test&amp;quot;. You should get a response similar to:&lt;br /&gt;
&amp;lt;pre&amp;gt;Server:		127.0.0.1&lt;br /&gt;
Address:	127.0.0.1#53&lt;br /&gt;
&lt;br /&gt;
cname.debserv-*.test	canonical name = debserv-*.test.&lt;br /&gt;
Name:	debserv-*.test&lt;br /&gt;
Address: 172.17.50.XXX&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Congrats, at this point you have a basic domain working with a MX, CNAME, and A record.&lt;br /&gt;
== Manually editing a zone file ==&lt;br /&gt;
# Lastly we are going to look at the domain zone file. While webmin provides a nice interface to add records, all it is doing is manually adding our records to our zone file. When you use BIND for DNS, every domain created gets its own record file which is called the zone file. In this file all subdomains and records are stored for said domain.&lt;br /&gt;
# By default, the location for these records will be in /var/lib/bind, so cd into that folder and ls the contents.&lt;br /&gt;
# Now, with your favorite text editor, open up the file. It should look similar to this:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ttl 38400&lt;br /&gt;
debserv-A.test.	IN	SOA	VMHostname. root.debserv-A.test. (&lt;br /&gt;
			1395013947&lt;br /&gt;
			10800&lt;br /&gt;
			3600&lt;br /&gt;
			604800&lt;br /&gt;
			38400 )&lt;br /&gt;
debserv-A.test.	IN	NS	VMHostname.&lt;br /&gt;
debserv-A.test.	IN	A	172.17.50.XXX&lt;br /&gt;
debserv-A.test.	IN	MX	1 172.17.50.XXX&lt;br /&gt;
cname.debserv-A.test.	IN	CNAME	debserv-A.test.&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Notice the formatting for domain records. Each record is defined by the domain or subdomain, IN, then the record type, followed by what the record is pointed to.&lt;br /&gt;
# For this example, we want to change the MX priority from 1 to 10, so change the MX record settings using your text editor.&lt;br /&gt;
# When you are done, restart the bind9 service to reload the changes. We will now use a new command, dig, to lookup the record to make sure the changes were applied correctly.&lt;br /&gt;
* Note: when restarting bind, if you have any errors restarting the service this normally means you have a typo in one of your zone files. If this is the case, go through the file again in a text editor to make sure you did not add anything extra.&lt;br /&gt;
# dig is a very powerful DNS tool that allows you to lookup specific records for DNS domains, as well as many other things such as PTR, or reverse records. For our reasons though, we will use it to lookup the edited MX record. To do this, run &amp;quot;dig MX debserv-*.test&amp;quot;. &lt;br /&gt;
* Note: If you are having issues, add @127.0.0.1 to the end of the dig command to force dig to use the local DNS server.&lt;br /&gt;
# You should see the following response:&lt;br /&gt;
&amp;lt;pre&amp;gt;; &amp;lt;&amp;lt;&amp;gt;&amp;gt; DiG 9.8.4-rpz2+rl005.12-P1 &amp;lt;&amp;lt;&amp;gt;&amp;gt; MX debserv-*.test @127.0.0.1&lt;br /&gt;
;; global options: +cmd&lt;br /&gt;
;; Got answer:&lt;br /&gt;
;; -&amp;gt;&amp;gt;HEADER&amp;lt;&amp;lt;- opcode: QUERY, status: NOERROR, id: 59875&lt;br /&gt;
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0&lt;br /&gt;
&lt;br /&gt;
;; QUESTION SECTION:&lt;br /&gt;
;debserv-*.test.			IN	MX&lt;br /&gt;
&lt;br /&gt;
;; ANSWER SECTION:&lt;br /&gt;
debserv-*.test.		38400	IN	MX	10 172.17.50.XXX.debserv-*.test.&lt;br /&gt;
&lt;br /&gt;
;; AUTHORITY SECTION:&lt;br /&gt;
debserv-*.test.		38400	IN	NS	VMHostname.&lt;br /&gt;
&lt;br /&gt;
;; Query time: 4 msec&lt;br /&gt;
;; SERVER: 127.0.0.1#53(127.0.0.1)&lt;br /&gt;
;; WHEN: Sun Mar 16 20:40:02 2014&lt;br /&gt;
;; MSG SIZE  rcvd: 78&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Notice how the Answer Section shows the MX record is pointed to the IP of the domain, and that the priority is set to 10.&lt;br /&gt;
# Congrats, you have now setup a functional DNS server.&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Assignments&amp;diff=6385</id>
		<title>Franske ITC-2480 Assignments</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Assignments&amp;diff=6385"/>
		<updated>2014-03-17T00:45:19Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Labs=&lt;br /&gt;
You are responsible for completing ALL of these labs. You must submit a [[Franske Lab Report Format|lab report]] for each chapter (you may combine multiple labs from the chapter into a single report). If you work with a partner on a lab you only need to submit a single lab report for the two of you but it must have both your names on it. Each lab report is worth up to 20 points. This falls into the Labs/Homework category of your course grade.&lt;br /&gt;
&lt;br /&gt;
# [[Franske ITC-2480 Lab 1|Lab 1: Install Debian, check IP, remote access with ssh/sftp]]&lt;br /&gt;
# [[Franske ITC-2480 Lab 2|Lab 2: Install Links, install Apache, download, copy, move, remove files, tar file extraction, directories]]&lt;br /&gt;
# [[Franske ITC-2480 Lab 3|Lab 3: Install sudo, create new user, change ownership and permissions on files/dirs, view man pages, install webmin]]&lt;br /&gt;
# [[Franske ITC-2480 Lab 4|Lab 4: redirect/pipe output, create links, create compressed files, text editing]]&lt;br /&gt;
# [[Franske ITC-2480 Lab 5|Lab 5: Set static IP, install PHP/mySQL, experiment with websites and databases, view logfiles]] &lt;br /&gt;
# [[Franske ITC-2480 Lab 6|Lab 6: Install forum &amp;amp; blog software, experiment with PHP]]&lt;br /&gt;
# [[Franske ITC-2480 Lab 7|Lab 7: Install Samba, configure for basic workgroup filesharing]] &lt;br /&gt;
# [[Franske ITC-2480 Lab 8|Lab 8: Install Postfix MTA, courier-imap]]&lt;br /&gt;
# [[Franske ITC-2480 Lab 9|Lab 9: Install BIND and configure as caching plus zones for a local domain]] &lt;br /&gt;
# Lab 10: 2nd NIC internal network configuration &lt;br /&gt;
# Lab 11: Explore /proc /dev, Partition/format/mount 2nd HDD &lt;br /&gt;
# Lab 12: Use of nmap, netstat, MRTG/cacti, Nagios &lt;br /&gt;
# Lab 13: Write BASH scripts&lt;br /&gt;
&lt;br /&gt;
=Homework=&lt;br /&gt;
Any homework assigned in the course will go here. This falls into the Labs/Homework category of your course grade. Remember, for homework assignments turn in the actual pages from your lab book or printouts from the curriculum and not a lab report. Homework assignment are individual, you and your lab partner need to both turn them in separately even if you work on them together.&lt;br /&gt;
&lt;br /&gt;
=Participation Activities=&lt;br /&gt;
Any participation activities completed in the course will go here. This falls into the participation category of your course grade.&lt;br /&gt;
* Meet with the instructor once per week to discuss course progress and ask questions (up to 10 points each based on progress)&lt;br /&gt;
&lt;br /&gt;
=Unit Assessments=&lt;br /&gt;
You are responsible for completing an online unit assessment for each chapter. These fall into the online assessments category of your course grade.&lt;br /&gt;
&lt;br /&gt;
=Other=&lt;br /&gt;
You are also responsible for completing these things, see the course syllabus for category and weighting information.&lt;br /&gt;
* Online Final Exam&lt;br /&gt;
* Skills Final Exam&lt;br /&gt;
&lt;br /&gt;
=Skills Final Exam=&lt;br /&gt;
The Skills Final Exam is designed to test your ability to apply the concepts learned in this class and practiced in labs to common, real-world scenarios.&lt;br /&gt;
&lt;br /&gt;
[[Franske ITC-2480|Return to ITC-2480 Homepage]]&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_8&amp;diff=6370</id>
		<title>Franske ITC-2480 Lab 8</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_8&amp;diff=6370"/>
		<updated>2014-03-06T00:11:46Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: /* Install the Postfix MTA */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
In this lab you will setup a basic email server on your Debian Linux server including both MTA and MDA software.&lt;br /&gt;
&lt;br /&gt;
The MTA to be installed is Postfix. MTA software listens for incoming connections from other MTA servers on port 25 and accepts mail on behalf of users on the system. Once the mail is received it is stored locally for users to retrieve. The most common methods for storing messages is in an .mbox file, where all messages are stored in a single file, or in a Maildir, which is a directory where each message is stored in a separate file. The MTA also listens for connections from client software (MUA) and accepts outbound messages from them and forwards them on to the destination domain&#039;s mail server. Advanced configuration of MTA software can allow for anti-spam filtering, mailing list support or other programs to intercept and manipulate mail as it passes through the server.&lt;br /&gt;
&lt;br /&gt;
Local users accessing their mailbox with MUA software can read and write to the .mbox file or Maildir directly. If a user not locally logged on to the system wants to access their mailbox the server runs MDA software which typically uses the POP3 or IMAP protocol for accessing the .mbox file or Maildir remotely.&lt;br /&gt;
&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account&lt;br /&gt;
# Make sure that webmin is installed on your system. &lt;br /&gt;
# Get the IP address of someone else&#039;s system in the class who you can send mail to&lt;br /&gt;
&lt;br /&gt;
== Install the Postfix MTA ==&lt;br /&gt;
# Install the postfix package using a package management program&lt;br /&gt;
#* During the installation process select &amp;quot;Internet Site&amp;quot; as the type of mailserver and set the domain name to &amp;quot;yourhostname.test&amp;quot;&lt;br /&gt;
# Use the telnet command to connect to your SMTP server on port 25 (telnet localhost 25)&lt;br /&gt;
#* Type quit and press enter after verifying Postfix is running.&lt;br /&gt;
# Because the Courier IMAP and POP3 server software only supports Maildir style message stores and Postfix stores in mbox files by default you must edit the /etc/postfix/main.cf file and set the &amp;quot;home_mailbox = Maildir/&amp;quot; parameter.&lt;br /&gt;
# Restart the postfix service to apply your change&lt;br /&gt;
# Install the mailutils package to test your setup by sending and receiving mail directly from the command line.&lt;br /&gt;
# Try sending a message: &amp;lt;pre&amp;gt;echo &amp;quot;This is my message&amp;quot; | mail -s &amp;quot;Email Subject&amp;quot; username@localhost&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Check to see if the message was received using the mail command, press q to return to the command line.&lt;br /&gt;
#* If you do not see the message listed you may need to quit the mail program and set an environment variable &amp;quot;MAIL=/home/yourusername/Maildir&amp;quot;&lt;br /&gt;
# You should also be able to see the message in /home/yourusername/Maildir/&lt;br /&gt;
# Create an &amp;quot;alias&amp;quot; for sysadmin which forwards mail to your username and send a copy of all mail to the root account to your username as well by editing the /etc/aliases file and then running the newalises program&lt;br /&gt;
# It might be a good time to try logging on to Webmin again, re-scanning for modules and then taking a look at the Postfix module in the &amp;quot;Servers&amp;quot; section.&lt;br /&gt;
# Take a look at your /var/log/mail.info log to see Postfix sending and receiving messages for users.&lt;br /&gt;
&lt;br /&gt;
== Install Courier MDA ==&lt;br /&gt;
# Most users prefer to retrieve mail from a mail server using an MDA protocol like POP3 or IMAP which can be provided by the Courier programs. Install the &amp;quot;courier-pop&amp;quot; and &amp;quot;courier-imap&amp;quot; packages.&lt;br /&gt;
#* Do not create the directories for web-based administration as they are unneeded for our setup&lt;br /&gt;
# Install an email client (MUA) on your host system such as [http://www.mozilla.org/en-US/thunderbird/ Mozilla Thunderbird] and setup a new account which connects over IMAP to the IP address of your server for each of the different user accounts you have on your server. Test receiving mail using this client.&lt;br /&gt;
#* Note: If your user has not yet received any mail Postfix has not created a Maildir for the user and the courier software will send an error to the client software. Use the sendmail program explained above to send some mail to the user, see that the Maildir is then created and then try retrieving the messages again with your MUA.&lt;br /&gt;
&lt;br /&gt;
== Allow Remote Users to Send Mail ==&lt;br /&gt;
# Try setting up your MUA software to send mail by creating an SMTP server entry and sending an email to anotheruser@localhost This should work because localhost is your own server but if you try sending email to someuser@anotherIP like root@172.17.50.10 that will fail.&lt;br /&gt;
# The problem is you don&#039;t want just anyone to send mail through your mailserver (we did allow this in the olden days) because a spammer could then use your server to send mail worldwide and it would all trace back to the IP of your server, we call servers setup like this &amp;quot;open relays&amp;quot; because they relay mail for anyone and they are generally considered very bad practice and can get your mailserver on lists of servers to ignore all messages from. There are a number of ways to solve this. By default Postfix will only allow mail relaying from computers on the same network (based on IP) as set in the /etc/postfix/main.cf mynetworks parameter but this is inconvenient for remote users. The SASL protocol allows users to authenticate with a username and password before sending mail and then relay messages are accepted from them.&lt;br /&gt;
# See if you can follow [https://wiki.debian.org/PostfixAndSASL these instructions] for setting up SASL with Postfix.&lt;br /&gt;
#* Note: You do not need to setup TLS to support SASL (more on that in the additional considerations section)&lt;br /&gt;
# Now modify your MUA to use a username and password when connecting to your SMTP server and try sending mail to someone else&#039;s system from your MUA using a destination address like root@172.17.50.10&lt;br /&gt;
# Troubleshoot as needed using the mail log files on your system.&lt;br /&gt;
&lt;br /&gt;
=Additional Considerations=&lt;br /&gt;
Running a mailserver is tricky business. The basic server we have setup does not use encryption for connections meaning usernames, passwords, and mail contents are all set in plaintext. This is very undesirable from a security standpoint and it would be suggested to support SSL/TLS encryption for both the MTA and MDA portions. In addition, you will almost certainly want spam filtering at the server. More complicated setups also use database tables for users, passwords and domains so that you can host multiple domains on a single server and have email user boxes for people who do not have local logins on the system.&lt;br /&gt;
&lt;br /&gt;
=Additional Resources=&lt;br /&gt;
* [https://help.ubuntu.com/community/PostfixBasicSetupHowto Ubuntu Postfix Basic Setup]&lt;br /&gt;
* [https://wiki.debian.org/Postfix Debian Wiki - Postfix Installation]&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_7&amp;diff=6364</id>
		<title>Franske ITC-2480 Lab 7</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_7&amp;diff=6364"/>
		<updated>2014-02-28T14:48:16Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account&lt;br /&gt;
# Make sure that webmin is installed on your system. &lt;br /&gt;
== Install Samba ==&lt;br /&gt;
# With your favorite package manager, install the samba package.&lt;br /&gt;
# After samba is installed, login into webmin on your local computers web browser.&lt;br /&gt;
# Under the servers tab, notice how samba does not show up. This is because we just installed the package.&lt;br /&gt;
# On the bottom of the left toolbar, click refresh modules. After a minute, it should refresh the page. Now look under the servers tab again. Does samba now show up?&lt;br /&gt;
== Setup a Guest Folder ==&lt;br /&gt;
# The first thing we are going to do is we are going to create a guest share. This share will allow for all users, even those who have not authenticated, to read files. &lt;br /&gt;
# To help you better understand samba, this first share will be configured from putty and command line. First, cd into /etc/samba/ and run a ls. In here we have two main files. smb.conf, which holds all of the samba share and authentication settings, and dhcp.conf which is no longer used, but used to be used to define host names and dns servers for samba to use.&lt;br /&gt;
# Now with your favorite text editor, open up smb.conf as root (remember to use sudo).&lt;br /&gt;
# Scroll to the bottom of the file, and notice how shares are defined. They all have a similar format such as:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[Share Name]&lt;br /&gt;
        comment = Share Comment&lt;br /&gt;
        options....&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Where options are the different configuration settings. Lets try creating the guest share folder from the config file manually.&lt;br /&gt;
# Exit out of nano, and create the folder /srv/Guest-Files as root. This will be the folder we are sharing.&lt;br /&gt;
# Now open up /etc/samba/smb.conf in a text editor again as root, and go to the bottom of the file.&lt;br /&gt;
# Enter the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Guest Share]&lt;br /&gt;
        comment = Public File Share&lt;br /&gt;
        public = yes&lt;br /&gt;
        path = /srv/Guest-Files&amp;lt;/pre&amp;gt;&lt;br /&gt;
# You have now created the public share. To test this share, go into /srv/Guest-Files and create a text file and enter some information. We will use this file to test the read-only settings of the share.&lt;br /&gt;
# At this point, we should be ready to test out our configuration. On your Local Computer, open up command line, and enter \\172.17.50.xx (Your IP you setup for the static address), and press enter. You should see a share folder called Guest Share. Open it up, and see if your text file is in the share.  Open up the file, and try to edit and save the file. What error do you get?&lt;br /&gt;
== Share Home Folders ==&lt;br /&gt;
# Now we are going to setup Home Folders. By default they are enabled, but write access is not. Notice what other folders are enabled in samba by default.&lt;br /&gt;
# First it must be noted that samba requires separate user accounts from the system, just like mysql. So first, we are going to add your user account.&lt;br /&gt;
# To do this, we are now going to use webmin to configure the shares. Remember you can access webmin from 172.17.50.xx:10000.&lt;br /&gt;
# On the Webmin Samba config page, click Samba Users. Notice how none are currently defined. Go back, and then click Convert Users. This is the tool we will use to convert the local unix user accounts to samba.&lt;br /&gt;
# Leave the Unix users to convert option set to all except listed users and UID ranges with the option of -499. This will add all user counts with a UID of 500 or more to samba.&lt;br /&gt;
# Now on the bottom, select &amp;quot;No password&amp;quot;. We are doing this as we will define unique passwords for each user. Then click Convert Users when ready.&lt;br /&gt;
# When you are done, go to the Samba Users page again. Notice how your user account is now listed. From here you can now add passwords to the different user accounts you added in the last step.&lt;br /&gt;
# Lastly we are going to setup write access to home folders, so you will be able to add files to your home directory over samba.&lt;br /&gt;
# On the samba config page, under Shares, click the home share. Next click Security and Access Control. Now set the Writable option to Yes, and then click save.&lt;br /&gt;
# Now go back to the Samba config page, and click the Restart Samba Servers option at the bottom. We do this to force samba to load the new configuration. You can also wait a minute or two if you don&#039;t want to disconnect any connected users.&lt;br /&gt;
# At this point, we should be ready to test out our configuration. On your Local Computer, open up command line, and enter \\172.17.50.xx (Your IP you setup for the static address), and press enter. Notice how you have an empty share because you are connected without any authentication. Now, in the top URL window, add \username to the path, so ex \\172.17.50.xx\user. You should now get a login popup. Login as your user, and you should be greeted with your home folder.&lt;br /&gt;
# Test creating and deleting a file to verify write access is working.&lt;br /&gt;
# Now try to access a home share of another user that was added to samba. Notice how you do not have permissions. Try logging in with another user account to access a different home share.&lt;br /&gt;
#Note: To use another user account in a samba share, you may have to logout and then back in on your local machine.&lt;br /&gt;
== Setup a Group Share Folder ==&lt;br /&gt;
# Now we are going to setup a group folder share that will allow for all samba users to read and write to the folder.&lt;br /&gt;
# Now back in the webmin samba config panel, we are going to create a new share. Under shares, select the Create a new file share link.&lt;br /&gt;
# Use the following base configuration:&lt;br /&gt;
&amp;lt;pre&amp;gt;Share Name: Share-Files&lt;br /&gt;
Directory to share: /srv/Group-Share&lt;br /&gt;
Automatically Create Directory: Yes&lt;br /&gt;
Create with owner: root&lt;br /&gt;
Create with permissions: 775&lt;br /&gt;
Create with group: users&lt;br /&gt;
Available: yes&lt;br /&gt;
Browsable: yes&lt;br /&gt;
Share Comment: group share folder&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Once the share is setup, click it to edit it. Once you are at the Edit File Share page, click File Permissions. Notice how the New Unix file and New Unix directory are set to 755 by default, even though we set the share to use 775 to create the directory. This is done for security purposes.&lt;br /&gt;
# Now set the New Unix file and New Unix directory mode to 775, and set Force Unix group to users. You can now press save. We do this to allow authenticated users to modify and edit files that may have been added by other users.&lt;br /&gt;
# Now we will need to enable write access to the folder. On the Edit file share page again, click Security and Access Control. Now set the Writable option to Yes, and press save.&lt;br /&gt;
# At this point, you can test the share exactly the same way we did with the home folder share. Notice though how this share is set to browsable, so it shows up in the root share folder. Go ahead and create a file, and in putty, look at the user and group assigned to the files you created.&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_7&amp;diff=6363</id>
		<title>Franske ITC-2480 Lab 7</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_7&amp;diff=6363"/>
		<updated>2014-02-27T15:57:05Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account&lt;br /&gt;
# Make sure that webmin is installed on your system. &lt;br /&gt;
== Install Samba ==&lt;br /&gt;
# With your favorite package manager, install the samba package.&lt;br /&gt;
# After samba is installed, login into webmin on your local computers web browser.&lt;br /&gt;
# Under the servers tab, notice how samba does not show up. This is because we just installed the package.&lt;br /&gt;
# On the bottom of the left toolbar, click refresh modules. After a minute, it should refresh the page. Now look under the servers tab again. Does samba now show up?&lt;br /&gt;
== Setup a Guest Folder ==&lt;br /&gt;
# The first thing we are going to do is we are going to create a guest share. This share will allow for all users, even those who have not authenticated, to read files. &lt;br /&gt;
# To help you better understand samba, this first share will be configured from putty and command line. First, cd into /etc/samba/ and run a ls. In here we have two main files. smb.conf, which holds all of the samba share and authentication settings, and dhcp.conf which is no longer used, but used to be used to define host names and dns servers for samba to use.&lt;br /&gt;
# Now with your favorite text editor, open up smb.conf as root (remember to use sudo).&lt;br /&gt;
# Scroll to the bottom of the file, and notice how shares are defined. They all have a similar format such as:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[Share Name]&lt;br /&gt;
        comment = Share Comment&lt;br /&gt;
        options....&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Where options are the different configuration settings. Lets try creating the guest share folder from the config file manually.&lt;br /&gt;
# Exit out of nano, and create the folder /srv/Guest-Files as root. This will be the folder we are sharing.&lt;br /&gt;
# Now open up /etc/samba/smb.conf in a text editor again as root, and go to the bottom of the file.&lt;br /&gt;
# Enter the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Guest Share]&lt;br /&gt;
        comment = Public File Share&lt;br /&gt;
        public = yes&lt;br /&gt;
        path = /srv/Guest-Files&amp;lt;/pre&amp;gt;&lt;br /&gt;
# You have now created the public share. To test this share, go into /srv/Guest-Files and create a text file and enter some information. We will use this file to test the read-only settings of the share.&lt;br /&gt;
# At this point, we should be ready to test out our configuration. On your Local Computer, open up command line, and enter \\172.17.50.xx (Your IP you setup for the static address), and press enter. You should see a share folder called Guest Share. Open it up, and see if your text file is in the share.  Open up the file, and try to edit and save the file. What error do you get?&lt;br /&gt;
== Share Home Folders ==&lt;br /&gt;
# Now we are going to setup Home Folders. By default they are enabled, but write access is not. Notice what other folders are enabled in samba by default.&lt;br /&gt;
# First it must be noted that samba requires separate user accounts from the system, just like mysql. So first, we are going to add your user account.&lt;br /&gt;
# To do this, we are now going to use webmin to configure the shares. Remember you can access webmin from 172.17.50.xx:10000.&lt;br /&gt;
# On the Webmin Samba config page, click Samba Users. Notice how none are currently defined. Go back, and then click Convert Users. This is the tool we will use to convert the local unix user accounts to samba.&lt;br /&gt;
# Now select the &amp;quot;Only listed users or UID ranges&amp;quot;, and enter your username.&lt;br /&gt;
# Now on the bottom, select &amp;quot;Use this password&amp;quot; and create a password for your samba user. Then click Convert Users when ready.&lt;br /&gt;
# When you are done, go to the Samba Users page again. Notice how your user account is now listed.&lt;br /&gt;
# Lastly we are going to setup write access to home folders, so you will be able to add files to your home directory over samba.&lt;br /&gt;
# On the samba config page, under Shares, click the home share. Next click Security and Access Control. Now set the Writable option to Yes, and then click save.&lt;br /&gt;
# Now go back to the Samba config page, and click the Restart Samba Servers option at the bottom. We do this to force samba to load the new configuration. You can also wait a minute or two if you don&#039;t want to disconnect any connected users.&lt;br /&gt;
# At this point, we should be ready to test out our configuration. On your Local Computer, open up command line, and enter \\172.17.50.xx (Your IP you setup for the static address), and press enter. Notice how you have an empty share because you are connected without any authentication. Now, in the top URL window, add \username to the path, so ex \\172.17.50.xx\user. You should now get a login popup. Login as your user, and you should be greeted with your home folder.&lt;br /&gt;
# Test creating and deleting a file to verify write access is working.&lt;br /&gt;
== Setup a Group Share Folder ==&lt;br /&gt;
# Now we are going to setup a group folder share that will allow for all samba users to read and write to the folder.&lt;br /&gt;
# Now back in the webmin samba config panel, we are going to create a new share. Under shares, select the Create a new file share link.&lt;br /&gt;
# Use the following base configuration:&lt;br /&gt;
&amp;lt;pre&amp;gt;Share Name: Share-Files&lt;br /&gt;
Directory to share: /srv/Group-Share&lt;br /&gt;
Automatically Create Directory: Yes&lt;br /&gt;
Create with owner: root&lt;br /&gt;
Create with permissions: 775&lt;br /&gt;
Create with group: users&lt;br /&gt;
Available: yes&lt;br /&gt;
Browsable: yes&lt;br /&gt;
Share Comment: group share folder&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Once the share is setup, click it to edit it. Once you are at the Edit File Share page, click File Permissions. Notice how the New Unix file and New Unix directory are set to 755 by default, even though we set the share to use 775 to create the directory. This is done for security purposes.&lt;br /&gt;
# Now set the New Unix file and New Unix directory mode to 775, and set Force Unix group to users. You can now press save. We do this to allow authenticated users to modify and edit files that may have been added by other users.&lt;br /&gt;
# Now we will need to enable write access to the folder. On the Edit file share page again, click Security and Access Control. Now set the Writable option to Yes, and press save.&lt;br /&gt;
# At this point, you can test the share exactly the same way we did with the home folder share. Notice though how this share is set to browsable, so it shows up in the root share folder. Go ahead and create a file, and in putty, look at the user and group assigned to the files you created.&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_7&amp;diff=6362</id>
		<title>Franske ITC-2480 Lab 7</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_7&amp;diff=6362"/>
		<updated>2014-02-25T14:33:42Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: /* Share Home Folders */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account&lt;br /&gt;
# Make sure that webmin is installed on your system. &lt;br /&gt;
== Install Samba ==&lt;br /&gt;
# With your favorite package manager, install the samba package.&lt;br /&gt;
# After samba is installed, login into webmin on your local computers web browser.&lt;br /&gt;
# Under the servers tab, notice how samba does not show up. This is because we just installed the package.&lt;br /&gt;
# On the bottom of the left toolbar, click refresh modules. After a minute, it should refresh the page. Now look under the servers tab again. Does samba now show up?&lt;br /&gt;
== Setup a Guest Folder ==&lt;br /&gt;
# The first thing we are going to do is we are going to create a guest share. This share will allow for all users, even those who have not authenticated, to read files. &lt;br /&gt;
# To help you better understand samba, this first share will be configured from putty and command line. First, cd into /etc/samba/ and run a ls. In here we have two main files. smb.conf, which holds all of the samba share and authentication settings, and dhcp.conf which is no longer used, but used to be used to define host names and dns servers for samba to use.&lt;br /&gt;
# Now with your favorite text editor, open up smb.conf as root (remember to use sudo).&lt;br /&gt;
# Scroll to the bottom of the file, and notice how shares are defined. They all have a similar format such as:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[Share Name]&lt;br /&gt;
        comment = Share Comment&lt;br /&gt;
        options....&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Where options are the different configuration settings. Lets try creating the guest share folder from the config file manually.&lt;br /&gt;
# Exit out of nano, and create the folder /srv/Guest-Files as root. This will be the folder we are sharing.&lt;br /&gt;
# Now open up /etc/samba/smb.conf in a text editor again as root, and go to the bottom of the file.&lt;br /&gt;
# Enter the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Guest Share]&lt;br /&gt;
        comment = Public File Share&lt;br /&gt;
        path = /srv/Guest-Files&amp;lt;/pre&amp;gt;&lt;br /&gt;
# You have now created the public share. To test this share, go into /srv/Guest-Files and create a text file and enter some information. We will use this file to test the read-only settings of the share.&lt;br /&gt;
# At this point, we should be ready to test out our configuration. On your Local Computer, open up command line, and enter \\172.17.50.xx (Your IP you setup for the static address), and press enter. You should see a share folder called Guest Share. Open it up, and see if your text file is in the share.  Open up the file, and try to edit and save the file. What error do you get?&lt;br /&gt;
== Share Home Folders ==&lt;br /&gt;
# Now we are going to setup Home Folders. By default they are enabled, but write access is not. Notice what other folders are enabled in samba by default.&lt;br /&gt;
# First it must be noted that samba requires separate user accounts from the system, just like mysql. So first, we are going to add your user account.&lt;br /&gt;
# To do this, we are now going to use webmin to configure the shares. Remember you can access webmin from 172.17.50.xx:10000.&lt;br /&gt;
# On the Webmin Samba config page, click Samba Users. Notice how none are currently defined. Go back, and then click Convert Users. This is the tool we will use to convert the local unix user accounts to samba.&lt;br /&gt;
# Now select the &amp;quot;Only listed users or UID ranges&amp;quot;, and enter your username.&lt;br /&gt;
# Now on the bottom, select &amp;quot;Use this password&amp;quot; and create a password for your samba user. Then click Convert Users when ready.&lt;br /&gt;
# When you are done, go to the Samba Users page again. Notice how your user account is now listed.&lt;br /&gt;
# Lastly we are going to setup write access to home folders, so you will be able to add files to your home directory over samba.&lt;br /&gt;
# On the samba config page, under Shares, click the home share. Next click Security and Access Control. Now set the Writable option to Yes, and then click save.&lt;br /&gt;
# Now go back to the Samba config page, and click the Restart Samba Servers option at the bottom. We do this to force samba to load the new configuration. You can also wait a minute or two if you don&#039;t want to disconnect any connected users.&lt;br /&gt;
# At this point, we should be ready to test out our configuration. On your Local Computer, open up command line, and enter \\172.17.50.xx (Your IP you setup for the static address), and press enter. Notice how you have an empty share because you are connected without any authentication. Now, in the top URL window, add \username to the path, so ex \\172.17.50.xx\user. You should now get a login popup. Login as your user, and you should be greeted with your home folder.&lt;br /&gt;
# Test creating and deleting a file to verify write access is working.&lt;br /&gt;
&lt;br /&gt;
== Setup a Group Share Folder ==&lt;br /&gt;
# Now we are going to setup a group folder share that will allow for all samba users to read and write to the folder.&lt;br /&gt;
# Now back in the webmin samba config panel, we are going to create a new share. Under shares, select the Create a new file share link.&lt;br /&gt;
# Use the following base configuration:&lt;br /&gt;
&amp;lt;pre&amp;gt;Share Name: Share-Files&lt;br /&gt;
Directory to share: /srv/Group-Share&lt;br /&gt;
Automatically Create Directory: Yes&lt;br /&gt;
Create with owner: root&lt;br /&gt;
Create with permissions: 775&lt;br /&gt;
Create with group: users&lt;br /&gt;
Available: yes&lt;br /&gt;
Browsable: yes&lt;br /&gt;
Share Comment: group share folder&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Once the share is setup, click it to edit it. Once you are at the Edit File Share page, click File Permissions. Notice how the New Unix file and New Unix directory are set to 755 by default, even though we set the share to use 775 to create the directory. This is done for security purposes.&lt;br /&gt;
# Now set the New Unix file and New Unix directory mode to 775, and set Force Unix group to users. You can now press save. We do this to allow authenticated users to modify and edit files that may have been added by other users.&lt;br /&gt;
# Now we will need to enable write access to the folder. On the Edit file share page again, click Security and Access Control. Now set the Writable option to Yes, and press save.&lt;br /&gt;
# At this point, you can test the share exactly the same way we did with the home folder share. Notice though how this share is set to browsable, so it shows up in the root share folder. Go ahead and create a file, and in putty, look at the user and group assigned to the files you created.&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_7&amp;diff=6361</id>
		<title>Franske ITC-2480 Lab 7</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_7&amp;diff=6361"/>
		<updated>2014-02-25T14:30:47Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account&lt;br /&gt;
# Make sure that webmin is installed on your system. &lt;br /&gt;
== Install Samba ==&lt;br /&gt;
# With your favorite package manager, install the samba package.&lt;br /&gt;
# After samba is installed, login into webmin on your local computers web browser.&lt;br /&gt;
# Under the servers tab, notice how samba does not show up. This is because we just installed the package.&lt;br /&gt;
# On the bottom of the left toolbar, click refresh modules. After a minute, it should refresh the page. Now look under the servers tab again. Does samba now show up?&lt;br /&gt;
== Setup a Guest Folder ==&lt;br /&gt;
# The first thing we are going to do is we are going to create a guest share. This share will allow for all users, even those who have not authenticated, to read files. &lt;br /&gt;
# To help you better understand samba, this first share will be configured from putty and command line. First, cd into /etc/samba/ and run a ls. In here we have two main files. smb.conf, which holds all of the samba share and authentication settings, and dhcp.conf which is no longer used, but used to be used to define host names and dns servers for samba to use.&lt;br /&gt;
# Now with your favorite text editor, open up smb.conf as root (remember to use sudo).&lt;br /&gt;
# Scroll to the bottom of the file, and notice how shares are defined. They all have a similar format such as:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[Share Name]&lt;br /&gt;
        comment = Share Comment&lt;br /&gt;
        options....&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Where options are the different configuration settings. Lets try creating the guest share folder from the config file manually.&lt;br /&gt;
# Exit out of nano, and create the folder /srv/Guest-Files as root. This will be the folder we are sharing.&lt;br /&gt;
# Now open up /etc/samba/smb.conf in a text editor again as root, and go to the bottom of the file.&lt;br /&gt;
# Enter the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Guest Share]&lt;br /&gt;
        comment = Public File Share&lt;br /&gt;
        path = /srv/Guest-Files&amp;lt;/pre&amp;gt;&lt;br /&gt;
# You have now created the public share. To test this share, go into /srv/Guest-Files and create a text file and enter some information. We will use this file to test the read-only settings of the share.&lt;br /&gt;
# At this point, we should be ready to test out our configuration. On your Local Computer, open up command line, and enter \\172.17.50.xx (Your IP you setup for the static address), and press enter. You should see a share folder called Guest Share. Open it up, and see if your text file is in the share.  Open up the file, and try to edit and save the file. What error do you get?&lt;br /&gt;
== Share Home Folders ==&lt;br /&gt;
# Now we are going to setup Home Folders. By default they are enabled, but write access is not. Notice what other folders are enabled in samba by default.&lt;br /&gt;
# First it must be noted that samba requires separate user accounts from the system, just like mysql. So first, we are going to add your user account.&lt;br /&gt;
# On the Webmin Samba config page, click Samba Users. Notice how none are currently defined. Go back, and then click Convert Users. This is the tool we will use to convert the local unix user accounts to samba.&lt;br /&gt;
# Now select the &amp;quot;Only listed users or UID ranges&amp;quot;, and enter your username.&lt;br /&gt;
# Now on the bottom, select &amp;quot;Use this password&amp;quot; and create a password for your samba user. Then click Convert Users when ready.&lt;br /&gt;
# When you are done, go to the Samba Users page again. Notice how your user account is now listed.&lt;br /&gt;
# Lastly we are going to setup write access to home folders, so you will be able to add files to your home directory over samba.&lt;br /&gt;
# On the samba config page, under Shares, click the home share. Next click Security and Access Control. Now set the Writable option to Yes, and then click save.&lt;br /&gt;
# Now go back to the Samba config page, and click the Restart Samba Servers option at the bottom. We do this to force samba to load the new configuration. You can also wait a minute or two if you don&#039;t want to disconnect any connected users.&lt;br /&gt;
# At this point, we should be ready to test out our configuration. On your Local Computer, open up command line, and enter \\172.17.50.xx (Your IP you setup for the static address), and press enter. Notice how you have an empty share because you are connected without any authentication. Now, in the top URL window, add \username to the path, so ex \\172.17.50.xx\user. You should now get a login popup. Login as your user, and you should be greeted with your home folder.&lt;br /&gt;
# Test creating and deleting a file to verify write access is working. &lt;br /&gt;
== Setup a Group Share Folder ==&lt;br /&gt;
# Now we are going to setup a group folder share that will allow for all samba users to read and write to the folder.&lt;br /&gt;
# Now back in the webmin samba config panel, we are going to create a new share. Under shares, select the Create a new file share link.&lt;br /&gt;
# Use the following base configuration:&lt;br /&gt;
&amp;lt;pre&amp;gt;Share Name: Share-Files&lt;br /&gt;
Directory to share: /srv/Group-Share&lt;br /&gt;
Automatically Create Directory: Yes&lt;br /&gt;
Create with owner: root&lt;br /&gt;
Create with permissions: 775&lt;br /&gt;
Create with group: users&lt;br /&gt;
Available: yes&lt;br /&gt;
Browsable: yes&lt;br /&gt;
Share Comment: group share folder&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Once the share is setup, click it to edit it. Once you are at the Edit File Share page, click File Permissions. Notice how the New Unix file and New Unix directory are set to 755 by default, even though we set the share to use 775 to create the directory. This is done for security purposes.&lt;br /&gt;
# Now set the New Unix file and New Unix directory mode to 775, and set Force Unix group to users. You can now press save. We do this to allow authenticated users to modify and edit files that may have been added by other users.&lt;br /&gt;
# Now we will need to enable write access to the folder. On the Edit file share page again, click Security and Access Control. Now set the Writable option to Yes, and press save.&lt;br /&gt;
# At this point, you can test the share exactly the same way we did with the home folder share. Notice though how this share is set to browsable, so it shows up in the root share folder. Go ahead and create a file, and in putty, look at the user and group assigned to the files you created.&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_7&amp;diff=6360</id>
		<title>Franske ITC-2480 Lab 7</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_7&amp;diff=6360"/>
		<updated>2014-02-25T14:15:52Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account&lt;br /&gt;
# Make sure that webmin is installed on your system. &lt;br /&gt;
== Install Samba ==&lt;br /&gt;
# With your favorite package manager, install the samba package.&lt;br /&gt;
# After samba is installed, login into webmin on your local computers web browser.&lt;br /&gt;
# Under the servers tab, notice how samba does not show up. This is because we just installed the package.&lt;br /&gt;
# On the bottom of the left toolbar, click refresh modules. After a minute, it should refresh the page. Now look under the servers tab again. Does samba now show up?&lt;br /&gt;
== Share Home Folders ==&lt;br /&gt;
# Now we are going to setup Home Folders. By default they are enabled, but write access is not. Notice what other folders are enabled in samba by default.&lt;br /&gt;
# First it must be noted that samba requires separate user accounts from the system, just like mysql. So first, we are going to add your user account.&lt;br /&gt;
# On the Webmin Samba config page, click Samba Users. Notice how none are currently defined. Go back, and then click Convert Users. This is the tool we will use to convert the local unix user accounts to samba.&lt;br /&gt;
# Now select the &amp;quot;Only listed users or UID ranges&amp;quot;, and enter your username.&lt;br /&gt;
# Now on the bottom, select &amp;quot;Use this password&amp;quot; and create a password for your samba user. Then click Convert Users when ready.&lt;br /&gt;
# When you are done, go to the Samba Users page again. Notice how your user account is now listed.&lt;br /&gt;
# Lastly we are going to setup write access to home folders, so you will be able to add files to your home directory over samba.&lt;br /&gt;
# On the samba config page, under Shares, click the home share. Next click Security and Access Control. Now set the Writable option to Yes, and then click save.&lt;br /&gt;
# Now go back to the Samba config page, and click the Restart Samba Servers option at the bottom. We do this to force samba to load the new configuration. You can also wait a minute or two if you don&#039;t want to disconnect any connected users.&lt;br /&gt;
# At this point, we should be ready to test out our configuration. On your Local Computer, open up command line, and enter \\172.17.50.xx (Your IP you setup for the static address), and press enter. Notice how you have an empty share because you are connected without any authentication. Now, in the top URL window, add \username to the path, so ex \\172.17.50.xx\user. You should now get a login popup. Login as your user, and you should be greeted with your home folder.&lt;br /&gt;
# Test creating and deleting a file to verify write access is working. &lt;br /&gt;
== Setup a Group Share Folder ==&lt;br /&gt;
# Now we are going to setup a group folder share that will allow for all samba users to read and write to the folder.&lt;br /&gt;
# Now back in the webmin samba config panel, we are going to create a new share. Under shares, select the Create a new file share link.&lt;br /&gt;
# Use the following base configuration:&lt;br /&gt;
&amp;lt;pre&amp;gt;Share Name: Share-Files&lt;br /&gt;
Directory to share: /srv/Group-Share&lt;br /&gt;
Automatically Create Directory: Yes&lt;br /&gt;
Create with owner: root&lt;br /&gt;
Create with permissions: 775&lt;br /&gt;
Create with group: users&lt;br /&gt;
Available: yes&lt;br /&gt;
Browsable: yes&lt;br /&gt;
Share Comment: group share folder&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Once the share is setup, click it to edit it. Once you are at the Edit File Share page, click File Permissions. Notice how the New Unix file and New Unix directory are set to 755 by default, even though we set the share to use 775 to create the directory. This is done for security purposes.&lt;br /&gt;
# Now set the New Unix file and New Unix directory mode to 775, and set Force Unix group to users. You can now press save. We do this to allow authenticated users to modify and edit files that may have been added by other users.&lt;br /&gt;
# Now we will need to enable write access to the folder. On the Edit file share page again, click Security and Access Control. Now set the Writable option to Yes, and press save.&lt;br /&gt;
# At this point, you can test the share exactly the same way we did with the home folder share. Notice though how this share is set to browsable, so it shows up in the root share folder. Go ahead and create a file, and in putty, look at the user and group assigned to the files you created.&lt;br /&gt;
&lt;br /&gt;
== Setup a Guest Folder ==&lt;br /&gt;
# Now we are going to setup a guest share folder. For this share, we will want to disable all authentication, but set the files to read only for security purposes.&lt;br /&gt;
# Back on the Samba Windows File Sharing config page in webmin, click Create a new file share.&lt;br /&gt;
# Use the following base configuration:&lt;br /&gt;
&amp;lt;pre&amp;gt;Share Name: Guest Share&lt;br /&gt;
Directory to share: /srv/Guest-Files&lt;br /&gt;
Automatically Create Directory: Yes&lt;br /&gt;
Create with owner: root&lt;br /&gt;
Create with permissions: 755&lt;br /&gt;
Create with group: root&lt;br /&gt;
Available: yes&lt;br /&gt;
Browsable: yes&lt;br /&gt;
Share Comment: Public File Share&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now click the Guest Share link to open its configuration page, and then click Security and Access Control. As we are setting this to be accessible by everyone, under Guest Access, set the option to yes and then press save.&lt;br /&gt;
# Now back in putty, browse to /srv/Guest-Files/ and using sudo, create a text file with some contents, then save the file. We will use this to test our permission settings.&lt;br /&gt;
# Now back on your local machine, browse back to the root of the share (\\172.17.50.xx\). Notice how there is now a folder called Guest Share, and when you enter it, your text file shows up. Open up the file, and try to edit and save the file. What error do you get?&lt;br /&gt;
# At this point you have successfully setup a guest share, PAM share, and home folder shares.&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_7&amp;diff=6359</id>
		<title>Franske ITC-2480 Lab 7</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_7&amp;diff=6359"/>
		<updated>2014-02-25T14:15:46Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: Blanked the page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_7&amp;diff=6358</id>
		<title>Franske ITC-2480 Lab 7</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_7&amp;diff=6358"/>
		<updated>2014-02-24T02:15:44Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: /* Setup a PAM Auth Folder */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account&lt;br /&gt;
# Make sure that webmin is installed on your system. &lt;br /&gt;
== Install Samba ==&lt;br /&gt;
# With your favorite package manager, install the samba package.&lt;br /&gt;
# After samba is installed, login into webmin on your local computers web browser.&lt;br /&gt;
# Under the servers tab, notice how samba does not show up. This is because we just installed the package.&lt;br /&gt;
# On the bottom of the left toolbar, click refresh modules. After a minute, it should refresh the page. Now look under the servers tab again. Does samba now show up?&lt;br /&gt;
== Share Home Folders ==&lt;br /&gt;
# Now we are going to setup Home Folders. By default they are enabled, but write access is not. Notice what other folders are enabled in samba by default.&lt;br /&gt;
# First it must be noted that samba requires separate user accounts from the system, just like mysql. So first, we are going to add your user account.&lt;br /&gt;
# On the Webmin Samba config page, click Samba Users. Notice how none are currently defined. Go back, and then click Convert Users. This is the tool we will use to convert the local unix user accounts to samba.&lt;br /&gt;
# Now select the &amp;quot;Only listed users or UID ranges&amp;quot;, and enter your username.&lt;br /&gt;
# Now on the bottom, select &amp;quot;Use this password&amp;quot; and create a password for your samba user. Then click Convert Users when ready.&lt;br /&gt;
# When you are done, go to the Samba Users page again. Notice how your user account is now listed.&lt;br /&gt;
# Lastly we are going to setup write access to home folders, so you will be able to add files to your home directory over samba.&lt;br /&gt;
# On the samba config page, under Shares, click the home share. Next click Security and Access Control. Now set the Writable option to Yes, and then click save.&lt;br /&gt;
# Now go back to the Samba config page, and click the Restart Samba Servers option at the bottom. We do this to force samba to load the new configuration. You can also wait a minute or two if you don&#039;t want to disconnect any connected users.&lt;br /&gt;
# At this point, we should be ready to test out our configuration. On your Local Computer, open up command line, and enter \\172.17.50.xx (Your IP you setup for the static address), and press enter. Notice how you have an empty share because you are connected without any authentication. Now, in the top URL window, add \username to the path, so ex \\172.17.50.xx\user. You should now get a login popup. Login as your user, and you should be greeted with your home folder.&lt;br /&gt;
# Test creating and deleting a file to verify write access is working. &lt;br /&gt;
== Setup a PAM Auth Folder ==&lt;br /&gt;
# Now we are going to setup a PAM authentication folder share. PAM (Pluggable Authentication Modules) allows for dynamic authorization for applications and services on a Linux system. This means that as long as a user has an account defined in samba, they will have access to this shared folder we are creating.&lt;br /&gt;
# Now back in the webmin samba config panel, we are going to create a new share. Under shares, select the Create a new file share link.&lt;br /&gt;
# Use the following base configuration:&lt;br /&gt;
&amp;lt;pre&amp;gt;Share Name: PAM-Files&lt;br /&gt;
Directory to share: /srv/PAM-Share&lt;br /&gt;
Automatically Create Directory: Yes&lt;br /&gt;
Create with owner: root&lt;br /&gt;
Create with permissions: 775&lt;br /&gt;
Create with group: users&lt;br /&gt;
Available: yes&lt;br /&gt;
Browsable: yes&lt;br /&gt;
Share Comment: PAM user share folder&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Once the share is setup, click it to edit it. Once you are at the Edit File Share page, click File Permissions. Notice how the New Unix file and New Unix directory are set to 755 by default, even though we set the share to use 775 to create the directory. This is done for security purposes.&lt;br /&gt;
# Now set the New Unix file and New Unix directory mode to 775, and set Force Unix group to users. You can now press save. We do this to allow authenticated users to modify and edit files that may have been added by other users.&lt;br /&gt;
# Now we will need to enable write access to the folder. On the Edit file share page again, click Security and Access Control. Now set the Writable option to Yes, and press save.&lt;br /&gt;
# At this point, you can test the share exactly the same way we did with the home folder share. Notice though how this share is set to browsable, so it shows up in the root share folder. Go ahead and create a file, and in putty, look at the user and group assigned to the files you created.&lt;br /&gt;
&lt;br /&gt;
== Setup a Guest Folder ==&lt;br /&gt;
# Now we are going to setup a guest share folder. For this share, we will want to disable all authentication, but set the files to read only for security purposes.&lt;br /&gt;
# Back on the Samba Windows File Sharing config page in webmin, click Create a new file share.&lt;br /&gt;
# Use the following base configuration:&lt;br /&gt;
&amp;lt;pre&amp;gt;Share Name: Guest Share&lt;br /&gt;
Directory to share: /srv/Guest-Files&lt;br /&gt;
Automatically Create Directory: Yes&lt;br /&gt;
Create with owner: root&lt;br /&gt;
Create with permissions: 755&lt;br /&gt;
Create with group: root&lt;br /&gt;
Available: yes&lt;br /&gt;
Browsable: yes&lt;br /&gt;
Share Comment: Public File Share&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now click the Guest Share link to open its configuration page, and then click Security and Access Control. As we are setting this to be accessible by everyone, under Guest Access, set the option to yes and then press save.&lt;br /&gt;
# Now back in putty, browse to /srv/Guest-Files/ and using sudo, create a text file with some contents, then save the file. We will use this to test our permission settings.&lt;br /&gt;
# Now back on your local machine, browse back to the root of the share (\\172.17.50.xx\). Notice how there is now a folder called Guest Share, and when you enter it, your text file shows up. Open up the file, and try to edit and save the file. What error do you get?&lt;br /&gt;
# At this point you have successfully setup a guest share, PAM share, and home folder shares.&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Assignments&amp;diff=6357</id>
		<title>Franske ITC-2480 Assignments</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Assignments&amp;diff=6357"/>
		<updated>2014-02-24T02:13:15Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Labs=&lt;br /&gt;
You are responsible for completing ALL of these labs. You must submit a [[Franske Lab Report Format|lab report]] for each chapter (you may combine multiple labs from the chapter into a single report). If you work with a partner on a lab you only need to submit a single lab report for the two of you but it must have both your names on it. Each lab report is worth up to 20 points. This falls into the Labs/Homework category of your course grade.&lt;br /&gt;
&lt;br /&gt;
# [[Franske ITC-2480 Lab 1|Lab 1: Install Debian, check IP, remote access with ssh/sftp]]&lt;br /&gt;
# [[Franske ITC-2480 Lab 2|Lab 2: Install Links, install Apache, download, copy, move, remove files, tar file extraction, directories]]&lt;br /&gt;
# [[Franske ITC-2480 Lab 3|Lab 3: Install sudo, create new user, change ownership and permissions on files/dirs, view man pages, install webmin]]&lt;br /&gt;
# [[Franske ITC-2480 Lab 4|Lab 4: redirect/pipe output, create links, create compressed files, text editing]]&lt;br /&gt;
# [[Franske ITC-2480 Lab 5|Lab 5: Set static IP, install PHP/mySQL, experiment with websites and databases, view logfiles]] &lt;br /&gt;
# [[Franske ITC-2480 Lab 6|Lab 6: Install forum &amp;amp; blog software, experiment with PHP]]&lt;br /&gt;
# [[Franske ITC-2480 Lab 7|Lab 7: Install Samba, configure for basic workgroup filesharing]] &lt;br /&gt;
# Lab 8: Install Postfix MTA, courier-imap &lt;br /&gt;
# Lab 9: Install BIND and configure as caching plus zones for a local domain &lt;br /&gt;
# Lab 10: 2nd NIC internal network configuration &lt;br /&gt;
# Lab 11: Explore /proc /dev, Partition/format/mount 2nd HDD &lt;br /&gt;
# Lab 12: Use of nmap, netstat, MRTG/cacti, Nagios &lt;br /&gt;
# Lab 13: Write BASH scripts&lt;br /&gt;
&lt;br /&gt;
=Homework=&lt;br /&gt;
Any homework assigned in the course will go here. This falls into the Labs/Homework category of your course grade. Remember, for homework assignments turn in the actual pages from your lab book or printouts from the curriculum and not a lab report. Homework assignment are individual, you and your lab partner need to both turn them in separately even if you work on them together.&lt;br /&gt;
&lt;br /&gt;
=Participation Activities=&lt;br /&gt;
Any participation activities completed in the course will go here. This falls into the participation category of your course grade.&lt;br /&gt;
* Meet with the instructor once per week to discuss course progress and ask questions (up to 10 points each based on progress)&lt;br /&gt;
&lt;br /&gt;
=Unit Assessments=&lt;br /&gt;
You are responsible for completing an online unit assessment for each chapter. These fall into the online assessments category of your course grade.&lt;br /&gt;
&lt;br /&gt;
=Other=&lt;br /&gt;
You are also responsible for completing these things, see the course syllabus for category and weighting information.&lt;br /&gt;
* Online Final Exam&lt;br /&gt;
* Skills Final Exam&lt;br /&gt;
&lt;br /&gt;
=Skills Final Exam=&lt;br /&gt;
The Skills Final Exam is designed to test your ability to apply the concepts learned in this class and practiced in labs to common, real-world scenarios.&lt;br /&gt;
&lt;br /&gt;
[[Franske ITC-2480|Return to ITC-2480 Homepage]]&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_7&amp;diff=6356</id>
		<title>Franske ITC-2480 Lab 7</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_7&amp;diff=6356"/>
		<updated>2014-02-24T02:12:26Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account&lt;br /&gt;
# Make sure that webmin is installed on your system. &lt;br /&gt;
== Install Samba ==&lt;br /&gt;
# With your favorite package manager, install the samba package.&lt;br /&gt;
# After samba is installed, login into webmin on your local computers web browser.&lt;br /&gt;
# Under the servers tab, notice how samba does not show up. This is because we just installed the package.&lt;br /&gt;
# On the bottom of the left toolbar, click refresh modules. After a minute, it should refresh the page. Now look under the servers tab again. Does samba now show up?&lt;br /&gt;
== Share Home Folders ==&lt;br /&gt;
# Now we are going to setup Home Folders. By default they are enabled, but write access is not. Notice what other folders are enabled in samba by default.&lt;br /&gt;
# First it must be noted that samba requires separate user accounts from the system, just like mysql. So first, we are going to add your user account.&lt;br /&gt;
# On the Webmin Samba config page, click Samba Users. Notice how none are currently defined. Go back, and then click Convert Users. This is the tool we will use to convert the local unix user accounts to samba.&lt;br /&gt;
# Now select the &amp;quot;Only listed users or UID ranges&amp;quot;, and enter your username.&lt;br /&gt;
# Now on the bottom, select &amp;quot;Use this password&amp;quot; and create a password for your samba user. Then click Convert Users when ready.&lt;br /&gt;
# When you are done, go to the Samba Users page again. Notice how your user account is now listed.&lt;br /&gt;
# Lastly we are going to setup write access to home folders, so you will be able to add files to your home directory over samba.&lt;br /&gt;
# On the samba config page, under Shares, click the home share. Next click Security and Access Control. Now set the Writable option to Yes, and then click save.&lt;br /&gt;
# Now go back to the Samba config page, and click the Restart Samba Servers option at the bottom. We do this to force samba to load the new configuration. You can also wait a minute or two if you don&#039;t want to disconnect any connected users.&lt;br /&gt;
# At this point, we should be ready to test out our configuration. On your Local Computer, open up command line, and enter \\172.17.50.xx (Your IP you setup for the static address), and press enter. Notice how you have an empty share because you are connected without any authentication. Now, in the top URL window, add \username to the path, so ex \\172.17.50.xx\user. You should now get a login popup. Login as your user, and you should be greeted with your home folder.&lt;br /&gt;
# Test creating and deleting a file to verify write access is working. &lt;br /&gt;
== Setup a PAM Auth Folder ==&lt;br /&gt;
# Now we are going to setup a PAM authentication folder share. PAM (Pluggable Authentication Modules) allows for dynamic authorization for applications and services on a Linux system. This means that as long as a user has an account defined in samba, they will have access to this shared folder we are creating.&lt;br /&gt;
# Now back in the webmin samba config panel, we are going to create a new share. Under shares, select the Create a new file share link.&lt;br /&gt;
# Use the following base configuration:&lt;br /&gt;
&amp;lt;pre&amp;gt;Share Name: PAM-Files&lt;br /&gt;
Directory to share: /srv/PAM-Share&lt;br /&gt;
Automatically Create Directory: Yes&lt;br /&gt;
Create with owner: root&lt;br /&gt;
Create with permissions: 775&lt;br /&gt;
Create with group: users&lt;br /&gt;
Available: yes&lt;br /&gt;
Browsable: yes&lt;br /&gt;
Share Comment: PAM user share folder&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Once the share is setup, click it to edit it. Once you are at the Edit File Share page, click File Permissions. Notice how the New Unix file and New Unix directory are set to 755 by default, even though we set the share to use 775 to create the directory. This is done for security purposes.&lt;br /&gt;
# Now set the New Unix file and New Unix directory mode to 775, and set Force Unix group to users. You can now press save. We do this to allow authenticated users to modify and edit files that may have been added by other users.&lt;br /&gt;
# Now we will need to enable write access to the folder, as well as define what users are valid. On the Edit file share page again, click Security and Access Control. Now set the Writable option to Yes, and press save.&lt;br /&gt;
# At this point, you can test the share exactly the same way we did with the home folder share. Notice though how this share is set to browsable, so it shows up in the root share folder. Go ahead and create a file, and in putty, look at the user and group assigned to the files you created.&lt;br /&gt;
== Setup a Guest Folder ==&lt;br /&gt;
# Now we are going to setup a guest share folder. For this share, we will want to disable all authentication, but set the files to read only for security purposes.&lt;br /&gt;
# Back on the Samba Windows File Sharing config page in webmin, click Create a new file share.&lt;br /&gt;
# Use the following base configuration:&lt;br /&gt;
&amp;lt;pre&amp;gt;Share Name: Guest Share&lt;br /&gt;
Directory to share: /srv/Guest-Files&lt;br /&gt;
Automatically Create Directory: Yes&lt;br /&gt;
Create with owner: root&lt;br /&gt;
Create with permissions: 755&lt;br /&gt;
Create with group: root&lt;br /&gt;
Available: yes&lt;br /&gt;
Browsable: yes&lt;br /&gt;
Share Comment: Public File Share&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now click the Guest Share link to open its configuration page, and then click Security and Access Control. As we are setting this to be accessible by everyone, under Guest Access, set the option to yes and then press save.&lt;br /&gt;
# Now back in putty, browse to /srv/Guest-Files/ and using sudo, create a text file with some contents, then save the file. We will use this to test our permission settings.&lt;br /&gt;
# Now back on your local machine, browse back to the root of the share (\\172.17.50.xx\). Notice how there is now a folder called Guest Share, and when you enter it, your text file shows up. Open up the file, and try to edit and save the file. What error do you get?&lt;br /&gt;
# At this point you have successfully setup a guest share, PAM share, and home folder shares.&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_7&amp;diff=6355</id>
		<title>Franske ITC-2480 Lab 7</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_7&amp;diff=6355"/>
		<updated>2014-02-24T02:02:37Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: Rev 1, incomplete&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account&lt;br /&gt;
# Make sure that webmin is installed on your system. &lt;br /&gt;
== Install Samba ==&lt;br /&gt;
# With your favorite package manager, install the samba package.&lt;br /&gt;
# After samba is installed, login into webmin on your local computers web browser.&lt;br /&gt;
# Under the servers tab, notice how samba does not show up. This is because we just installed the package.&lt;br /&gt;
# On the bottom of the left toolbar, click refresh modules. After a minute, it should refresh the page. Now look under the servers tab again. Does samba now show up?&lt;br /&gt;
== Share Home Folders ==&lt;br /&gt;
# Now we are going to setup Home Folders. By default they are enabled, but write access is not.&lt;br /&gt;
# First it must be noted that samba requres seperate user accounts from the system, just like mysql. So first, we are going to add your user account.&lt;br /&gt;
# On the Webmin Samba config page, click Samba Users. Notice how none are currently defined. Go back, and then click Convert Users. This is the tool we will use to convert the local unix user accounts to samba.&lt;br /&gt;
# Now select the &amp;quot;Only listed users or UID ranges&amp;quot;, and enter your username.&lt;br /&gt;
# Now on the bottom, select &amp;quot;Use this password&amp;quot; and create a password for your samba user. Then click Convert Users when ready.&lt;br /&gt;
# When you are done, go to the Samba Users page again. Notice how your user account is now listed.&lt;br /&gt;
# Lastly we are going to setup write access to home folders, so you will be able to add files to your home directory over samba.&lt;br /&gt;
# On the samba config page, under Shares, click the home share. Next click Security and Access Control. Now set the Writable option to Yes, and then click save.&lt;br /&gt;
# Now go back to the Samba config page, and click the Restart Samba Servers option at the bottom. We do this to force samba to load the new configuration. You can also wait a minute or two if you don&#039;t want to disconnect any connected users.&lt;br /&gt;
# At this point, we should be ready to test out our configuration. On your Local Computer, open up command line, and enter \\172.17.50.xx (Your IP you setup for the static address), and press enter. Notice how you have an empty share because you are connected without any authentication. Now, in the top URL window, add \username to the path, so ex \\172.17.50.xx\user. You should now get a login popup. Login as your user, and you should be greeted with your home folder.&lt;br /&gt;
# Test creating and deleting a file to verify write access is working. &lt;br /&gt;
== Setup PAM Auth Folder ==&lt;br /&gt;
# Now we are going to setup a PAM authentication folder share. PAM (Pluggable Authentication Modules) allows for dynamic authorization for applications and services on a Linux system. This means that as long as a user has an account defined in samba, they will have access to this shared folder we are creating.&lt;br /&gt;
# Now back in the webmin samba config panel, we are going to create a new share. Under shares, select the Create a new file share link.&lt;br /&gt;
# Use the following base configuration:&lt;br /&gt;
&amp;lt;pre&amp;gt;Share Name: PAM-Files&lt;br /&gt;
Directory to share: /srv/PAM-Share&lt;br /&gt;
Automatically Create Directory: Yes&lt;br /&gt;
Create with owner: root&lt;br /&gt;
Create with permissions: 775&lt;br /&gt;
Create with group: users&lt;br /&gt;
Available: yes&lt;br /&gt;
Browsable: yes&lt;br /&gt;
Share Comment: PAM user share folder&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Once the share is setup, click it to edit it. Once you are at the Edit File Share page, click File Permissions. Notice how the New Unix file and New Unix directory are set to 755 by default, even though we set the share to use 775 to create the directory. This is done for security purposes.&lt;br /&gt;
# Now set the New Unix file and New Unix directory mode to 775, and set Force Unix group to users. You can now press save. We do this to allow authenticated users to modify and edit files that may have been added by other users.&lt;br /&gt;
# Now we will need to enable write access to the folder, as well as define what users are valid. On the Edit file share page again, click Security and Access Control. Now set the Writeable option to Yes, and press save.&lt;br /&gt;
# At this point, you can test the share exactly the same way we did with the home folder share. Notice though how this share is set to browsable, so it shows up in the root share folder. Go ahead and create a file, and in putty, look at the user and group assigned to the files you created.&lt;br /&gt;
== Setup Guest Folder ==&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_5&amp;diff=6346</id>
		<title>Franske ITC-2480 Lab 5</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_5&amp;diff=6346"/>
		<updated>2014-02-13T00:20:18Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
In this lab you will learn about static network configuration of Debian Linux systems, how to install PHP and MySQL on your server, experiment with websites and databases, and some of the standard log files on your system.&lt;br /&gt;
&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account&lt;br /&gt;
# Make a note of the static IP address information for your particular system in the table below, it is based on the system name identification letter in vmWare. All systems will use a gateway address of 172.17.50.1 and a subnet mask of 255.255.255.0&lt;br /&gt;
{| {{table}}&lt;br /&gt;
| align=&amp;quot;center&amp;quot; style=&amp;quot;background:#f0f0f0;&amp;quot;|&#039;&#039;&#039;System ID&#039;&#039;&#039;&lt;br /&gt;
| align=&amp;quot;center&amp;quot; style=&amp;quot;background:#f0f0f0;&amp;quot;|&#039;&#039;&#039;Static IP&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| A||172.17.50.11&lt;br /&gt;
|-&lt;br /&gt;
| B||172.17.50.12&lt;br /&gt;
|-&lt;br /&gt;
| C||172.17.50.13&lt;br /&gt;
|-&lt;br /&gt;
| D||172.17.50.14&lt;br /&gt;
|-&lt;br /&gt;
| E||172.17.50.15&lt;br /&gt;
|-&lt;br /&gt;
| F||172.17.50.16&lt;br /&gt;
|-&lt;br /&gt;
| G||172.17.50.17&lt;br /&gt;
|-&lt;br /&gt;
| H||172.17.50.18&lt;br /&gt;
|-&lt;br /&gt;
| I||172.17.50.19&lt;br /&gt;
|-&lt;br /&gt;
| J||172.17.50.20&lt;br /&gt;
|-&lt;br /&gt;
| K||172.17.50.21&lt;br /&gt;
|-&lt;br /&gt;
| L||172.17.50.22&lt;br /&gt;
|-&lt;br /&gt;
| M||172.17.50.23&lt;br /&gt;
|-&lt;br /&gt;
| N||172.17.50.24&lt;br /&gt;
|-&lt;br /&gt;
| O||172.17.50.25&lt;br /&gt;
|-&lt;br /&gt;
| P||172.17.50.26&lt;br /&gt;
|-&lt;br /&gt;
| Q||172.17.50.27&lt;br /&gt;
|-&lt;br /&gt;
| R||172.17.50.28&lt;br /&gt;
|-&lt;br /&gt;
| S||172.17.50.29&lt;br /&gt;
|-&lt;br /&gt;
| T||172.17.50.30&lt;br /&gt;
|-&lt;br /&gt;
| U||172.17.50.31&lt;br /&gt;
|-&lt;br /&gt;
| V||172.17.50.32&lt;br /&gt;
|-&lt;br /&gt;
| W||172.17.50.33&lt;br /&gt;
|-&lt;br /&gt;
| X||172.17.50.34&lt;br /&gt;
|-&lt;br /&gt;
| Y||172.17.50.35&lt;br /&gt;
|-&lt;br /&gt;
| Z||172.17.50.36&lt;br /&gt;
|}&lt;br /&gt;
==Set a static IP==&lt;br /&gt;
# Using your text editor of choice, open up the file /etc/network/interfaces&lt;br /&gt;
# Notice how it is currently set to dhcp for the eth0 interface.&lt;br /&gt;
# To set a static IP, you will need to change iface eth0 inet dhcp to iface eth0 inet static.&lt;br /&gt;
# Now, under the iface line you just edited, you will need to enter the address, netmask, and gateway for the static network.&lt;br /&gt;
#* Reminder: it is common practice to indent (tab) static network configuration information in the interfaces file.&lt;br /&gt;
# Your configuration should be similar to this:&lt;br /&gt;
&amp;lt;pre&amp;gt;auto eth0&lt;br /&gt;
iface eth0 inet static&lt;br /&gt;
	address xxx.xxx.xxx.xxx&lt;br /&gt;
	netmask xxx.xxx.xxx.xxx&lt;br /&gt;
	gateway xxx.xxx.xxx.xxx&lt;br /&gt;
	dns-nameservers xxx.xxx.xxx.xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now save the file, and exit your file editor.&lt;br /&gt;
# Now we are going to apply the static IP change. Try using ifconfig to view your active configuration now and you should see that your old address is still active.&lt;br /&gt;
#* &#039;&#039;&#039;NOTE: You should only do network configuration changes when you have physical access to a machine. This way, if you mess up your configuration you will be able to fix it from a local console.&#039;&#039;&#039;&lt;br /&gt;
# Using the ifdown and ifup command, we are going to restart the network interface, this step is required to apply the change.&lt;br /&gt;
# In a terminal, run sudo ifdown eth0 &amp;amp;&amp;amp; sudo ifup eth0. Notice the two &amp;amp;&amp;amp; symbols. This tells the linux shell that it should run the second command right after the first. If we do not define this, then we would be left with a machine that has its networking turned off.&lt;br /&gt;
# At this point, your machine should now be using a static address. You will lose your SSH connection because the IP your SSH session is connected to is no longer in use by your machine.&lt;br /&gt;
# Reconnect through SSH to your new IP address and verify it is now applied using the ifconfig command.&lt;br /&gt;
&lt;br /&gt;
==Install PHP &amp;amp; MySQL==&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Using aptitude, install the php and mysql packages using aptitude install php5 mysql-server&amp;lt;/li&amp;gt;&lt;br /&gt;
* Note: Remember to do an aptitude update before installing packages to make sure you get the latest versions&lt;br /&gt;
&amp;lt;li&amp;gt; After the dependencies are found, go ahead and accept them to continue the install.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; During the mysql-server install, you will see a blue window (similar to the debian install screen) that will ask you to create a mysql root password. This password is what will be used to access the root account in mysql. Just like in linux, the mysql root account has full control of all databases hosted on the system. It does not need to be the same as your system root password but just like your system root password it is important that you keep it secure and don&#039;t forget what it is.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; After the install is complete, cd to /var/www&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; At this point we will test to verify that php is working properly with Apache. Create a new file named phptest.php, and then open it in a text editor.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Enter the following into the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;?php&lt;br /&gt;
phpinfo();&lt;br /&gt;
?&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Now save the file, and on your local machine go to xxx.xxx.xxx.xxx/phptest.php in a web browser where xxx.xxx.xxx.xxx is your VM&#039;s static IP. You should now be on a page that shows your PHP Version, and system information. Use the &amp;quot;View Source&amp;quot; option in your browser to see what the HTML source code is for the page you&#039;re viewing is. Is it the same or different than the .php file you created? Why? How is this different than a standard .html file?&lt;br /&gt;
* Note: PHP files are really tiny scripts that the webserver must execute in order to render them into HTML for the browser, therefore you may need to make adjustments so that the www-data user (which is the user the Apache webserver runs as on Debian Linux) has execute permission for the .php files you create.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Experiment with Websites PHP==&lt;br /&gt;
# In a previous lab we learned about editing the /var/www/index.html file to change the default web page displayed by your server. In a future lab you will install some PHP/MySQL based software which powers many Internet sites with forums, blogs, etc. Before we can do that we need to learn a little more about PHP and about databases. Like most software on Linux the Apache webserver configuration files are stored in the /etc directory. Specifically, you can find several of them which work together and are called from each other in /etc/apache2/ take a look in the /etc/apache2/sites-enabled/ directory. See how symlinks are used to point to configuration files which actually reside in the /etc/apache2/sites-available/ directory? This allows us to turn off and on various sites by creating or removing a symlink rather than by deleting the actual configuration file, a handy thing if we just want to temporarily disable a site.&lt;br /&gt;
# As you might have guessed the default site for your system is configured by the file linked to at /etc/apache2/sites-enabled/000-default If you open this file in your favorite text editor you will see a series of what Apache calls &amp;quot;directives&amp;quot; which explain how the webserver should function, what port it should listen on, where the website files will reside (/var/www), etc. Going into all of the different Apache directives is outside of the scope of this course but you will find a lot of documentation about them on the Internet.&lt;br /&gt;
# In addition to configuring Apache directly through it&#039;s configuration files you can also configure it through an interface like Webmin which we installed in a previous lab. Bring up the Webmin configuration page for Apache and take a look at the settings for the default site. Note how the things you saw directly in the configuration file match up with what you see in Webmin. One of the things you may be interested in seeing is how the webserver knows to display the index.html file from a deirctory if it exists and no specific file is requested in the URL. Take a look on the &amp;quot;Directory Indexing&amp;quot; page and see if you can find this information. You&#039;ll notice that there is a list of files, not just index.html which the server will display.&lt;br /&gt;
# In another section of this lab you created a basic phptest.php file and saw how the server executed the PHP code and turned it into an HTML page your browser could display. Because PHP offers an easy way to write web applications it powers much of the Internet. To prepare us for setting up some PHP applications in a future lab it will be helpful to know a little about how PHP scripts work. Read through the [http://www.w3schools.com/php/default.asp W3 Schools PHP Basics Tutorial] (PHP Intro through PHP Superglobals) and try creating some PHP scripts on your own Linux server like the examples given in the tutorial pages to see if you can get them to run, try modifying them a little bit and see what the results are. There are many great Internet resources devoted to understanding how to do things with PHP so take some time to see how this language can be easily integrated in websites. You should definitely be familiar with editing PHP files to change variables, echo statements, etc. work which are all skills you&#039;ll need when installing PHP based website software.&lt;br /&gt;
# Try writing some simple PHP scripts on your own using variables and echo statements and make them available through your webserver. Edit your index.html file (or create a new index.php file which will be loaded instead if it exists) so there is a menu for you to find and run the various scripts you have created.&lt;br /&gt;
&lt;br /&gt;
==Experiment with Databases==&lt;br /&gt;
# In order to do really powerful things with a website we need a database where we can store dynamic content which can be queried to automatically build site pages from a template. One of the most common databases is an SQL database, and MySQL has long been the most prevalent Linux SQL software. SQL is a standard way of interacting with a specific type of database called a relational database, we&#039;ll see why it&#039;s called a relational database in a minute. Each database is a collection of data stored in tables. You can think of a table as something like a spreadsheet with rows and columns, except we call the columns fields and the rows records (sometimes we actually call them rows too). The different tables are often related to one another, of course they are usually being used by the same web application, but usually the relationship goes deeper than that as we&#039;ll see in a little bit.&lt;br /&gt;
# To jumpstart our exploration of databases we&#039;ll download a pre-built sample database with a few tables and many records already in it and import it into our MySQL database server. Download the employees database file [https://launchpad.net/test-db/employees-db-1/1.0.6/+download/employees_db-full-1.0.6.tar.bz2 employees_db-full-1.0.6.tar.bz2] (about 26MB) and get it into your home directory. Instead of using the links browser to do this or downloading to your computer and then pushing this large file back across the Internet with an SCP/SFTP client like FileZilla a better choice might be to learn about the wget program which can be used like &amp;quot;wget https://launchpad.net/test-db/employees-db-1/1.0.6/+download/employees_db-full-1.0.6.tar.bz2&amp;quot; to download the file into your current working directory.&lt;br /&gt;
# Figure out how to use the TAR program to unpack this .tar.bz2 file. Note that this file uses bz2 compression which takes longer to compress than gzip but can compress the files more. Once unpacked you should have an &amp;quot;employees_db&amp;quot; folder.&lt;br /&gt;
# Inside the employees_db folder you should have a number of .sql script files and dump files which can be used to restore the database to your system. Take a look at the employees.sql file, it&#039;s just a text file, which describes the format of the database. Also take a look at the load_employees.dump file, also just a text file, which contains all of the records from the employees table of the database. Note there are 300,000 some employee records in this database so you probably don&#039;t want to just use cat to view these files as it could take a while to print them out to your screen. Using the less program would be a better choice as it will allow you to exit viewing the file by pressing q at any time.&lt;br /&gt;
# We can interact with the MySQL server in many different ways. The first way we&#039;ll take a look at is through the command line mysql program. Run the &amp;quot;mysql -u root -p&amp;quot; command and enter the MySQL root password (which may be different than they system root password) to login to the mysql program with root permissions. The MySQL program actually stores it&#039;s own usernames and passwords as a MySQL database itself, you can create and modify these permissions from the mysql command line but we&#039;ll learn more about modifying them through the Webmin interface later.&lt;br /&gt;
# MySQL has it&#039;s own command line language the you can use through the &amp;quot;mysql&amp;gt;&amp;quot; prompt you are now running. For example, if we want to see a list of databases on the system we can run &amp;quot;SHOW databases;&amp;quot; run the command and note the databases that already exist by default.&lt;br /&gt;
# To import the employee database we can use the &amp;quot;source employees.sql;&amp;quot; command (assuming we were already working in the directory which contains the employees.sql file when we launched mysql. Import the employee database and verify the system now has an employees database.&lt;br /&gt;
# If we want to see all of the tables in the employees database we must first select the database we want to work on using the &amp;quot;USE employees;&amp;quot; command, run this followed by the &amp;quot;SHOW tables;&amp;quot; command to see a list of tables.&lt;br /&gt;
# To see a list of all the records in a table we need to run an SQL query like &amp;quot;SELECT * from employees&amp;quot; which will list all the records in the employees table of the employees database and display them. Remember that we previously selected to USE the employees database, this will be remembered until we USE a different database. Try displaying the records in a couple of different tables like employees and departments.&lt;br /&gt;
# There is much more that we can do from the MySQL command line but that would be a whole class or more itself. The MySQL program is well documented on the Internet and with these basic skills you should be able to figure out most of it. Before we leave the MySQL command line let&#039;s see how to delete the employees database. Run the command &amp;quot;DROP DATABASE employees;&amp;quot; to delete the entire database. Obviously the DROP command is one to be careful with as you can easily wipe out a huge database with one line! Type &amp;quot;exit;&amp;quot; to quit the MySQL program and return to a Linux shell.&lt;br /&gt;
# Now that you have learned a bit about MySQL databases from the command line let&#039;s see how they look in the Webmin web management interface. Log back in to your Webmin interface through a browser on your host system.&lt;br /&gt;
# Because MySQL was not installed when we first setup Webmin you need to &amp;quot;scan for new modules&amp;quot; first. Once that process has finished refresh the page to see that MySQL has been added to the server section of Webmin.&lt;br /&gt;
# Take a look at the Webmin MySQL module and see how users and permissions are configured.&lt;br /&gt;
# Load the employees.sql file through the Webmin MySQL module and see the employees database get added.&lt;br /&gt;
# Try browsing through the employees database using the Webmin interface including viewing tables and records inside of the tables.&lt;br /&gt;
&lt;br /&gt;
==View Logfiles==&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_5&amp;diff=6345</id>
		<title>Franske ITC-2480 Lab 5</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_5&amp;diff=6345"/>
		<updated>2014-02-13T00:19:05Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
In this lab you will learn about static network configuration of Debian Linux systems, how to install PHP and MySQL on your server, experiment with websites and databases, and some of the standard log files on your system.&lt;br /&gt;
&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account&lt;br /&gt;
# Make a note of the static IP address information for your particular system in the table below, it is based on the system name identification letter in vmWare. All systems will use a gateway address of 172.17.50.1 and a subnet mask of 255.255.255.0&lt;br /&gt;
{| {{table}}&lt;br /&gt;
| align=&amp;quot;center&amp;quot; style=&amp;quot;background:#f0f0f0;&amp;quot;|&#039;&#039;&#039;System ID&#039;&#039;&#039;&lt;br /&gt;
| align=&amp;quot;center&amp;quot; style=&amp;quot;background:#f0f0f0;&amp;quot;|&#039;&#039;&#039;Static IP&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| A||172.17.50.11&lt;br /&gt;
|-&lt;br /&gt;
| B||172.17.50.12&lt;br /&gt;
|-&lt;br /&gt;
| C||172.17.50.13&lt;br /&gt;
|-&lt;br /&gt;
| D||172.17.50.14&lt;br /&gt;
|-&lt;br /&gt;
| E||172.17.50.15&lt;br /&gt;
|-&lt;br /&gt;
| F||172.17.50.16&lt;br /&gt;
|-&lt;br /&gt;
| G||172.17.50.17&lt;br /&gt;
|-&lt;br /&gt;
| H||172.17.50.18&lt;br /&gt;
|-&lt;br /&gt;
| I||172.17.50.19&lt;br /&gt;
|-&lt;br /&gt;
| J||172.17.50.20&lt;br /&gt;
|-&lt;br /&gt;
| K||172.17.50.21&lt;br /&gt;
|-&lt;br /&gt;
| L||172.17.50.22&lt;br /&gt;
|-&lt;br /&gt;
| M||172.17.50.23&lt;br /&gt;
|-&lt;br /&gt;
| N||172.17.50.24&lt;br /&gt;
|-&lt;br /&gt;
| O||172.17.50.25&lt;br /&gt;
|-&lt;br /&gt;
| P||172.17.50.26&lt;br /&gt;
|-&lt;br /&gt;
| Q||172.17.50.27&lt;br /&gt;
|-&lt;br /&gt;
| R||172.17.50.28&lt;br /&gt;
|-&lt;br /&gt;
| S||172.17.50.29&lt;br /&gt;
|-&lt;br /&gt;
| T||172.17.50.30&lt;br /&gt;
|-&lt;br /&gt;
| U||172.17.50.31&lt;br /&gt;
|-&lt;br /&gt;
| V||172.17.50.32&lt;br /&gt;
|-&lt;br /&gt;
| W||172.17.50.33&lt;br /&gt;
|-&lt;br /&gt;
| X||172.17.50.34&lt;br /&gt;
|-&lt;br /&gt;
| Y||172.17.50.35&lt;br /&gt;
|-&lt;br /&gt;
| Z||172.17.50.36&lt;br /&gt;
|}&lt;br /&gt;
==Set a static IP==&lt;br /&gt;
# Using your text editor of choice, open up the file /etc/network/interfaces&lt;br /&gt;
# Notice how it is currently set to dhcp for the eth0 interface.&lt;br /&gt;
# To set a static IP, you will need to change iface eth0 inet dhcp to iface eth0 inet static.&lt;br /&gt;
# Now, under the iface line you just edited, you will need to enter the address, netmask, and gateway for the static network.&lt;br /&gt;
#* Reminder: it is common practice to indent (tab) static network configuration information in the interfaces file.&lt;br /&gt;
# Your configuration should be similar to this:&lt;br /&gt;
&amp;lt;pre&amp;gt;auto eth0&lt;br /&gt;
iface eth0 inet static&lt;br /&gt;
	address xxx.xxx.xxx.xxx&lt;br /&gt;
	netmask xxx.xxx.xxx.xxx&lt;br /&gt;
	gateway xxx.xxx.xxx.xxx&lt;br /&gt;
	dns-nameservers xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now save the file, and exit your file editor.&lt;br /&gt;
# Now we are going to apply the static IP change. Try using ifconfig to view your active configuration now and you should see that your old address is still active.&lt;br /&gt;
#* &#039;&#039;&#039;NOTE: You should only do network configuration changes when you have physical access to a machine. This way, if you mess up your configuration you will be able to fix it from a local console.&#039;&#039;&#039;&lt;br /&gt;
# Using the ifdown and ifup command, we are going to restart the network interface, this step is required to apply the change.&lt;br /&gt;
# In a terminal, run sudo ifdown eth0 &amp;amp;&amp;amp; sudo ifup eth0. Notice the two &amp;amp;&amp;amp; symbols. This tells the linux shell that it should run the second command right after the first. If we do not define this, then we would be left with a machine that has its networking turned off.&lt;br /&gt;
# At this point, your machine should now be using a static address. You will lose your SSH connection because the IP your SSH session is connected to is no longer in use by your machine.&lt;br /&gt;
# Reconnect through SSH to your new IP address and verify it is now applied using the ifconfig command.&lt;br /&gt;
&lt;br /&gt;
==Install PHP &amp;amp; MySQL==&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Using aptitude, install the php and mysql packages using aptitude install php5 mysql-server&amp;lt;/li&amp;gt;&lt;br /&gt;
* Note: Remember to do an aptitude update before installing packages to make sure you get the latest versions&lt;br /&gt;
&amp;lt;li&amp;gt; After the dependencies are found, go ahead and accept them to continue the install.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; During the mysql-server install, you will see a blue window (similar to the debian install screen) that will ask you to create a mysql root password. This password is what will be used to access the root account in mysql. Just like in linux, the mysql root account has full control of all databases hosted on the system. It does not need to be the same as your system root password but just like your system root password it is important that you keep it secure and don&#039;t forget what it is.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; After the install is complete, cd to /var/www&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; At this point we will test to verify that php is working properly with Apache. Create a new file named phptest.php, and then open it in a text editor.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Enter the following into the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;?php&lt;br /&gt;
phpinfo();&lt;br /&gt;
?&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Now save the file, and on your local machine go to xxx.xxx.xxx.xxx/phptest.php in a web browser where xxx.xxx.xxx.xxx is your VM&#039;s static IP. You should now be on a page that shows your PHP Version, and system information. Use the &amp;quot;View Source&amp;quot; option in your browser to see what the HTML source code is for the page you&#039;re viewing is. Is it the same or different than the .php file you created? Why? How is this different than a standard .html file?&lt;br /&gt;
* Note: PHP files are really tiny scripts that the webserver must execute in order to render them into HTML for the browser, therefore you may need to make adjustments so that the www-data user (which is the user the Apache webserver runs as on Debian Linux) has execute permission for the .php files you create.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Experiment with Websites PHP==&lt;br /&gt;
# In a previous lab we learned about editing the /var/www/index.html file to change the default web page displayed by your server. In a future lab you will install some PHP/MySQL based software which powers many Internet sites with forums, blogs, etc. Before we can do that we need to learn a little more about PHP and about databases. Like most software on Linux the Apache webserver configuration files are stored in the /etc directory. Specifically, you can find several of them which work together and are called from each other in /etc/apache2/ take a look in the /etc/apache2/sites-enabled/ directory. See how symlinks are used to point to configuration files which actually reside in the /etc/apache2/sites-available/ directory? This allows us to turn off and on various sites by creating or removing a symlink rather than by deleting the actual configuration file, a handy thing if we just want to temporarily disable a site.&lt;br /&gt;
# As you might have guessed the default site for your system is configured by the file linked to at /etc/apache2/sites-enabled/000-default If you open this file in your favorite text editor you will see a series of what Apache calls &amp;quot;directives&amp;quot; which explain how the webserver should function, what port it should listen on, where the website files will reside (/var/www), etc. Going into all of the different Apache directives is outside of the scope of this course but you will find a lot of documentation about them on the Internet.&lt;br /&gt;
# In addition to configuring Apache directly through it&#039;s configuration files you can also configure it through an interface like Webmin which we installed in a previous lab. Bring up the Webmin configuration page for Apache and take a look at the settings for the default site. Note how the things you saw directly in the configuration file match up with what you see in Webmin. One of the things you may be interested in seeing is how the webserver knows to display the index.html file from a deirctory if it exists and no specific file is requested in the URL. Take a look on the &amp;quot;Directory Indexing&amp;quot; page and see if you can find this information. You&#039;ll notice that there is a list of files, not just index.html which the server will display.&lt;br /&gt;
# In another section of this lab you created a basic phptest.php file and saw how the server executed the PHP code and turned it into an HTML page your browser could display. Because PHP offers an easy way to write web applications it powers much of the Internet. To prepare us for setting up some PHP applications in a future lab it will be helpful to know a little about how PHP scripts work. Read through the [http://www.w3schools.com/php/default.asp W3 Schools PHP Basics Tutorial] (PHP Intro through PHP Superglobals) and try creating some PHP scripts on your own Linux server like the examples given in the tutorial pages to see if you can get them to run, try modifying them a little bit and see what the results are. There are many great Internet resources devoted to understanding how to do things with PHP so take some time to see how this language can be easily integrated in websites. You should definitely be familiar with editing PHP files to change variables, echo statements, etc. work which are all skills you&#039;ll need when installing PHP based website software.&lt;br /&gt;
# Try writing some simple PHP scripts on your own using variables and echo statements and make them available through your webserver. Edit your index.html file (or create a new index.php file which will be loaded instead if it exists) so there is a menu for you to find and run the various scripts you have created.&lt;br /&gt;
&lt;br /&gt;
==Experiment with Databases==&lt;br /&gt;
# In order to do really powerful things with a website we need a database where we can store dynamic content which can be queried to automatically build site pages from a template. One of the most common databases is an SQL database, and MySQL has long been the most prevalent Linux SQL software. SQL is a standard way of interacting with a specific type of database called a relational database, we&#039;ll see why it&#039;s called a relational database in a minute. Each database is a collection of data stored in tables. You can think of a table as something like a spreadsheet with rows and columns, except we call the columns fields and the rows records (sometimes we actually call them rows too). The different tables are often related to one another, of course they are usually being used by the same web application, but usually the relationship goes deeper than that as we&#039;ll see in a little bit.&lt;br /&gt;
# To jumpstart our exploration of databases we&#039;ll download a pre-built sample database with a few tables and many records already in it and import it into our MySQL database server. Download the employees database file [https://launchpad.net/test-db/employees-db-1/1.0.6/+download/employees_db-full-1.0.6.tar.bz2 employees_db-full-1.0.6.tar.bz2] (about 26MB) and get it into your home directory. Instead of using the links browser to do this or downloading to your computer and then pushing this large file back across the Internet with an SCP/SFTP client like FileZilla a better choice might be to learn about the wget program which can be used like &amp;quot;wget https://launchpad.net/test-db/employees-db-1/1.0.6/+download/employees_db-full-1.0.6.tar.bz2&amp;quot; to download the file into your current working directory.&lt;br /&gt;
# Figure out how to use the TAR program to unpack this .tar.bz2 file. Note that this file uses bz2 compression which takes longer to compress than gzip but can compress the files more. Once unpacked you should have an &amp;quot;employees_db&amp;quot; folder.&lt;br /&gt;
# Inside the employees_db folder you should have a number of .sql script files and dump files which can be used to restore the database to your system. Take a look at the employees.sql file, it&#039;s just a text file, which describes the format of the database. Also take a look at the load_employees.dump file, also just a text file, which contains all of the records from the employees table of the database. Note there are 300,000 some employee records in this database so you probably don&#039;t want to just use cat to view these files as it could take a while to print them out to your screen. Using the less program would be a better choice as it will allow you to exit viewing the file by pressing q at any time.&lt;br /&gt;
# We can interact with the MySQL server in many different ways. The first way we&#039;ll take a look at is through the command line mysql program. Run the &amp;quot;mysql -u root -p&amp;quot; command and enter the MySQL root password (which may be different than they system root password) to login to the mysql program with root permissions. The MySQL program actually stores it&#039;s own usernames and passwords as a MySQL database itself, you can create and modify these permissions from the mysql command line but we&#039;ll learn more about modifying them through the Webmin interface later.&lt;br /&gt;
# MySQL has it&#039;s own command line language the you can use through the &amp;quot;mysql&amp;gt;&amp;quot; prompt you are now running. For example, if we want to see a list of databases on the system we can run &amp;quot;SHOW databases;&amp;quot; run the command and note the databases that already exist by default.&lt;br /&gt;
# To import the employee database we can use the &amp;quot;source employees.sql;&amp;quot; command (assuming we were already working in the directory which contains the employees.sql file when we launched mysql. Import the employee database and verify the system now has an employees database.&lt;br /&gt;
# If we want to see all of the tables in the employees database we must first select the database we want to work on using the &amp;quot;USE employees;&amp;quot; command, run this followed by the &amp;quot;SHOW tables;&amp;quot; command to see a list of tables.&lt;br /&gt;
# To see a list of all the records in a table we need to run an SQL query like &amp;quot;SELECT * from employees&amp;quot; which will list all the records in the employees table of the employees database and display them. Remember that we previously selected to USE the employees database, this will be remembered until we USE a different database. Try displaying the records in a couple of different tables like employees and departments.&lt;br /&gt;
# There is much more that we can do from the MySQL command line but that would be a whole class or more itself. The MySQL program is well documented on the Internet and with these basic skills you should be able to figure out most of it. Before we leave the MySQL command line let&#039;s see how to delete the employees database. Run the command &amp;quot;DROP DATABASE employees;&amp;quot; to delete the entire database. Obviously the DROP command is one to be careful with as you can easily wipe out a huge database with one line! Type &amp;quot;exit;&amp;quot; to quit the MySQL program and return to a Linux shell.&lt;br /&gt;
# Now that you have learned a bit about MySQL databases from the command line let&#039;s see how they look in the Webmin web management interface. Log back in to your Webmin interface through a browser on your host system.&lt;br /&gt;
# Because MySQL was not installed when we first setup Webmin you need to &amp;quot;scan for new modules&amp;quot; first. Once that process has finished refresh the page to see that MySQL has been added to the server section of Webmin.&lt;br /&gt;
# Take a look at the Webmin MySQL module and see how users and permissions are configured.&lt;br /&gt;
# Load the employees.sql file through the Webmin MySQL module and see the employees database get added.&lt;br /&gt;
# Try browsing through the employees database using the Webmin interface including viewing tables and records inside of the tables.&lt;br /&gt;
&lt;br /&gt;
==View Logfiles==&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_5&amp;diff=6344</id>
		<title>Franske ITC-2480 Lab 5</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_5&amp;diff=6344"/>
		<updated>2014-02-13T00:15:12Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
In this lab you will learn about static network configuration of Debian Linux systems, how to install PHP and MySQL on your server, experiment with websites and databases, and some of the standard log files on your system.&lt;br /&gt;
&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account&lt;br /&gt;
# Make a note of the static IP address information for your particular system in the table below, it is based on the system name identification letter in vmWare. All systems will use a gateway address of 172.17.50.1 and a subnet mask of 255.255.255.0&lt;br /&gt;
{| {{table}}&lt;br /&gt;
| align=&amp;quot;center&amp;quot; style=&amp;quot;background:#f0f0f0;&amp;quot;|&#039;&#039;&#039;System ID&#039;&#039;&#039;&lt;br /&gt;
| align=&amp;quot;center&amp;quot; style=&amp;quot;background:#f0f0f0;&amp;quot;|&#039;&#039;&#039;Static IP&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| A||172.17.50.11&lt;br /&gt;
|-&lt;br /&gt;
| B||172.17.50.12&lt;br /&gt;
|-&lt;br /&gt;
| C||172.17.50.13&lt;br /&gt;
|-&lt;br /&gt;
| D||172.17.50.14&lt;br /&gt;
|-&lt;br /&gt;
| E||172.17.50.15&lt;br /&gt;
|-&lt;br /&gt;
| F||172.17.50.16&lt;br /&gt;
|-&lt;br /&gt;
| G||172.17.50.17&lt;br /&gt;
|-&lt;br /&gt;
| H||172.17.50.18&lt;br /&gt;
|-&lt;br /&gt;
| I||172.17.50.19&lt;br /&gt;
|-&lt;br /&gt;
| J||172.17.50.20&lt;br /&gt;
|-&lt;br /&gt;
| K||172.17.50.21&lt;br /&gt;
|-&lt;br /&gt;
| L||172.17.50.22&lt;br /&gt;
|-&lt;br /&gt;
| M||172.17.50.23&lt;br /&gt;
|-&lt;br /&gt;
| N||172.17.50.24&lt;br /&gt;
|-&lt;br /&gt;
| O||172.17.50.25&lt;br /&gt;
|-&lt;br /&gt;
| P||172.17.50.26&lt;br /&gt;
|-&lt;br /&gt;
| Q||172.17.50.27&lt;br /&gt;
|-&lt;br /&gt;
| R||172.17.50.28&lt;br /&gt;
|-&lt;br /&gt;
| S||172.17.50.29&lt;br /&gt;
|-&lt;br /&gt;
| T||172.17.50.30&lt;br /&gt;
|-&lt;br /&gt;
| U||172.17.50.31&lt;br /&gt;
|-&lt;br /&gt;
| V||172.17.50.32&lt;br /&gt;
|-&lt;br /&gt;
| W||172.17.50.33&lt;br /&gt;
|-&lt;br /&gt;
| X||172.17.50.34&lt;br /&gt;
|-&lt;br /&gt;
| Y||172.17.50.35&lt;br /&gt;
|-&lt;br /&gt;
| Z||172.17.50.36&lt;br /&gt;
|}&lt;br /&gt;
==Set a static IP==&lt;br /&gt;
# Using your text editor of choice, open up the file /etc/network/interfaces&lt;br /&gt;
# Notice how it is currently set to dhcp for the eth0 interface.&lt;br /&gt;
# To set a static IP, you will need to change iface eth0 inet dhcp to iface eth0 inet static.&lt;br /&gt;
# Now, under the iface line you just edited, you will need to enter the address, netmask, and gateway for the static network.&lt;br /&gt;
#* Reminder: it is common practice to indent (tab) static network configuration information in the interfaces file.&lt;br /&gt;
# Your configuration should be similar to this:&lt;br /&gt;
&amp;lt;pre&amp;gt;auto eth0&lt;br /&gt;
iface eth0 inet static&lt;br /&gt;
	address xxx.xxx.xxx.xxx&lt;br /&gt;
	netmask xxx.xxx.xxx.xxx&lt;br /&gt;
	gateway xxx.xxx.xxx.xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now save the file, and exit your file editor.&lt;br /&gt;
# Now we are going to apply the static IP change. Try using ifconfig to view your active configuration now and you should see that your old address is still active.&lt;br /&gt;
#* &#039;&#039;&#039;NOTE: You should only do network configuration changes when you have physical access to a machine. This way, if you mess up your configuration you will be able to fix it from a local console.&#039;&#039;&#039;&lt;br /&gt;
# Using the ifdown and ifup command, we are going to restart the network interface, this step is required to apply the change.&lt;br /&gt;
# In a terminal, run sudo ifdown eth0 &amp;amp;&amp;amp; sudo ifup eth0. Notice the two &amp;amp;&amp;amp; symbols. This tells the linux shell that it should run the second command right after the first. If we do not define this, then we would be left with a machine that has its networking turned off.&lt;br /&gt;
# At this point, your machine should now be using a static address. You will lose your SSH connection because the IP your SSH session is connected to is no longer in use by your machine.&lt;br /&gt;
# Reconnect through SSH to your new IP address and verify it is now applied using the ifconfig command.&lt;br /&gt;
&lt;br /&gt;
==Install PHP &amp;amp; MySQL==&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Using aptitude, install the php and mysql packages using aptitude install php5 mysql-server&amp;lt;/li&amp;gt;&lt;br /&gt;
* Note: Remember to do an aptitude update before installing packages to make sure you get the latest versions&lt;br /&gt;
&amp;lt;li&amp;gt; After the dependencies are found, go ahead and accept them to continue the install.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; During the mysql-server install, you will see a blue window (similar to the debian install screen) that will ask you to create a mysql root password. This password is what will be used to access the root account in mysql. Just like in linux, the mysql root account has full control of all databases hosted on the system. It does not need to be the same as your system root password but just like your system root password it is important that you keep it secure and don&#039;t forget what it is.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; After the install is complete, cd to /var/www&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; At this point we will test to verify that php is working properly with Apache. Create a new file named phptest.php, and then open it in a text editor.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Enter the following into the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;?php&lt;br /&gt;
phpinfo();&lt;br /&gt;
?&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Now save the file, and on your local machine go to xxx.xxx.xxx.xxx/phptest.php in a web browser where xxx.xxx.xxx.xxx is your VM&#039;s static IP. You should now be on a page that shows your PHP Version, and system information. Use the &amp;quot;View Source&amp;quot; option in your browser to see what the HTML source code is for the page you&#039;re viewing is. Is it the same or different than the .php file you created? Why? How is this different than a standard .html file?&lt;br /&gt;
* Note: PHP files are really tiny scripts that the webserver must execute in order to render them into HTML for the browser, therefore you may need to make adjustments so that the www-data user (which is the user the Apache webserver runs as on Debian Linux) has execute permission for the .php files you create.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Experiment with Websites PHP==&lt;br /&gt;
# In a previous lab we learned about editing the /var/www/index.html file to change the default web page displayed by your server. In a future lab you will install some PHP/MySQL based software which powers many Internet sites with forums, blogs, etc. Before we can do that we need to learn a little more about PHP and about databases. Like most software on Linux the Apache webserver configuration files are stored in the /etc directory. Specifically, you can find several of them which work together and are called from each other in /etc/apache2/ take a look in the /etc/apache2/sites-enabled/ directory. See how symlinks are used to point to configuration files which actually reside in the /etc/apache2/sites-available/ directory? This allows us to turn off and on various sites by creating or removing a symlink rather than by deleting the actual configuration file, a handy thing if we just want to temporarily disable a site.&lt;br /&gt;
# As you might have guessed the default site for your system is configured by the file linked to at /etc/apache2/sites-enabled/000-default If you open this file in your favorite text editor you will see a series of what Apache calls &amp;quot;directives&amp;quot; which explain how the webserver should function, what port it should listen on, where the website files will reside (/var/www), etc. Going into all of the different Apache directives is outside of the scope of this course but you will find a lot of documentation about them on the Internet.&lt;br /&gt;
# In addition to configuring Apache directly through it&#039;s configuration files you can also configure it through an interface like Webmin which we installed in a previous lab. Bring up the Webmin configuration page for Apache and take a look at the settings for the default site. Note how the things you saw directly in the configuration file match up with what you see in Webmin. One of the things you may be interested in seeing is how the webserver knows to display the index.html file from a deirctory if it exists and no specific file is requested in the URL. Take a look on the &amp;quot;Directory Indexing&amp;quot; page and see if you can find this information. You&#039;ll notice that there is a list of files, not just index.html which the server will display.&lt;br /&gt;
# In another section of this lab you created a basic phptest.php file and saw how the server executed the PHP code and turned it into an HTML page your browser could display. Because PHP offers an easy way to write web applications it powers much of the Internet. To prepare us for setting up some PHP applications in a future lab it will be helpful to know a little about how PHP scripts work. Read through the [http://www.w3schools.com/php/default.asp W3 Schools PHP Basics Tutorial] (PHP Intro through PHP Superglobals) and try creating some PHP scripts on your own Linux server like the examples given in the tutorial pages to see if you can get them to run, try modifying them a little bit and see what the results are. There are many great Internet resources devoted to understanding how to do things with PHP so take some time to see how this language can be easily integrated in websites. You should definitely be familiar with editing PHP files to change variables, echo statements, etc. work which are all skills you&#039;ll need when installing PHP based website software.&lt;br /&gt;
# Try writing some simple PHP scripts on your own using variables and echo statements and make them available through your webserver. Edit your index.html file (or create a new index.php file which will be loaded instead if it exists) so there is a menu for you to find and run the various scripts you have created.&lt;br /&gt;
&lt;br /&gt;
==Experiment with Databases==&lt;br /&gt;
# In order to do really powerful things with a website we need a database where we can store dynamic content which can be queried to automatically build site pages from a template. One of the most common databases is an SQL database, and MySQL has long been the most prevalent Linux SQL software. SQL is a standard way of interacting with a specific type of database called a relational database, we&#039;ll see why it&#039;s called a relational database in a minute. Each database is a collection of data stored in tables. You can think of a table as something like a spreadsheet with rows and columns, except we call the columns fields and the rows records (sometimes we actually call them rows too). The different tables are often related to one another, of course they are usually being used by the same web application, but usually the relationship goes deeper than that as we&#039;ll see in a little bit.&lt;br /&gt;
# To jumpstart our exploration of databases we&#039;ll download a pre-built sample database with a few tables and many records already in it and import it into our MySQL database server. Download the employees database file [https://launchpad.net/test-db/employees-db-1/1.0.6/+download/employees_db-full-1.0.6.tar.bz2 employees_db-full-1.0.6.tar.bz2] (about 26MB) and get it into your home directory. Instead of using the links browser to do this or downloading to your computer and then pushing this large file back across the Internet with an SCP/SFTP client like FileZilla a better choice might be to learn about the wget program which can be used like &amp;quot;wget https://launchpad.net/test-db/employees-db-1/1.0.6/+download/employees_db-full-1.0.6.tar.bz2&amp;quot; to download the file into your current working directory.&lt;br /&gt;
# Figure out how to use the TAR program to unpack this .tar.bz2 file. Note that this file uses bz2 compression which takes longer to compress than gzip but can compress the files more. Once unpacked you should have an &amp;quot;employees_db&amp;quot; folder.&lt;br /&gt;
# Inside the employees_db folder you should have a number of .sql script files and dump files which can be used to restore the database to your system. Take a look at the employees.sql file, it&#039;s just a text file, which describes the format of the database. Also take a look at the load_employees.dump file, also just a text file, which contains all of the records from the employees table of the database. Note there are 300,000 some employee records in this database so you probably don&#039;t want to just use cat to view these files as it could take a while to print them out to your screen. Using the less program would be a better choice as it will allow you to exit viewing the file by pressing q at any time.&lt;br /&gt;
# We can interact with the MySQL server in many different ways. The first way we&#039;ll take a look at is through the command line mysql program. Run the &amp;quot;mysql -u root -p&amp;quot; command and enter the MySQL root password (which may be different than they system root password) to login to the mysql program with root permissions. The MySQL program actually stores it&#039;s own usernames and passwords as a MySQL database itself, you can create and modify these permissions from the mysql command line but we&#039;ll learn more about modifying them through the Webmin interface later.&lt;br /&gt;
# MySQL has it&#039;s own command line language the you can use through the &amp;quot;mysql&amp;gt;&amp;quot; prompt you are now running. For example, if we want to see a list of databases on the system we can run &amp;quot;SHOW databases;&amp;quot; run the command and note the databases that already exist by default.&lt;br /&gt;
# To import the employee database we can use the &amp;quot;source employees.sql;&amp;quot; command (assuming we were already working in the directory which contains the employees.sql file when we launched mysql. Import the employee database and verify the system now has an employees database.&lt;br /&gt;
# If we want to see all of the tables in the employees database we must first select the database we want to work on using the &amp;quot;USE employees;&amp;quot; command, run this followed by the &amp;quot;SHOW tables;&amp;quot; command to see a list of tables.&lt;br /&gt;
# To see a list of all the records in a table we need to run an SQL query like &amp;quot;SELECT * from employees&amp;quot; which will list all the records in the employees table of the employees database and display them. Remember that we previously selected to USE the employees database, this will be remembered until we USE a different database. Try displaying the records in a couple of different tables like employees and departments.&lt;br /&gt;
# There is much more that we can do from the MySQL command line but that would be a whole class or more itself. The MySQL program is well documented on the Internet and with these basic skills you should be able to figure out most of it. Before we leave the MySQL command line let&#039;s see how to delete the employees database. Run the command &amp;quot;DROP DATABASE employees;&amp;quot; to delete the entire database. Obviously the DROP command is one to be careful with as you can easily wipe out a huge database with one line! Type &amp;quot;exit;&amp;quot; to quit the MySQL program and return to a Linux shell.&lt;br /&gt;
# Now that you have learned a bit about MySQL databases from the command line let&#039;s see how they look in the Webmin web management interface. Log back in to your Webmin interface through a browser on your host system.&lt;br /&gt;
# Because MySQL was not installed when we first setup Webmin you need to &amp;quot;scan for new modules&amp;quot; first. Once that process has finished refresh the page to see that MySQL has been added to the server section of Webmin.&lt;br /&gt;
# Take a look at the Webmin MySQL module and see how users and permissions are configured.&lt;br /&gt;
# Load the employees.sql file through the Webmin MySQL module and see the employees database get added.&lt;br /&gt;
# Try browsing through the employees database using the Webmin interface including viewing tables and records inside of the tables.&lt;br /&gt;
&lt;br /&gt;
==View Logfiles==&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_5&amp;diff=6332</id>
		<title>Franske ITC-2480 Lab 5</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_5&amp;diff=6332"/>
		<updated>2014-02-10T00:38:49Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account&lt;br /&gt;
==Set a static IP==&lt;br /&gt;
# Using your text editor of choice, open up the file /etc/network/interfaces&lt;br /&gt;
# Notice how it is currently set to dhcp for the eth0 interface.&lt;br /&gt;
# To set a static IP, you will need to change iface eth0 inet dhcp to iface eth0 inet static.&lt;br /&gt;
# Now, under the iface line you just edited, you will need to enter the address, netmask, and gateway for the static network.&lt;br /&gt;
## Reminder: it is common practice to indent (tab) static network configuration information in the interfaces file.&lt;br /&gt;
# Your configuration should be similar to this:&lt;br /&gt;
&amp;lt;pre&amp;gt;auto eth0&lt;br /&gt;
iface eth0 inet static&lt;br /&gt;
	address xxx.xxx.xxx.xxx&lt;br /&gt;
	netmask xxx.xxx.xxx.xxx&lt;br /&gt;
	gateway xxx.xxx.xxx.xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now save the file, and exit your file editor.&lt;br /&gt;
# Now we are going to apply the static IP change&lt;br /&gt;
## &#039;&#039;&#039;NOTE: You should only do network configuration changes when you have physical access to a machine. This way, if you mess up your configuration you will be able to fix it from a local console.&#039;&#039;&#039;&lt;br /&gt;
# Using the ifdown and ifup command, we are going to restart the network interface&lt;br /&gt;
# In a terminal, run ifdown eth0 &amp;amp;&amp;amp; ifup eth0. Notice the two &amp;amp;&amp;amp; symbols. This tells the linux shell that it should run the second command right after the first. If we do not define this, then we would be left with a machine that has its networking turned off.&lt;br /&gt;
# At this point, your machine should now be using a static address. Verify it is now applied using the ifconfig command.&lt;br /&gt;
&lt;br /&gt;
==Install PHP &amp;amp; MySQL==&lt;br /&gt;
# Using aptitude, install the php and mysql packages using aptitude install php5 mysql-server&lt;br /&gt;
## Note: Remember to do an aptitude update before installing packages.&lt;br /&gt;
# After the dependencies are found, go ahead and accept them to continue the install.&lt;br /&gt;
# During the mysql-server install, you will see a blue window (similar to the debian install screen) that will ask you to create a mysql root password. This password is what will be used to access the root account in mysql. Just like in linux, the mysql root account has full control of all databases hosted on the system.&lt;br /&gt;
# After the install is complete, cd to /var/www&lt;br /&gt;
# At this point we will test to verify that php is working properly with apache. Create a new file named phptest.php, and then open it in a text editor.&lt;br /&gt;
# Enter the following into the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;?php&lt;br /&gt;
phpinfo();&lt;br /&gt;
?&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now save the file, and on your local machine go to xxx.xxx.xxx.xxx/phptest.php in a web browser where xxx.xxx.xxx.xxx is your VM&#039;s static IP. You should now be on a page that shows your PHP Version, and system information.&lt;br /&gt;
&lt;br /&gt;
==experiment with websites and databases==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==View Logfiles==&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_5&amp;diff=6331</id>
		<title>Franske ITC-2480 Lab 5</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_5&amp;diff=6331"/>
		<updated>2014-02-09T15:21:34Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account&lt;br /&gt;
==Set a static IP==&lt;br /&gt;
# Using your text editor of choice, open up the file /etc/network/interfaces&lt;br /&gt;
# Notice how it is currently set to dhcp for the eth0 interface.&lt;br /&gt;
# To set a static IP, you will need to change iface eth0 inet dhcp to iface eth0 inet static.&lt;br /&gt;
# Now, under the iface line you just edited, you will need to enter the address, netmask, and gateway for the static network.&lt;br /&gt;
## Reminder: it is common practice to indent (tab) static network configuration information in the interfaces file.&lt;br /&gt;
# Your configuration should be similar to this:&lt;br /&gt;
&amp;lt;pre&amp;gt;auto eth0&lt;br /&gt;
iface eth0 inet static&lt;br /&gt;
	address xxx.xxx.xxx.xxx&lt;br /&gt;
	netmask xxx.xxx.xxx.xxx&lt;br /&gt;
	gateway xxx.xxx.xxx.xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now save the file, and exit your file editor.&lt;br /&gt;
# Now we are going to apply the static IP change&lt;br /&gt;
## &#039;&#039;&#039;NOTE: You should only do network configuration changes when you have physical access to a machine. This way, if you mess up your configuration you will be able to fix it from a local console.&#039;&#039;&#039;&lt;br /&gt;
# Using the ifdown and ifup command, we are going to restart the network interface&lt;br /&gt;
# In a terminal, run ifdown eth0 &amp;amp;&amp;amp; ifup eth0. Notice the two &amp;amp;&amp;amp; symbols. This tells the linux shell that it should run the second command right after the first. If we do not define this, then we would be left with a machine that has its networking turned off.&lt;br /&gt;
# At this point, your machine should now be using a static address. Verify it is now applied using the ifconfig command.&lt;br /&gt;
&lt;br /&gt;
==Install PHP &amp;amp; MySQL==&lt;br /&gt;
# Using aptitude, install the php and mysql packages using aptitude install php5 mysql-server&lt;br /&gt;
## Note: Remember to do an aptitude update before installing packages.&lt;br /&gt;
# After the dependencies are found, go ahead and accept them to continue the install.&lt;br /&gt;
# During the mysql-server install, you will see a blue window (similar to the debian install screen) that will ask you to create a mysql root password. This password is what will be used to access the root account in mysql. Just like in linux, the mysql root account has full control of any database hosted on the system.&lt;br /&gt;
# After the install is complete, cd to /var/www&lt;br /&gt;
# To test that PHP is installed and functional, we will test it. Create a new file named phptest.php, and then open it in a text editor.&lt;br /&gt;
# Enter the following into the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;?php&lt;br /&gt;
phpinfo();&lt;br /&gt;
?&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now save the file, and on your local machine go to xxx.xxx.xxx.xxx/phptest.php in a web browser where xxx.xxx.xxx.xxx is your VM&#039;s static IP. You should now be on a page that shows your PHP Version, and system information.&lt;br /&gt;
&lt;br /&gt;
==experiment with websites and databases==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==View Logfiles==&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_5&amp;diff=6330</id>
		<title>Franske ITC-2480 Lab 5</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_5&amp;diff=6330"/>
		<updated>2014-02-09T15:20:48Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: /* Install PHP &amp;amp; MySQL */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account&lt;br /&gt;
==Set a static IP==&lt;br /&gt;
# using your text editor of choice, open up the file /etc/network/interfaces&lt;br /&gt;
# Notice how it is currently set to dhcp for the eth0 interface.&lt;br /&gt;
# To set a static IP, you will need to change iface eth0 inet dhcp to iface eth0 inet static.&lt;br /&gt;
# Now, under the iface line you just edited, you will need to enter the address, netmask, and gateway for the static network.&lt;br /&gt;
## Reminder: it is common practice to indent (tab) static network configuration information in the interfaces file.&lt;br /&gt;
# Your configuration should be similar to this:&lt;br /&gt;
&amp;lt;pre&amp;gt;auto eth0&lt;br /&gt;
iface eth0 inet static&lt;br /&gt;
	address xxx.xxx.xxx.xxx&lt;br /&gt;
	netmask xxx.xxx.xxx.xxx&lt;br /&gt;
	gateway xxx.xxx.xxx.xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now save the file, and exit your file editor.&lt;br /&gt;
# Now we are going to apply the static IP change&lt;br /&gt;
## &#039;&#039;&#039;NOTE: You should only do network configuration changes when you have physical access to a machine. This way, if you mess up your configuration you will be able to fix it from a local console.&#039;&#039;&#039;&lt;br /&gt;
# Using the ifdown and ifup command, we are going to restart the network interface&lt;br /&gt;
# in a terminal, run ifdown eth0 &amp;amp;&amp;amp; ifup eth0. Notice the two &amp;amp;&amp;amp; symbols. This tells the linux shell that it should run the second command right after the first. If we do not define this, then we would be left with a machine that has its networking turned off.&lt;br /&gt;
# At this point, your machine should now be using a static address. Verify it is now applied using the ifconfig command.&lt;br /&gt;
&lt;br /&gt;
==Install PHP &amp;amp; MySQL==&lt;br /&gt;
# Using aptitude, install the php and mysql packages using aptitude install php5 mysql-server&lt;br /&gt;
## Note: Remember to do an aptitude update before installing packages.&lt;br /&gt;
# After the dependencies are found, go ahead and accept them to continue the install.&lt;br /&gt;
# During the mysql-server install, you will see a blue window (similar to the debian install screen) that will ask you to create a mysql root password. This password is what will be used to access the root account in mysql. Just like in linux, the mysql root account has full control of any database hosted on the system.&lt;br /&gt;
# After the install is complete, cd to /var/www&lt;br /&gt;
# To test that PHP is installed and functional, we will test it. Create a new file named phptest.php, and then open it in a text editor.&lt;br /&gt;
# Enter the following into the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;?php&lt;br /&gt;
phpinfo();&lt;br /&gt;
?&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now save the file, and on your local machine go to xxx.xxx.xxx.xxx/phptest.php in a web browser where xxx.xxx.xxx.xxx is your VM&#039;s static IP. You should now be on a page that shows your PHP Version, and system information.&lt;br /&gt;
&lt;br /&gt;
==experiment with websites and databases==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==View Logfiles==&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_5&amp;diff=6329</id>
		<title>Franske ITC-2480 Lab 5</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_5&amp;diff=6329"/>
		<updated>2014-02-09T15:20:12Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: /* Install PHP &amp;amp; MySQL */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account&lt;br /&gt;
==Set a static IP==&lt;br /&gt;
# using your text editor of choice, open up the file /etc/network/interfaces&lt;br /&gt;
# Notice how it is currently set to dhcp for the eth0 interface.&lt;br /&gt;
# To set a static IP, you will need to change iface eth0 inet dhcp to iface eth0 inet static.&lt;br /&gt;
# Now, under the iface line you just edited, you will need to enter the address, netmask, and gateway for the static network.&lt;br /&gt;
## Reminder: it is common practice to indent (tab) static network configuration information in the interfaces file.&lt;br /&gt;
# Your configuration should be similar to this:&lt;br /&gt;
&amp;lt;pre&amp;gt;auto eth0&lt;br /&gt;
iface eth0 inet static&lt;br /&gt;
	address xxx.xxx.xxx.xxx&lt;br /&gt;
	netmask xxx.xxx.xxx.xxx&lt;br /&gt;
	gateway xxx.xxx.xxx.xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now save the file, and exit your file editor.&lt;br /&gt;
# Now we are going to apply the static IP change&lt;br /&gt;
## &#039;&#039;&#039;NOTE: You should only do network configuration changes when you have physical access to a machine. This way, if you mess up your configuration you will be able to fix it from a local console.&#039;&#039;&#039;&lt;br /&gt;
# Using the ifdown and ifup command, we are going to restart the network interface&lt;br /&gt;
# in a terminal, run ifdown eth0 &amp;amp;&amp;amp; ifup eth0. Notice the two &amp;amp;&amp;amp; symbols. This tells the linux shell that it should run the second command right after the first. If we do not define this, then we would be left with a machine that has its networking turned off.&lt;br /&gt;
# At this point, your machine should now be using a static address. Verify it is now applied using the ifconfig command.&lt;br /&gt;
&lt;br /&gt;
==Install PHP &amp;amp; MySQL==&lt;br /&gt;
# Using aptitude, install the php and mysql packages using aptitude install php5 mysql-server&lt;br /&gt;
## Note: Remember to do an aptitude update before installing packages.&lt;br /&gt;
# After the dependencies are found, go ahead and accept them to continue the install.&lt;br /&gt;
# During the mysql-server install, you will see a blue window (similar to the debian install screen) that will ask you to create a mysql root password. This password is what will be used to access the root account in mysql. Just like in linux, the mysql root account has full control of any database hosted on the system.&lt;br /&gt;
# After the install is complete, cd to /var/www&lt;br /&gt;
# To test that PHP is installed and functional, we will test it. Create a new file named phptest.php, and then open it in a text editor.&lt;br /&gt;
# Enter the following into the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;?php&lt;br /&gt;
phpinfo();&lt;br /&gt;
?&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now save the file, and on your local machine go to vmip/phptest.php in a web browser. You should now be on a page that shows your PHP Version, and system information.&lt;br /&gt;
&lt;br /&gt;
==experiment with websites and databases==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==View Logfiles==&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_5&amp;diff=6328</id>
		<title>Franske ITC-2480 Lab 5</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_5&amp;diff=6328"/>
		<updated>2014-02-09T15:07:20Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: Add static IP lab&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account&lt;br /&gt;
==Set a static IP==&lt;br /&gt;
# using your text editor of choice, open up the file /etc/network/interfaces&lt;br /&gt;
# Notice how it is currently set to dhcp for the eth0 interface.&lt;br /&gt;
# To set a static IP, you will need to change iface eth0 inet dhcp to iface eth0 inet static.&lt;br /&gt;
# Now, under the iface line you just edited, you will need to enter the address, netmask, and gateway for the static network.&lt;br /&gt;
## Reminder: it is common practice to indent (tab) static network configuration information in the interfaces file.&lt;br /&gt;
# Your configuration should be similar to this:&lt;br /&gt;
&amp;lt;pre&amp;gt;auto eth0&lt;br /&gt;
iface eth0 inet static&lt;br /&gt;
	address xxx.xxx.xxx.xxx&lt;br /&gt;
	netmask xxx.xxx.xxx.xxx&lt;br /&gt;
	gateway xxx.xxx.xxx.xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now save the file, and exit your file editor.&lt;br /&gt;
# Now we are going to apply the static IP change&lt;br /&gt;
## &#039;&#039;&#039;NOTE: You should only do network configuration changes when you have physical access to a machine. This way, if you mess up your configuration you will be able to fix it from a local console.&#039;&#039;&#039;&lt;br /&gt;
# Using the ifdown and ifup command, we are going to restart the network interface&lt;br /&gt;
# in a terminal, run ifdown eth0 &amp;amp;&amp;amp; ifup eth0. Notice the two &amp;amp;&amp;amp; symbols. This tells the linux shell that it should run the second command right after the first. If we do not define this, then we would be left with a machine that has its networking turned off.&lt;br /&gt;
# At this point, your machine should now be using a static address. Verify it is now applied using the ifconfig command.&lt;br /&gt;
&lt;br /&gt;
==Install PHP &amp;amp; MySQL==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==experiment with websites and databases==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==View Logfiles==&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Assignments&amp;diff=6327</id>
		<title>Franske ITC-2480 Assignments</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Assignments&amp;diff=6327"/>
		<updated>2014-02-09T14:51:15Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Labs=&lt;br /&gt;
You are responsible for completing ALL of these labs. You must submit a [[Franske Lab Report Format|lab report]] for each chapter (you may combine multiple labs from the chapter into a single report). If you work with a partner on a lab you only need to submit a single lab report for the two of you but it must have both your names on it. Each lab report is worth up to 20 points. This falls into the Labs/Homework category of your course grade.&lt;br /&gt;
&lt;br /&gt;
# [[Franske ITC-2480 Lab 1|Lab 1: Install Debian, check IP, remote access with ssh/sftp]]&lt;br /&gt;
# [[Franske ITC-2480 Lab 2|Lab 2: Install Links, install Apache, download, copy, move, remove files, tar file extraction, directories]]&lt;br /&gt;
# [[Franske ITC-2480 Lab 3|Lab 3: Install sudo, create new user, change ownership and permissions on files/dirs, view man pages, install webmin]]&lt;br /&gt;
# [[Franske ITC-2480 Lab 4|Lab 4: redirect/pipe output, create links, create compressed files, text editing]]&lt;br /&gt;
# [[Franske ITC-2480 Lab 5|Lab 5: Set static IP, install PHP/mySQL, experiment with websites and databases, view logfiles]] &lt;br /&gt;
# Lab 6: Install forum &amp;amp; blog software, experiment with PHP &lt;br /&gt;
# Lab 7: Install Samba, configure for basic workgroup filesharing &lt;br /&gt;
# Lab 8: Install Postfix MTA, courier-imap &lt;br /&gt;
# Lab 9: Install BIND and configure as caching plus zones for a local domain &lt;br /&gt;
# Lab 10: 2nd NIC internal network configuration &lt;br /&gt;
# Lab 11: Explore /proc /dev, Partition/format/mount 2nd HDD &lt;br /&gt;
# Lab 12: Use of nmap, netstat, MRTG/cacti, Nagios &lt;br /&gt;
# Lab 13: Write BASH scripts&lt;br /&gt;
&lt;br /&gt;
=Homework=&lt;br /&gt;
Any homework assigned in the course will go here. This falls into the Labs/Homework category of your course grade. Remember, for homework assignments turn in the actual pages from your lab book or printouts from the curriculum and not a lab report. Homework assignment are individual, you and your lab partner need to both turn them in separately even if you work on them together.&lt;br /&gt;
&lt;br /&gt;
=Participation Activities=&lt;br /&gt;
Any participation activities completed in the course will go here. This falls into the participation category of your course grade.&lt;br /&gt;
* Meet with the instructor once per week to discuss course progress and ask questions (up to 10 points each based on progress)&lt;br /&gt;
&lt;br /&gt;
=Unit Assessments=&lt;br /&gt;
You are responsible for completing an online unit assessment for each chapter. These fall into the online assessments category of your course grade.&lt;br /&gt;
&lt;br /&gt;
=Other=&lt;br /&gt;
You are also responsible for completing these things, see the course syllabus for category and weighting information.&lt;br /&gt;
* Online Final Exam&lt;br /&gt;
* Skills Final Exam&lt;br /&gt;
&lt;br /&gt;
=Skills Final Exam=&lt;br /&gt;
The Skills Final Exam is designed to test your ability to apply the concepts learned in this class and practiced in labs to common, real-world scenarios.&lt;br /&gt;
&lt;br /&gt;
[[Franske ITC-2480|Return to ITC-2480 Homepage]]&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Assignments&amp;diff=6326</id>
		<title>Franske ITC-2480 Assignments</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Assignments&amp;diff=6326"/>
		<updated>2014-02-09T14:50:56Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Labs=&lt;br /&gt;
You are responsible for completing ALL of these labs. You must submit a [[Franske Lab Report Format|lab report]] for each chapter (you may combine multiple labs from the chapter into a single report). If you work with a partner on a lab you only need to submit a single lab report for the two of you but it must have both your names on it. Each lab report is worth up to 20 points. This falls into the Labs/Homework category of your course grade.&lt;br /&gt;
&lt;br /&gt;
# [[Franske ITC-2480 Lab 1|Lab 1: Install Debian, check IP, remote access with ssh/sftp]]&lt;br /&gt;
# [[Franske ITC-2480 Lab 2|Lab 2: Install Links, install Apache, download, copy, move, remove files, tar file extraction, directories]]&lt;br /&gt;
# [[Franske ITC-2480 Lab 3|Lab 3: Install sudo, create new user, change ownership and permissions on files/dirs, view man pages, install webmin]]&lt;br /&gt;
# [[Franske ITC-2480 Lab 4|Lab 4: redirect/pipe output, create links, create compressed files, text editing]]&lt;br /&gt;
# [[Franske ITC-2480 Lab 5|Lab 5: Set static IP, install Apache/mySQL, experiment with websites and databases, view logfiles]] &lt;br /&gt;
# Lab 6: Install forum &amp;amp; blog software, experiment with PHP &lt;br /&gt;
# Lab 7: Install Samba, configure for basic workgroup filesharing &lt;br /&gt;
# Lab 8: Install Postfix MTA, courier-imap &lt;br /&gt;
# Lab 9: Install BIND and configure as caching plus zones for a local domain &lt;br /&gt;
# Lab 10: 2nd NIC internal network configuration &lt;br /&gt;
# Lab 11: Explore /proc /dev, Partition/format/mount 2nd HDD &lt;br /&gt;
# Lab 12: Use of nmap, netstat, MRTG/cacti, Nagios &lt;br /&gt;
# Lab 13: Write BASH scripts&lt;br /&gt;
&lt;br /&gt;
=Homework=&lt;br /&gt;
Any homework assigned in the course will go here. This falls into the Labs/Homework category of your course grade. Remember, for homework assignments turn in the actual pages from your lab book or printouts from the curriculum and not a lab report. Homework assignment are individual, you and your lab partner need to both turn them in separately even if you work on them together.&lt;br /&gt;
&lt;br /&gt;
=Participation Activities=&lt;br /&gt;
Any participation activities completed in the course will go here. This falls into the participation category of your course grade.&lt;br /&gt;
* Meet with the instructor once per week to discuss course progress and ask questions (up to 10 points each based on progress)&lt;br /&gt;
&lt;br /&gt;
=Unit Assessments=&lt;br /&gt;
You are responsible for completing an online unit assessment for each chapter. These fall into the online assessments category of your course grade.&lt;br /&gt;
&lt;br /&gt;
=Other=&lt;br /&gt;
You are also responsible for completing these things, see the course syllabus for category and weighting information.&lt;br /&gt;
* Online Final Exam&lt;br /&gt;
* Skills Final Exam&lt;br /&gt;
&lt;br /&gt;
=Skills Final Exam=&lt;br /&gt;
The Skills Final Exam is designed to test your ability to apply the concepts learned in this class and practiced in labs to common, real-world scenarios.&lt;br /&gt;
&lt;br /&gt;
[[Franske ITC-2480|Return to ITC-2480 Homepage]]&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_5&amp;diff=6325</id>
		<title>Franske ITC-2480 Lab 5</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_5&amp;diff=6325"/>
		<updated>2014-02-09T14:50:30Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: Created page with &amp;quot;=Introduction=  =Lab Procedure= ==Prerequisites== # Open an SSH console to your Linux system using the PuTTY software, login with your standard user account ==Set a static IP=...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account&lt;br /&gt;
==Set a static IP==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Install PHP &amp;amp; MySQL==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==experiment with websites and databases==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==View Logfiles==&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_4&amp;diff=6317</id>
		<title>Franske ITC-2480 Lab 4</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_4&amp;diff=6317"/>
		<updated>2014-02-04T14:57:56Z</updated>

		<summary type="html">&lt;p&gt;Riptide wave: /* Command Output Manipulation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
Linux is a very text file-oriented operating system. As we&#039;ve learned most of the settings for the operating system are held in text files in the /etc directory and most of the commands that are used to manipulate the system take text input or give text output. Beause of this it&#039;s very important to be able to edit and manipulate text on the system which will be a key focus of this lab. In addition, we&#039;ll practice creating compressed files, which is useful for backing up files, and creating links between locations on the system.&lt;br /&gt;
&lt;br /&gt;
These same instructions apply if you are completing this lab using the VirtualBox virtual machine software or if you are connected to a machine running remotely on the VMware platform. If you are completing this on campus remember to switch your network connection to the SafeConnect-free ITCnet.&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account&lt;br /&gt;
==Text File Editing==&lt;br /&gt;
# Change to the /var/www directory which is where the Apache webserver stores it&#039;s site files by default.&lt;br /&gt;
# Verify you can see an index.html file inside of this directory by listing the contents of the directory.&lt;br /&gt;
# Open up a web browser on your host computer and verify that you can browse to the IP address of your Linux system and still see the &amp;quot;It works&amp;quot; page that you saw in lab 2 after installing Apache.&lt;br /&gt;
# Before we start making any changes it&#039;s a good idea to save an unmodified copy of the file you&#039;ll be working on so make a copy of the index.html file and name the copy index.html.orig so that you can always copy it back if you make a mistake.&lt;br /&gt;
# There are many different text editors available for Linux but systems almost always include some version of &amp;quot;vi&amp;quot; or &amp;quot;nano&amp;quot; so those are the two we&#039;ll focus on. In your ssh window open the index.html file in nano by running &amp;quot;nano index.html&amp;quot;&lt;br /&gt;
#*: NOTE: Because your user does not own this file you may need to edit the file as the superuser.&lt;br /&gt;
# The nano text editor is fairly simple to use and you should now see the contents of the index.html file on your screen. Try navigating around the file with your arrow keys and changing the &amp;quot;It works&amp;quot; text to &amp;quot;Welcome to My Linux Webserver&amp;quot;&lt;br /&gt;
# Basic instructions for using nano abound on the Internet. You can get a basic introduction [http://staffwww.fullcoll.edu/sedwards/Nano/IntroToNano.html here] but it basically comes down to the menu lines at the bottom of the screen showing what your options are. The ^ character is commonly used to indicate the CTRL key so to exit the program (you will be prompted to save changes if you have made any) press CTRL-X or to save without exiting press CTRL-O and follow the prompts at the bottom of the screen.&lt;br /&gt;
# Save your file with the changed text and then reload the page in your browser on your host system to see if the changes have taken effect.&lt;br /&gt;
# Experiment with some of the nano menu options such as cutting and &amp;quot;un-cutting&amp;quot; lines of text and searching/replacing text. Once you are comfortable with the nano editor save your changes and exit.&lt;br /&gt;
# Make a note of which user and group owns your index.html file.&lt;br /&gt;
# Delete your index.html file and copy your index.html.orig file back to index.html&lt;br /&gt;
# Try loading the website again and see if it&#039;s back to the original text. If you encounter an error it&#039;s possible that your index.html file is not readbale by the webserver account so you should use the appropriate command to set the index.html file back to the owner and group of the original file.&lt;br /&gt;
# Now open the index.html file in vi using &amp;quot;vi index.html&amp;quot;&lt;br /&gt;
# The vi editor is probably considered more powerful than nano but is less user friendly without the menu at the bottom and a COMMAND mode as well as an INSERT mode. In the COMMAND mode you cannot directly change the text of the file by typing which can be frustrating to new users. Read through the vi tutorial [http://www.washington.edu/computing/unix/vi.html here] and try making some edits to your webpage. Once you are familiar with how the vi editor works save your file and exit.&lt;br /&gt;
&lt;br /&gt;
==Command Output Manipulation==&lt;br /&gt;
# Change back to your home directory using ls ~.&lt;br /&gt;
# Run ls -al and notice the files in your home directory.&lt;br /&gt;
# Now, run ls -al but redirect the output to a file using &amp;gt; filename. So for example, you would run ls -al &amp;gt; listfiles.txt&lt;br /&gt;
# Notice how there is no command output. This is normal as you redirected the command output to the file listfiles.txt&lt;br /&gt;
# Use cat to verify the contents of listfiles.txt Notice how it contains the exact same output as running ls -al in the command line.&lt;br /&gt;
# Now, run ls -al /var/log. Notice how many files there are in the /var/log directory. Lets say we wanted to just know the information of the dmesg log files. For this, we would use a pipe and the grep command.&lt;br /&gt;
# So, now run ls -al /var/log | grep dmesg. Notice how the output is suppressed to all files that contain the string dmesg.&lt;br /&gt;
# Whats nice about pipes and redirects is that they can be used back to back in a command.&lt;br /&gt;
# So lets say we have a senario where we want to get a file that contains all of the information from all .gz files in /var/log.&lt;br /&gt;
# To do this, we would run ls -al /var/log | grep .gz &amp;gt; gzlogfiles.txt&lt;br /&gt;
# Now pipe the file into less using cat gzlogfiles.txt | less&lt;br /&gt;
# Notice how this command is the exact same as running less gzlogfiles.txt.&lt;br /&gt;
# Now remove the files gzlogfiles.txt and listfiles.txt that were created from this part of the lab.&lt;br /&gt;
&lt;br /&gt;
==Creating Archived/Compressed Files==&lt;br /&gt;
&lt;br /&gt;
==Working With Filesystem Links==&lt;/div&gt;</summary>
		<author><name>Riptide wave</name></author>
	</entry>
</feed>