# pfSense

## About

To segregate my Servers from my main network, I created another Virtual LAN. This was a more secure approach and also creates some kind of segregation in my home network. I also have custom firewall rules in place in order to restrict the systems from accessing my main network just in case someone were to get into one of those systems.&#x20;

I also have an OpenVPN server setup in pfSense to enable me to access my machines when I'm not on prem. I'll write about how I did that soon!

![](/files/3ZYyuencPyv2ucjy2hQ5)

![](/files/5VgRYx4DSxPkiWGvzrXN)

## Setup Instructions

### Vswitch Configuration

To create a port group on VMware ESXI we first need to create a Virtual Switch as shown below.

![](/files/IwS8aEq491HkuUMTI6HQ)

### Port Group Configuration

Now that we have a virtual switch setup, we can setup the port group to assign our machines to.

![](/files/GYe4k2z7UDr2n8uPbKer)

![](/files/233E895qkyVqeU6ncDTi)

### Pfsense VM Configuration

Now that we have the new port group created, we can add our Pfsense VM into the network to act as the gateway.

![](/files/fSZAdvm0eeGTzuLvKjbW)

![](/files/Sw6z2wapf97hbbVR4X8b)

Now that the machine is connected to the LAN, we will be able to onboard the new LAN onto the FW.

![](/files/TqC0xWNVQslgNg3M8uqJ)

Once the Interfaces is added, we have to configure the interface and set the IP range.

![](/files/3RaFW6fMZwmxyb3xVnOy)

![](/files/37WnpfBixyzcGK97PJoL)

And once all that is done, check back at the terminal to confirm that you're LAN is successfully added as shown below.

![](/files/kjODSFEqSGuXbNthqihf)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://homelab.4pfsec.com/networking/pfsense.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
