Lab 01 : Environment Setup - eamonstackpole/my-tech-journal GitHub Wiki
Overview
- In this lab we configured a firewall and windows client to allow for the windows client to access the internet from its own LAN.
Setting up the VMs
- Ensure Network Adapter 1 = WAN, Network Adapter 2 = LAN
Configuring the Firewall
Root
After booting up and logging into the firewall, this is the menu given:
-
Enter 1 to assign interfaces
-
- Make sure WAN is em0 and LAN is em1 (check MAC addresses to make sure they match up)
- Make sure WAN is em0 and LAN is em1 (check MAC addresses to make sure they match up)
-
Then Enter 2 to assign IP addresses to the interfaces
-
- Note: Make sure to use the assigned one
-
- Do not enable any DHCP options or revert to http when going through this process
GUI
- Go to the default gateway to access console
- Do not mess with a lot of the options, only these:
-
- Hostname, domain name, primary DNS, RFC1918 networks (off), password
- Note: Give it a few minutes to update, it does not happen immediately
Configuring the Windows Machine
System Renaming & Account Creation
System Renaming
- Go to File Explorer
- Right click this PC, Properties
- Change settings, change
Account Creation
- search bar 'lusrmgr.msc'
- click users, right click to create new user
- right click on the made user and select properties
- go to members of and add hostname\Adminstrators
Configuring IP addresses
- Control Panel, Network and Internet
- Networking and Sharing Center, Ethernet0 or whatever adapter is next to connections
- Properties, TCP/IPv4, Properties
- Enter relevant information
Notes
Commands
- whoami - returns the logged in account's name
- hostname - returns the name of the host machine
- ping [destination] - sends a series of packets to an address
-
- -c / -n [#]: sets how many packets are sent
- Tracert [destination] - traces the route taken to an address
-
- -h [#] : sets the maximum number of hops (default is 30)
Tech Terms
Default Gateway
- A forwarding host when the destination is unknown or no specific route is given
- Helps packets flow more efficiently
Routing & Hops
- Hops are how many routers / routing tables the packet has gone through
- Routing can be configured to look for least amount of hops or account for traffic
Pfsense
- Firewall or Router software
- Open Source Community Edition or Closed Source Plus Edition
- named after packet filtering tool PF