Skip to content

Latest commit

 

History

History
304 lines (154 loc) · 8.07 KB

File metadata and controls

304 lines (154 loc) · 8.07 KB

Configure pfSense

On your Windows 11 VM, open Edge and navigate to the IP address of the pfSense firewall (https:\10.0.1.1).

You will get a warning as seen below because pfSense uses a self-signed certificate. Select Advanced and then Accept the Risk and Continue.

image.png

Then you will be presented with a link to continue and a warning. This warning is because pfSense uses a self-signed certificate.

image.png

You will then be presented with a logon page. The default login is U:admin PW: pfsense

image.png

Select next.

image.png

Select Next again.

image.png

You can change the hostname if you’d like. You can also change the domain. Uncheck Override DNS and select Next.

image.png

Change the timezone and click Next

image.png

Scroll to the bottom of the page and uncheck the Block RFC1918 Private Networks and select Next

image.png

Do not change any values and select next.

image.png

Change Admin Password and select Next

image.png

Select “Reload”

image.png

Then select Finish

image.png

Select Accept

image.png

Select Close.

image.png

We still have more configurations.

Name the Interfaces

Go to Interfaces and select LAN

image.png

Change the description to “ECorp” and select “Save”

image.png

Select Apply Changes.

image.png

Change the name of the OPT1 interface.

image.png

Type in “Attack LAN” and select save.

image.png

Apply changes.

image.png

DNS Resolver

Go to Services and select DNS Resolver

image.png

Scroll down to the bottom of the page and check both DHCP Registration and Static DHCP.

Untitled

Scroll back up the page and select Advanced Settings.

image.png

Then scroll down to Advanced Resolver Options and enable Prefetch Support and Prefetch DNS Key Support.

Untitled

Then scroll down and select “Save”.

Untitled

Select Apply Changes

image.png

Networking

Now go to System and Advanced

image.png

Then Select Networking

image.png

Scroll down to Network Interfaces and enable Hardware Checksum Offloading. Then select “Save”

Untitled

Select OK

image.png

Login with the new password you set up.

Untitled

DHCP Leases

Once logged in go to Status and drop down to DHCP Leases.

image.png

We can see the Windows 11 IP.

image.png

Select the + Sign under Actions

image.png

Insert the IP address 10.0.1.2

image.png

Scroll down and select Save

image.png

Apply the changes

image.png

To make the change open a command prompt on Win 11 VM and type in the following command:

ipconfig /release
ipconfig /renew

image.png

As seen below, when running ipconfig /renew, it picks up the static IP we creared, 10.0.1.2.

image.png

Create an Alias

Create an alias by going to Firewall and select Aliases

image.png

Then select “add”

Untitled

Make the changes seen below and save it.

image.png

Apply the changes

Untitled

Create Firewall Rules

Go back to pfSense dashboard to configure Firewall Rules.

image.png

Go to the ECorp tab and select add rule to the bottom.

image.png

Make the changes seen below and select Save. This allows ECorp devices to communicate.

image.png

Apply Changes

image.png

Add another rule at the bottom

image.png

Make the changes seen below. This rule allows communications between ECorp and the AttackLAN.

image.png

Apply changes.

image.png

Select another rule at the bottom.

image.png

Make the changes seen below and select save.

image.png

Add one more rule at the bottom to block anything that is not specified by an earlier rule.

image.png

Make the changes seen below.

image.png

Apply changes

image.png

AttackLAN Rules

Go to the AttackLAN

Select add a rule at the bottom.

image.png

Make the changes seen below and select save.

image.png

Apply Changes

image.png

Select a rule at the bottom.

image.png

Add the rule below.

image.png

Select Apply Changes.

image.png

Note that if you ever need for Kali Linux to have an internet connection, to update or install new tools, you will need to disable this rule.

To disable a rule, select the edit icon (pencil icon).

image.png

Then select the disable this rule. Select Save and Apply Changes.

image.png

Create another Firewall Rule at the bottom of the LAN Interface.

image.png

Make the following options and select Save.

image.png

This rule will block any traffic attempting to go to the WAN subnets. The reason we want to do this is the WAN address is likely you home router (if you selected Bridged on the WAN interface) or VirtualBox IPs (if you selected NAT for your WAN interface). Regardless, this rule in addition to the previous rule will block any traffic from Kali Linux.

Then select Apply changes.

image.png

Reboot

Go to Diagnostics and Reboot.

image.png

Choose Normal Reboot and select Submit.

Untitled