Creating a pfSense virtual machine
Here is an example of how to set up a virtual machine with pfSense in the Yandex Cloud infrastructure.
- The first step is to create a virtual machine. The configuration will be done through the Yandex Cloud web interface (see Figure 1).
Figure 1. Virtual machine creation
The user specifies the name of the virtual machine and defines the Availability zone. If necessary, it is possible to add Labels and Description of the virtual machine.
- Next, select the pfSense image from the Marketplace (see Figure 2).
Figure 2. Select the PfSense Image
- The user should then define the disk size according to the needs or leave the default value (see Figure 3).
Figure 3. Setting the Disk Size
Also, the user can select the type of disk based on the options offered.
- The amount of RAM and processor cores also depends on the user’s preferences and fits their specific tasks. We left the default values (see Figure 4).
Figure 4. Setting the RAM and Processors
- Network settings
Select the appropriate subnet for the WAN interface. The settings can be unchanged, but the subnets mustn’t overlap (see Figure 5).
Figure 5. Network Settings
The next step is for the user to add an additional interface that will act as a LAN and serve as a gateway for private networks (see Figure 6).
Figure 6. Adding Network Interface
- Now the user can set a username for SSH and provide a public key. In this case, it is sufficient to specify the user “freebsd”. Then click on the “Create Virtual Machine button”. The VM creation process will take some time. Once the VM creation is completed, the user will be able to connect to it via SSH.