## Lab 12 - Name: - Email: Instructions for this lab: https://pattonsgirl.github.io/CEG2350/Labs/Lab12/Instructions.html ## Part 1 - Linux Network Command Cheat Sheet | Command | Description | Resource | |--------------------------------------------------------|-------------|----------| | `hostname` | | [Resource Link](Resource URL HERE) | | `ipconfig` (Powershell) | | [Resource Link](Resource URL HERE) | | `ifconfig` | | [Resource Link](Resource URL HERE) | | `ip a` | | [Resource Link](Resource URL HERE) | | `route` | | [Resource Link](Resource URL HERE) | | `iptables -L` | | [Resource Link](Resource URL HERE) | | `Invoke-RestMethod ifconfig.me` (Powershell) | | [Resource Link](Resource URL HERE) | | `curl ` | | [Resource Link](Resource URL HERE) | | `curl ifconfig.me` OR `curl ipinfo.io` | | [Resource Link](Resource URL HERE) | | `ping ` | | [Resource Link](Resource URL HERE) | | `nslookup ` | | [Resource Link](Resource URL HERE) | | `traceroute ` | | [Resource Link](Resource URL HERE) | | `nmap -p ` | | [Resource Link](Resource URL HERE) | | `tcpdump -i -n host ` | | [Resource Link](Resource URL HERE) | ## Part 2 - Network Info ### Network Info for on 1. Insert image or code blocks contianing a summary of the device's network settings for a minimum of the network it is connected to. 2. Identify specifically the values of the following fields for the device and network connection to: | Setting | Value | |---------------------------------------------------|-------| | Hostname of the device | | | MAC address of the NIC | | | Private IPv4 address | | | Subnet mask | | | Gateway address | | | DHCP enabled? (y/n) | | | DHCP address (if yes) | | | DNS server address | | | Public IPv4 address for devices on network | | ### Network Info for AWS Instance on the AWS Network Stack 1. Insert image or code blocks contianing a summary of the device's network settings for a minimum of the network it is connected to. 2. Identify specifically the values of the following fields for the device and network connection to: | Setting | Value | |---------------------------------------------------|-------| | Hostname of the device | | | MAC address of the NIC | | | Private IPv4 address | | | Subnet mask | | | Gateway address | | | DHCP enabled? (y/n) | | | DHCP address (if yes) | | | DNS server address | | | Public IPv4 address for AWS instance | | ## Part 3 - Security Screenshot of your changed Inbound Security Group rules. ![Inbound Rules for Lab 12](relative/path/to/image) > Why should HTTP allow any IP, while SSH has restrictions? > Describe how you validated or can validate if your rules are working with the restrictions given. ## Part 4 - Socket to Me [Link to server side source code]() [Link to client side source code]() ![Screenshot of successful running of and communication between client and server](/path/to/image) ## Part 5 - It's Alive! Maybe... 1. For the given server IP, describe purpose and what types of requests it does / doesn't respond to: - `8.8.8.8` - Purpose: - Responds to: - Does not respond to: - `5.9.243.187` -> `wttr.in` -> `https://wttr.in` - Purpose: - Responds to: - Does not respond to: - Your AWS instance public IP - Purpose: - Responds to: - Does not respond to: - `34.117.59.81` -> `ipinfo.io` -> `https://ipinfo.io` - Purpose: - Responds to: - Does not respond to: 2. Does `ping` tell you if a server is "working"? 3. What protocol does `ping` use? What does this mean about the server's firewalls? 4. Why won't `ping` work if you specify `https://` before the domain name? 5. Does an IP lookup always result in finding the correct domain name / URL to access the resource, and vice versa? 6. What happens at when an `http` request is made to a server with `https` enabled? Citations: - ## Extra Credit - Tattle Tale ### IPv4 Source Report | Rank | IPv4 Address | # of Attempts | | ----- | ------------ | ------------- | | 1 | | | | 2 | | | | 3 | | | | 4 | | | | 5 | | | Commands to parse `csv` for report: ### Username Used Report | Rank | Username | # of Attempts | | ----- | ------------ | ------------- | | 1 | | | | 2 | | | | 3 | | | | 4 | | | | 5 | | | Commands to parse `csv` for report: ## Citations To add citations, provide the site and a summary of what it assisted you with. If generative AI was used, include which generative AI system was used and what prompt(s) you fed it.