![](https://rsrc.ink/wp-content/uploads/2023/09/opnsenselogoa.png)
官方网站: https://opnsense.org
esxi网络示例说明
![](https://rsrc.ink/wp-content/uploads/2023/09/opnsensepptfirst-1-2560x1432.png)
…………………………………………………………………….
安装步骤:
1、下载OPNsense-23.7-DVD-amd64镜像
下载页面:https://opnsense.org/download/
系统架构选 “amd64”
“image type” 镜像类型选 “DVD”
![](https://rsrc.ink/wp-content/uploads/2023/09/opnsensedownload.png)
…………………………………………………………………….
2、解压出镜像并上传至esxi 数据存储
![](https://rsrc.ink/wp-content/uploads/2023/09/opnsenseimg.png)
![](https://rsrc.ink/wp-content/uploads/2023/09/opnsenseexsisto.png)
…………………………………………………………………….
3、新建虚拟机
客户机操作系统系列选择“其它”
操作系统版本选择“FreeBSD ”
![](https://rsrc.ink/wp-content/uploads/2023/09/opnsenseosselect.png)
…………………………………………………………………….
分配内存 “2GB”,硬盘空间“16GB”,CD/DVD驱动器1选择“数据存储ISO文件”,CD/DVD介质选择opnSense DVD镜像,添加网络适配器(vmnetwork 为opnsense LAN口,eh0为WAN口)
![](https://rsrc.ink/wp-content/uploads/2023/09/opnsensenevmconfig-2560x1368.png)
…………………………………………………………………….
编辑端口 “eth0” 和 “VMnetwork”,安全选项发中的混杂模式 更改为接受
![](https://rsrc.ink/wp-content/uploads/2023/09/opnsensenetworketh0.png)
…………………………………………………………………….
4、启动 opnsense客户机,安装配置 opensense
首次启动显示以下页面,不选任何选项,系统以live镜像方式运行
![](https://rsrc.ink/wp-content/uploads/2023/09/opnsensebootinstaller.png)
…………………………………………………………………….
至以下登录页面,用户名输入 “installer”,密码“opnsense” 进入安装模式
![](https://rsrc.ink/wp-content/uploads/2023/09/opnsensefirstbootinstaller.png)
…………………………………………………………………….
直接回车使用默认键盘布局
![](https://rsrc.ink/wp-content/uploads/2023/09/opnsensefirstbootinstallerA.png)
…………………………………………………………………….
直接回车,默认安装使用UFS文件系统
![](https://rsrc.ink/wp-content/uploads/2023/09/opnsensefirstbootinstallerB.png)
…………………………………………………………………….
直接回车,使用默认所分配置的虚拟磁盘da0进行安装
![](https://rsrc.ink/wp-content/uploads/2023/09/opnsensefirstbootinstallerC.png)
…………………………………………………………………….
选择”yes“ 按回车键进行安装
![](https://rsrc.ink/wp-content/uploads/2023/09/opnsensefirstbootinstallerD.png)
…………………………………………………………………….
系统开始从DVD镜像克隆至虚拟磁盘,需等待一段时间
![](https://rsrc.ink/wp-content/uploads/2023/09/opnsensefirstbootinstallerE.png)
…………………………………………………………………….
回车,开始设置root用户口令
![](https://rsrc.ink/wp-content/uploads/2023/09/opnsensefirstbootinstallerF.png)
…………………………………………………………………….
输入root口令,回车确认(需2次确认)
![](https://rsrc.ink/wp-content/uploads/2023/09/opnsensefirstbootinstallerG.png)
…………………………………………………………………….
完成安装,限出并重启
![](https://rsrc.ink/wp-content/uploads/2023/09/opnsensefirstbootinstallerH.png)
…………………………………………………………………….
重启后显示LAN口默认地址 192.168.1.1/24
可在当前窗口登录通过菜单进行安装配置,也可通过web浏览器进行配置
![](https://rsrc.ink/wp-content/uploads/2023/09/opnsensefirstbootinstallerI.png)
…………………………………………………………………….
浏览器访问 192.168.1.1
![](https://rsrc.ink/wp-content/uploads/2023/09/opnsensefirstbootinstallerL.png)
…………………………………………………………………….
web登录管理页面,用户名”root”,密码使用安装过程中设置的密码,如查安装过程中未设置root口令,此时默认密码为 “opnsense”
![](https://rsrc.ink/wp-content/uploads/2023/09/opnsensefirstbootinstallerM.png)
…………………………………………………………………….
进入管理页面,opnsense安装完成
![](https://rsrc.ink/wp-content/uploads/2023/09/opnsensefirstbootinstallerN.png)
…………………………………………………………………….