安装
1 2 3 4 5 6 7 8 9
|
https://github.com/immortalwrt/immortalwrt
https://mirrors.jlu.edu.cn/immortalwrt/
https://firmware-selector.immortalwrt.org/
|
选择 generic-squashfs-combined-efi.img
1
| cd /tmp && https://mirrors.jlu.edu.cn/immortalwrt/releases/23.05.1/targets/x86/64/immortalwrt-23.05.1-x86-64-generic-squashfs-combined-efi.img.gz
|
1
| gunzip immortalwrt-23.05.1-x86-64-generic-squashfs-combined-efi.img.gz
|
1
| mv immortalwrt-23.05.1-x86-64-generic-squashfs-combined-efi.img.gz open.ing
|
扩容
1
| dd if=/dev/zero bs=1M count=10240 >>opwrt.img
|
![65f1a5b5cedda.png](https://image.6669998.xyz/VRbsmc.png)
1 2 3
| parted open.img #打开镜像
print #查看具体分区
|
![65f1a6ef77fe2.png](https://image.6669998.xyz/196A8C.png)
![65f1a7b368d0c.png](https://image.6669998.xyz/ZtgXZc.png)
安装 immortalwrt
1
| qm importdisk ID open.img local-lvm #id 为虚拟机ID
|
![65f1a87ac1696.png](https://image.6669998.xyz/dPIrf7.png)
修改IP
![65f1aa258b17a.png](https://image.6669998.xyz/F9W0lm.png)
![65f1aa9d9e20b.png](https://image.6669998.xyz/DngxeI.png)
重启网络服务
防火墙添加规则
iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE