Network Management Lab - lizzy9596/sys-265 GitHub Wiki
Network Management Lab
In this lab, we are going to configure SNMP services on fw01, web01 and ad01. We are going to configure a network monitoring system called nmon01, where we will query our systems for SNMP properties. (from lab)
Lab parts:
Configure SNMP
To start this lab I had to configure my firewall to allow SNMP. I did this by opening pfsense on the wks01 browser. After this I went to "Services" and then "SNMP". Here I enabled SNMP Daemon and did the below SNMP Daemon Setting. Finally, I set the interface binding to LAN. I saved and restarted after,
Configure nmon01
I connected nmon01 to the LAN. Then I ran the nmtui command, to configure the network settings and hostname. (below is network settings)
I then changed the root password using pwwd root
. After I created a new admin account and gave it root privileges.
After creating the user, I added the PTR and A lookup zone in mgmt01-sys265. To do this I opened the DNS manager for ad01 in server manager and added the below settings.
After I disabled ssh on nmon01 in the root account using the command: sudo nano /etc/ssh/sshd_config
. I then scrolled down to the Authentication section and replaced #PermitRootLogin with no. I then restarted ssh.
Install and Test SNMP Client on nmon01
After successfully configuring the network and disabling the ssh on the root account, I was able ssh into nmon01 on mgmt. I ran the command 'sudo yum install net-snmp-utils` to install SNMP Client.
snmpwalk -Os -c SYS265 -v2c FW01-elizabeth system
Install SNMPD on web01
Following similar steps to the configuration of nmon01 I was able to ssh into web01 and install snmpd
I was then able to install snmp on web01 using the command sudo yum install net-snmp-utils net-snmp
.
After the install I needed to back up my configuration. To do this I first went into the snmpd conf directory by running sudo mv snmpd.conf
and then ran sudo mv snmpd.conf snmpd.snmp.conf.backup
to backup the file.
I then ran the command sudo nano snmpd.conf to edit the new configuration file. I added the following code. (I ended up editing in vi)
After I started the snmpd using: systemctl enable snmpd
, systemctl start snmpd
I then added port 161/udp to the firewall using the command sudo firewall-cmd --zone=public --add-port=161/udp --permanent
, and restarted the firewall.
Install SNMP Service on AD01
I was able to install snmp services on AD01 by using the server manager on mgmt01 and navigating to the add roles wizard.
Install SNMP Tools on MGMT01
I installed the SNMP remote administration tools for MGMT01 by navigating to the tools wizard on server manager.
Enable Remote Management on AD01
I received an error when trying to manage ad01. To resolve this I needed to ssh into ad01 and allow it in the firewall.
To ssh I had difficulties and used the following website resource.
I first ran the command Add-WindowsCapability -Online -Name OpenSSH.Server
to install OpenSSH and then Add-WindowsCapability -Online -Name OpenSSH.Client
to run the client. After I started sshd using Start-Service sshd
.
I was then able to ssh into ad01 and run the following command to allow remote management: Set-NetFirewallRule -DisplayGroup "Remote Event Log Management
.
SNMP Service Security Properties on AD01
After configuring I was able to, adjust the SNMP service properties on AD01 to add the SYS265 community string and limit queries to those from nmon01.(from lab)