Install OpenWRT on Proxmox
Prequisites
1. Download and extract OpenWRT image:
curl https://downloads.openwrt.org/releases/23.05.4/targets/x86/64/openwrt-23.05.4-x86-64-generic-ext4-combined-efi.img.gz -o /tmp/openwrt.img.gz
gzip -d /tmp/openwrt.img.gz
Install
1. Create an empty virtualmachine
No hdd, at least 2 interfaces, etc...
2. Attach the image to vm:
qm importdisk 100 /tmp/openwrt.img local-lvm
Configuration
1. Set WAN and LAN interfaces:
uci set network.wan.device='eth0'
uci set network.wan.proto='static'
uci set network.wan.ipaddr=172.16.16.254
uci set network.wan.netmask='255.255.255.0'
uci set network.wan.gateway=172.16.16.1
uci set network.wan.dns=213.133.98.98
uci set network.lan.device='eth1'
uci set network.lan.ipaddr=10.0.0.254
uci set network.lan.netmask='255.255.255.0'
Final steps
Sources
- https://