安装
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
|
1 2 3
| parted open.img #打开镜像
print #查看具体分区
|
安装 immortalwrt
1
| qm importdisk ID open.img local-lvm #id 为虚拟机ID
|
修改IP
重启网络服务
防火墙添加规则
iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE