In Proxmox install pfSense Tutorial

This tutorial is for a newer version of Proxmox. Before the beginning of the tutorial, assume that:

  • Proxmox host is up and running

  • Host may be used having at least two WAN and LAN network interface.

  • PfSense disc image has been uploaded to the host

A, Proxmox network settings

To pfSense virtualization software, first create two Linux bridge on Proxmox, these bridges will be used for LAN and WAN interfaces. Select from the host server view and navigate to System> Network. pfSense firewall will use eth1 and eth2 interface, and an interface for eth0 Proxmox management.


../_images/screen_shot_2017-06-17_at_23.19.20.png

Click Create, and then select Linux Bridge. Enter eth1 under a bridge port.

../_images/screen_shot_2017-06-17_at_23.19.59.png

Repeat this process to add another Linux Bridge, this time adding eth2 under the bridge port.

../_images/screen_shot_2017-06-17_at_23.20.13.png

Proxmox Networking Linux should now show two bridges, as shown below. Note : If the interface is not marked as the Active (active) , the Proxmox need to restart.

../_images/screen_shot_2017-06-17_at_23.23.59.png

Second, create a virtual machine pfSense

After you create the WAN and LAN Linux bridge, and now we continue to create a new virtual machine. Click on the upper right corner of the "Create a virtual machine", the new virtual machine wizard will appear. Under the General tab, add a name for pfSense VM.

../_images/screen_shot_2017-06-17_at_23.28.02.png

Under "Operating System" tab, select "Other OS Type", then click "Next."

../_images/screen_shot_2017-06-17_at_23.28.08.png

On the CD / DVD tab, select the local storage, and then find the previously uploaded pfSense ISO under ISO image.

../_images/screen_shot_2017-06-17_at_23.28.15.png

On the next tab, select "in" bus / device " VirtIO" , then enter the desired disk size.

../_images/screen_shot_2017-06-17_at_23.28.31.png

On the "CPU" tab, select a Sockets and add one or more cores. CPU type is confirmed Default (kvm64).

../_images/screen_shot_2017-06-17_at_23.28.56.png

In the "Memory" tab, and add at least 1024 MB. A fixed amount of memory.

../_images/screen_shot_2017-06-17_at_23.29.17.png

在“网络”选项卡上,选择“桥接模式”和“vmbr1”。确保 在“模式”下选择了VirtIO(半虚拟化)。

../_images/screen_shot_2017-06-17_at_23.29.29.png

最后,确认设置并等待创建VM。从服务器视图侧栏中选择新创建的虚拟机。

../_images/screen_shot_2017-06-17_at_23.29.46.png

选择pfSense虚拟机后,单击“硬件设置”,然后添加另一个网络设备。在Bridge下,输入 vmbr2,然后在模式下选择VirtIO(半虚拟化)。

../_images/screen_shot_2017-06-30_at_18.23.47.png

确认虚拟机现在具有两个网络接口。

../_images/screen_shot_2017-06-17_at_23.30.05.png

三、启动和配置pfSense虚拟机

创建新的虚拟机并添加网络接口之后,就可以启动虚拟机了。如果一切都正确完成,可以从控制台窗口中看到pfSense正在启动。

../_images/screen_shot_2017-06-17_at_23.30.32.png

pfSense安装程序会提示你选择引导模式,按“I ”来启动安装程序。

../_images/screen_shot_2017-06-17_at_23.31.06.png

pfSense安装程序启动时,请按照在物理设备上的安装步骤进行操作。只需运行“快速/轻松”设置,然后等待它完成即可。出现提示时,选择标准内核。单击重新启动来完成安装。确保从虚拟CD / DVD媒体中移除ISO映像。

../_images/screen_shot_2017-06-17_at_23.41.38.png

pfSense虚拟机重新启动后,进入接口分配界面。在这里我们不需要设置VLAN,所以按 "N"并确认

../_images/screen_shot_2017-06-17_at_23.44.04.png

在后面的步骤中,分配WAN和LAN接口。在本教程中,会将vtnet0分配给WAN,vtnet1分配给LAN。

../_images/screen_shot_2017-06-17_at_23.44.18.png

分配接口后,pfSense防火墙将完成启动过程。

../_images/screen_shot_2017-06-18_at_00.01.41.png

四、配置pfSense与Proxmox VirtIO一起使用

pfSense安装和接口分配完成后,从另一台计算机连接到分配的LAN端口,对pfSense进行配置和管理。

Note: Because you have not disabled hardware checksum offload, so access pfSense webGUI may be very slow, this is normal. To disable hardware checksum offload, navigate to System> Advanced Options, then select the Network tab. In the "  Network Interface" under the section, select the "  Disable hardware checksum offload" , then click "Save." You need to reboot after you complete this step.

../_images/screen_shot_2017-06-30_at_18.51.25.png

So far, we have completed the installation and configuration of a virtual machine on Proxmox pfSense.


Guess you like

Origin blog.51cto.com/fxn2025/2447310