Been chasing tutorials here, on YT, etc. trying to build out an isolated guest Wi-Fi network that can use internet but not interact with other machines on my network. What I can't seem to figure out how to do is block users on the Guest Wi-Fi from having access to the LuCI login page... It seems to be visible despite the universal block on the Firewall rules.
In addition, I don't know how to create an bridge device that is just my two guest Wi-Fi virtual radios, which is why this is only set up with my 5GHz radio right now... Would love to know how to set up these rules just once for both 2.4GHz and 5GHz...
with your fw config, your Guest vlans should be already isolated with access to anywhere except the internet.
Please try /etc/init.d/firewall reload , and if that doesn't help, post the output for the following:
ubus call system board; uci export network; uci show wireless;
do not forget to mask sensitive information
Is this your main/only router, or do you have another router in the network? That affects how this would be configured and even the physics connections.
Main router - connected to cable internet modem with no routing capability (single ethernet port, no wi-fi) for internet thru "wan" interface. Plan to have privileged devices on "lan" interface (ethernet and non-guest wi-fi) and most everything else on "guest" unless I need special exceptions for "iot". How does that change things?
Please copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
Tried the reload, but no dice... Assume your ubus/uci calls are getting the same info I provided to @psherman if that provides any additional clues. Thanks for the suggestions...
Appreciate the recommendations! Clarifying question:
For the br-guest bridge, do I need to list ports for the two guest Wi-Fi radios (wlan0-1 and wlan1-1)? These are my public names for the guest Wi-Fi at 2.4GHz and 5GHz...
config device
option name 'br-guest'
option type 'bridge'
list ports 'wlan0-1'
list ports 'wlan1-1'
The IOT stuff was incomplete - I was trying to get Guest Wi-Fi working first... The 'iot' interface was going to handle stuff like Wi-Fi switches, security cameras, and other smart-home type things. Might need access to a home server on 'lan' in future if I self-host.
It seems it knows to connect the guest radios to the bridge because GUEST network is specified in the settings for the wireless... I don't fully understand why we needed, essentially, a "dumb" device to make this work, but I will take it! Thank you for your help!
I don't know the history or technical reasons behind why the radios are not specified in the network file in a bridge or interface definition, but instead, OpenWrt's config has you specify the network to which the radio should attach in the wireless config file.
Regarding the 'dumb device' bridge -- A bridge is basically the software equivalent of a switch... without it you can only make a single logical connection. If you want to connect just a single radio and no ethernet ports (or no radios and only a single logical ethernet port), you don't need to even define a bridge. But if you want to connect multiple radios or radio + ethernet, you must create a bridge for this to function. That bridge, in turn, allows the radios to both connect to the same network.