Sna Assignment DNF Update
Sna Assignment DNF Update
Table Of Contents
1.0 Introduction ............................................................................................................... 3
1.1 Domain Name System (DNS) .................................................................................. 3
1.2 Dynamic Host Configuration Protocol (DHCP)........................................................ 3
1.3 Email Server .......................................................................................................... 4
1.4 Web Server ............................................................................................................ 4
1.5 Secure Sockets Layer (SSL)/Transport Layer Security (TLS)................................... 4
2.0 Install Virtual Box on your machine and create a virtual machine running Rocky Linux
5
3.0 Install and configure a DNS server using BIND on the virtual machine. Ensure that the
DNS server can resolve local and external domain names. ..................................................... 24
4.0 Install and configure a DHCP server using DHCP on the virtual machine. Configure the
DHCP server to assign IP addresses to clients on the local network. ....................................... 49
5.0 Install and configure an email server using Postfix and Dovecot on the virtual machine.
Configure the email server to allow local users to send and receive emails. ............................. 58
6.0 Install and configure a web server using Apache on the virtual machine. Configure the
web server to host a basic website that can be accessed by clients on the local network. .......... 66
7.0 Implement SSL/TLS encryption for email and web services on the virtual machine.
Generate and install SSL certificates for the email and web servers. ...................................... 68
8.0 Troubleshooting Errors Encountered ........................................................................ 78
Error 1 ............................................................................................................................ 78
Error 2 ............................................................................................................................ 80
Error 3 ............................................................................................................................ 83
9.0 Conclusion ............................................................................................................... 85
10.0 References ............................................................................................................... 86
1.0 Introduction
This assignment aims to create an entire network architecture using Ubuntu and
Rocky Linux, mainly Rocky Linux, which uses Oracle Virtual Box. The goal is to
create a working system capable of meeting the demands of a small organization. The
system will integrate critical network services such as DNS, DHCP, email and web
servers, and SSL/TLS to do this.
Integrating these components will result in a powerful and reliable network solution
for a firm, allowing for continuous and efficient communication and data exchange.
This project will investigate the configuration and integration of these services within
the Oracle Virtual Box environment, emphasizing the critical factors and best
practices for developing a functioning and secure network infrastructure.
2.0 Install Virtual Box on your machine and create a virtual machine
running Rocky Linux
Figure 2.14 Mount the Rocky IOS Image on the Virtual CD-ROM
In the image above, the user mounts the intended VM’s IOS Image onto the Virtual
CD-ROM through the “Storage” tab. The red arrow on the right shows the Rocky’s
IOS image whilst the blue arrow shows the Ubuntu’s IOS image.
3.0 Install and configure a DNS server using BIND on the virtual
machine. Ensure that the DNS server can resolve local and external
domain names.
Figure 3.05 NAT Network Tab under the Network Manager Option
The screenshot depicts the Oracle VM VirtualBox Manager's Network Manager page
under the NAT Network tab. It shows a list of available network interfaces. The IPv4
prefix, IPv6 prefix, and DHCP server status are all available for each interface.
Figure 3.06 NAT Network Option for Both Rocky and Ubuntu
Figure 3.06 depicts the configuration for the network interface
"TP070590_ClientServerNet". This interface's IPv4 prefix is 192.168.30.0/24, and
DHCP is enabled. This indicates that the interface will use the DHCP protocol to
allocate IP addresses to connected devices.
Figure 3.34 Copying Files to a Directory and Listing Files from a Directory
The first command in Figure 3.34, “sudo cp -p /etc/named.conf /etc/named.conf.bak”,
generates a backup copy of the named DNS server's configuration file,
“/etc/named.conf”. The second command, ls -l /etc, lists the contents of the /etc
directory, which contains a variety of system configuration files.
Figure 3.39 Entering Directory and Listing the Files in the Directory
The first command, "cd /var/named," moves the current directory to "/var/named".
The second command, "ls -l", lists the current directory's contents, including file
names, permissions, owner, group, size, and modification date.
4.0 Install and configure a DHCP server using DHCP on the virtual
machine. Configure the DHCP server to assign IP addresses to clients
on the local network.
Figure 4.06 Modifying the DHCP Configuration File using Text Editor
The image depicts a text editor window displaying the contents of the
“/etc/dhcp/dhcpd.conf” file, which serves as the DHCP server's configuration. The file
contains DHCP server parameters such as default and maximum lease times,
authoritative status, subnet to be serviced, IP address range to be assigned, router
address, subnet mask, and DNS servers to be used. These configurations instruct the
DHCP server to offer IP addresses and other network information to clients on the
specified network.
5.0 Install and configure an email server using Postfix and Dovecot on
the virtual machine. Configure the email server to allow local users to
send and receive emails.
which sets the IP address ranges that the server deems local. Figure 5.10 shows the
section of the file which provides settings relating to SMTP authentication and
permission. The "smtpd_sasl_type" and "smtpd_sasl_path" lines define the SASL
authentication method and path, respectively. The "smtpd_sasl_auth_enable" line
allows SASL authentication. The "smtpd_sasl_security_options" line indicates that
anonymous authentication is not permitted. The "smtpd_sasl_local_domain" line
configures the local domain for SASL authentication. The
"smtpd_recipient_restrictions" line specifies the constraints for receiving emails. The
"disable_verify_command" line disables the VERIFY command, which checks the
existence of email addresses. Finally in Figure 5.11, this parameter configures the
server to accept SMTP connections on a certain port, usually 587 for secure
connections. Once the file configuration is completed, press “Ctrl + X’, then “Y”, and
“Enter” to save the file modifications.
Figure 5.14 Command to Edit the “dovecot.conf” File Using Text Editor
Figure 5.16 Command to Edit the “10-mail.conf” File Using Text Editor
Figure 5.18 Command to Edit the “10-auth.conf” File Using Text Editor
Figure 5.21 Command to Edit the “10-master.conf” File Using Text Editor
Figure 5.23 Command to Edit the “10-ssl.conf” File Using Text Editor
6.0 Install and configure a web server using Apache on the virtual
machine. Configure the web server to host a basic website that can be
accessed by clients on the local network.
Figure 6.02 Command to Edit the “httpd.conf” File Using Text Editor
7.0 Implement SSL/TLS encryption for email and web services on the
virtual machine. Generate and install SSL certificates for the email
and web servers.
Figure 7.05 Command to Edit the “ssl.conf” File Using Text Editor
Figure 7.14 Command to Edit the Postfix Configuration File Using Text Editor
Figure 7.17 Command to Edit the Postfix Master Configuration File Using Text
Editor
Figure 7.20 Command to Edit the Dovecot Configuration File Using Text Editor
Figure 7.22 Command to Edit the “10-ssl.conf” File Using Text Editor
Error 1
In Figure 8.03, the command “sudo dnf search bind-libs” to search for “bind-libs” in
the system. Once located, remove it using the “sudo dnf remove bind-libs” command
and reinstall BIND.
Error 2
Error 3
9.0 Conclusion
To summarize, the project successfully constructed a working network infrastructure that
included DNS, DHCP, email, and web servers, as well as SSL/TLS encryption. The
virtual network environment was created using virtual machines that ran Rocky Linux
and Ubuntu Linux. The system was created to satisfy the needs of a small firm by
offering critical network services for communication and data exchange. The integration
of these components produced a dependable and secure network infrastructure capable of
meeting a variety of organizational requirements.
10.0 References
1. Buzdar, K. (2019, March 18). Karim Buzdar. VITUX.
https://vitux.com/how-to-install-and-setup-thunderbird-email-client-in-ubuntu/
2. Codex, A. C. (2024, February 18). Installing Apache web server on Rocky Linux 9.
Reintech media.
https://reintech.io/blog/installing-apache-web-server-on-rocky-linux-9
3. Codex, A. C. (2024, March 5). Setting up Postfix Mail Server on Rocky Linux 9.
Reintech media.
https://reintech.io/blog/setting-up-postfix-mail-server-rocky-linux-9
4. Domain name system (DNS). Internet Society. (n.d.).
https://www.internetsociety.org/issues/past-categories/domain-name-system-dns/
5. Gillis, A. S. (2023, January 4). What is DHCP (dynamic host configuration
protocol)?. Networking.
https://www.techtarget.com/searchnetworking/definition/DHCP
6. MozDevNet. (n.d.). What is a web server? - learn web development: MDN. MDN
Web Docs.
https://developer.mozilla.org/en-
US/docs/Learn/Common_questions/Web_mechanics/What_is_a_web_server
7. Sharma, H. (2024, July 12). What is an email server and how does it work.
Mailmodo.
https://www.mailmodo.com/guides/email-server/
8. What is SSL/TLS encryption?. F5, Inc. (n.d.).
https://www.f5.com/glossary/ssl-tls-encryption