Install OpenWRT on Proxmox: Difference between revisions
No edit summary |
No edit summary |
||
| Line 22: | Line 22: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Configuration == | |||
1. Set WAN and LAN interfaces: | |||
<syntaxhighlight lang="bash"> | |||
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' | |||
</syntaxhighlight> | |||
== Final steps == | == Final steps == | ||
Revision as of 19:07, 28 August 2024
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://