However, I do not know what to do from here. I am perfectly happy to configure the router from the command line (preferred actually); however, almost all tutorials revolve around flashing a device and connecting via a webui.
Any hints in getting started would be greatly appreciated. Thanks Chuck
It looks like the default firewall in OpenWRT prevents access to the UI from what it sees as the WAN interface, that makes sense I think.
A quick workaround you can use is flushing its firewall so you can then access it with a web browser. Youâll obviously want to reconfigure the firewall to allow it properly later.
incus exec openwrt-delme-01 â nft flush ruleset
incus list openwrt-delme-01
Then grab the IP from there and access it from your web browser.
It would add a lan side interface, to eth1 (if added to the container), thatâs usable to do dhcp out of the box (on another network than most commonly used by isp 192.168.1.0/24 by default)
If not, using command line, it would be pretty easy : after incus exec sh in the container, install Luci (itâs basically the UI : opkg update && opkg install luci), then modify file /etc/config/firewall as :
config zone
option name 'wan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
option masq '1'
option mtu_fix '1'
list network 'wan'
list network 'wan6'
You can now access openwrt, both using SSH and UI, on wan side
Donât forget to change it back when youâre done configuring it
Itâs a pretty nice piece of software, not a big memory footprint, can manage to do many things⊠my kid used it, with an old netbook to create an access point, using incus
You can add a proxy device to access it with incus config device add openwrt-delme-01 luci proxy listen=tcp:127.0.0.1:8888 connect=tcp:127.0.0.1:80, if you want to allow access from outside the host change the listen argument to listen=tcp:0.0.0.0:8888, and of course you change the port 8888 with whatever you want.
If you are using a macvlan, bridge, etc you can add a rule allowing access to the web interface via the firewall in the shell using:
uci add firewall rule
uci set firewall.@rule[-1].name='Allow-LuCI'
uci set firewall.@rule[-1].src='wan'
uci set firewall.@rule[-1].dest_port='80'
uci set firewall.@rule[-1].proto='tcp'
uci set firewall.@rule[-1].target='ACCEPT'