1、准备 OpenWrt 镜像包
我已经转好了 vmdk 格式的,更多的可以去恩山论坛下载
OpenWrtvmdk格式-虚拟化文档类资源-CSDN下载
也可以在这个平台在线定制 OpenWrt固件下载与在线定制编译
2、网络选择 NAT 模式
![图片[1]-VMware 安装 OpenWrt 旁路由并配置 PassWall-杨公子的博客](https://www.hiir.cn:12580/wp-content/uploads/2023/08/4a47a0db6e60-3.png)
![图片[2]-VMware 安装 OpenWrt 旁路由并配置 PassWall-杨公子的博客](https://www.hiir.cn:12580/wp-content/uploads/2023/08/fb5c81ed3a22-3.png)
3、创建虚拟机,选择自定义方式
![图片[3]-VMware 安装 OpenWrt 旁路由并配置 PassWall-杨公子的博客](https://www.hiir.cn:12580/wp-content/uploads/2023/08/10fb15c77258-2.png)
4、一直下一步至
![图片[4]-VMware 安装 OpenWrt 旁路由并配置 PassWall-杨公子的博客](https://www.hiir.cn:12580/wp-content/uploads/2023/08/09dd8c2662b9-2.png)
5、一直下一步至,这里选择 NAT 方式
![图片[5]-VMware 安装 OpenWrt 旁路由并配置 PassWall-杨公子的博客](https://www.hiir.cn:12580/wp-content/uploads/2023/08/8266e4bfeda1-2.png)
6、一直下一步至,这里选择 “使用现在虚拟磁盘”,选择vmdk格式的
![图片[6]-VMware 安装 OpenWrt 旁路由并配置 PassWall-杨公子的博客](https://www.hiir.cn:12580/wp-content/uploads/2023/08/f19c90851297-2.png)
![图片[7]-VMware 安装 OpenWrt 旁路由并配置 PassWall-杨公子的博客](https://www.hiir.cn:12580/wp-content/uploads/2023/08/9eb9cd58b9ea-1.png)
![图片[8]-VMware 安装 OpenWrt 旁路由并配置 PassWall-杨公子的博客](https://www.hiir.cn:12580/wp-content/uploads/2023/08/602e8f042f46-1.png)
7、启动系统,密码默认为空,修改网卡地址
vim /etc/config/network
# 修改 ip, 网关,DNS
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.26.120'
option netmask '255.255.255.0'
option ip6assign '64'
option gateway '192.168.26.2'
list dns '114.114.114.114'
8、重启网络
/etc/init.d/network restart
9、进入系统,默认为空 地址:192.168.26.120
![图片[9]-VMware 安装 OpenWrt 旁路由并配置 PassWall-杨公子的博客](https://www.hiir.cn:12580/wp-content/uploads/2023/08/7afbb1602613-1.png)
10、设置 PassWall
切换节点订阅,拉下最下面,点击 “添加”,然后保存并应用
(1)这里的 订阅URL 要找专业服务商购买
![图片[10]-VMware 安装 OpenWrt 旁路由并配置 PassWall-杨公子的博客](https://www.hiir.cn:12580/wp-content/uploads/2023/08/586e508f161f-1-1024x496.png)
(2)点击手动订阅,查看所有节点
![图片[11]-VMware 安装 OpenWrt 旁路由并配置 PassWall-杨公子的博客](https://www.hiir.cn:12580/wp-content/uploads/2023/08/59b2900aa03c-1-1024x496.png)
(3)成功显示所有可用节点
![图片[12]-VMware 安装 OpenWrt 旁路由并配置 PassWall-杨公子的博客](https://www.hiir.cn:12580/wp-content/uploads/2023/08/9eb60bc8bf2b-1-1024x518.png)
(4)切换基本设置,选择一个节点,点击勾选 主开关,保存成功
![图片[13]-VMware 安装 OpenWrt 旁路由并配置 PassWall-杨公子的博客](https://www.hiir.cn:12580/wp-content/uploads/2023/08/c00b57557743-1-1024x504.png)
11、VMware 在创建一台 window10 虚拟机
修改window10 测试机IP跟网关,网关就是 openwrt 的IP地址
![图片[14]-VMware 安装 OpenWrt 旁路由并配置 PassWall-杨公子的博客](https://www.hiir.cn:12580/wp-content/uploads/2023/08/7b6fbd4c592d.png)
12、试下能不能访问 google
![图片[15]-VMware 安装 OpenWrt 旁路由并配置 PassWall-杨公子的博客](https://www.hiir.cn:12580/wp-content/uploads/2023/08/d642f8c3d2d6.png)
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END