pfSense as NAT instance

After creating a virtual machine in VK Cloud, the user will be able to use SSH to connect and get the password to access the pfSense firewall web interface.

  1. First, the user needs to connect via ssh:
ssh freebsd@public_vm_public_ip

The next step is to press “8” to access the console.

The file with the new password is available at:

/conf/root_password 

With this password, the user can log in to the web interface at https://public-ip-vm.

Username: admin

Password: from file

After successful authorization the user can proceed to basic configuration. Navigate to “Interfaces -> Assignments” and click “Add” (Figure 1).

Figure 1. Adding an interface

The next step is to configure a static IP address. To do this, check the “Enable interface” box.

For IPv4 Configuration Type, select Static IPv4. The window with network settings is shown in Figure 2.

Figure 2. Basic settings of network interfaces

The next step is to set the IP address and select the subnet mask (see Figure 3).

Figure 3. Setting the IP address and subnet mask

Then, click ‘Save" button and then “Apply changes”.

After that, configure static routing for the virtual machines on user’s private network.