pfSense
pfSense is a multifunctional software router-firewall based on FreeBSD.
Key features: routing (including dynamic routing), firewall protection, NAT, DHCP server, load balancing, VPN (including OpenVPN and L2TP), dDNS, PPPoE, IDS, and proxying.
Benefits
- Modular architecture.
- Own package manager.
- Built-in monitoring, logging, and reporting.
- Firewall, intrusion detection and prevention systems (IDS/IPS), and antivirus.
- Integrations with Security Onion, Wazuh, etc.
Alert
If you are creating a VM with more than eight interfaces, SSH may not be available on the first interface. SSH will most likely be available at the IP address of the ninth interface, but this is not guaranteed.
-
Get an SSH key pair for connection to a virtual machine.
-
Create a security group in the network where you will deploy the VM with pfSense and configure the following rules:
Traffic direction Port range Protocol Destination / Source CIDR blocks Inbound22AnyCIDR0.0.0.0/0Inbound25AnyCIDR0.0.0.0/0Inbound465AnyCIDR0.0.0.0/0Inbound587AnyCIDR0.0.0.0/0Inbound80AnyCIDR0.0.0.0/0Inbound443AnyCIDR0.0.0.0/0OutboundAll rangeAnyCIDR0.0.0.0/0Security groups are used in Yandex Cloud services to control network access to the object they apply to. If you assign a security group without rules to the network interface of a VM, the VM will not be able to send or receive traffic.
-
Create a VM from a public image:
-
Under Image/boot disk selection, in the Product search field, enter
pfSenseand select the pfSense public image. -
Under Network settings, in the Security groups field, select the security group you created previously.
-
Under Access:
-
Enter
freebsdin the Login field.Warning
You must not use
adminor other logins. Usefreebsdonly. -
Paste the contents of the public SSH key file in the SSH key field.
Save the VM public IP address.
-
-
-
Connect to the VM over SSH. To do this, use the
freebsdusername and the private SSH key you previously created. -
To access the console, click
8. Openroot_password:ee /conf/root_password -
Copy the password. You will need it to access the web interface.
-
In the browser, go to
https://<VM_public_IP_address>/. -
Use the following parameters to connect to the service:
- Username:
admin. - Password:
<password_from_root_password_file>.
Change the password if needed.
- Username:
- Creating VPN connections between physical and cloud resources.
- Protecting sites and applications.
- Translating addresses.
- Filtering traffic.
- Routing on the internet.
- Detecting intrusions (IDS/IPS).
- Traffic monitoring.
- Dynamic routing.
OpenNix
OpenNix provides support to pfSense users in Yandex Cloud. You can contact their support team by email at support@opennix.ru. Support is available on business days from 9 a.m. to 6 p.m., GMT+3.
Yandex Cloud
Yandex Cloud does not provide technical support for this product. If you have any issues, please refer to the vendor’s information resources.