Skip to content

Instantly share code, notes, and snippets.

@frgomes
Last active March 16, 2024 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frgomes/0056e46c1a97680ce7a5a6b0e3cb9f8b to your computer and use it in GitHub Desktop.
Save frgomes/0056e46c1a97680ce7a5a6b0e3cb9f8b to your computer and use it in GitHub Desktop.
proxmox: install openwrt
proxmox / local / CT Templates
------------------------------
Download from URL: https://images.linuxcontainers.org/images/openwrt/23.05/amd64/default/20240316_11%3A57/rootfs.tar.xz
SHA-256: d6df8e1abeb24965146e22186b7aa767e3d42fac7fd71be0805cbc0c82377917
proxmox console
---------------
pct create 201 /var/lib/vz/template/cache/openwrt-20240316.tar.xz --arch amd64 --hostname openwrt --rootfs local-lvm:201 --memory 1024 --cores 2 --ostype unmanaged --unprivileged 1 --net0 name=eth0 --net1 name=eth1 --storage local-lvm
proxmox: /etc/pve/lxc/201.conf
----------------------------------------
lxc.cgroup2.devices.allow: c 10:200 rwm
lxc.mount.entry: /dev/net dev/net none bind,create=dir
openwrt: /etc/config/network
----------------------------------------
config interface 'wan'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.0.61'
option device 'eth0'
option gateway '192.168.0.1'
list dns '1.1.1.1'
list dns '1.0.1.0'
list dns '9.9.9.9'
config interface 'lan'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.61.1'
option device 'br-lan'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth1'
openwrt: /etc/config/firewall
----------------------------------------
config rule
option src wan
option dest_port 80
option proto tcp
option target ACCEPT
Now access OpenWRT interface at: http://192.168.00.61:80/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment