On my network I want to accomplish the following setup:
Currently:
Modem -> Wired router with openwrt (handling dhcp) -> wireless router with openwrt as an access point -> single SSID
In this configuration all devices in the network can ping each other.
What I want:
The same hardware configuration as above, but with the following changes:
Two SSIDS from the wireless access point, a guest SSID and a regular SSID. They should be completely isolated from each other.
Additionally, I want all ethernet connected devices to be inaccessible from devices on the guest SSID.
So in short, I want to add another SSID that's isolated from the rest of the network. I've been browsing the documentation on guest networks and vlans, but they assume a single router/ap setup. Also, the behavior of openwrt out of the box looks like it doesn't isolate vlans from one another.
So my question is, what's the best way to accomplish guest ssid isolation from the entirety of the rest of the system, assuming a primary wired router connected to the modem and providing dhcp, and a secondary wireless access point providing both the guest ssid and the main ssid.
preferably, set up the guest network on the main router, use VLANs to connect it to the ap. This requires either a direct connection from the router to the ap. Or a managed switch between the two devices (an unmanaged switch will not be suitable).
alternatively, you can setup the guest network on the ap only. This is less optimal because you have two different devices handling the routing, but is still possible.
There isn’t a great guide for VLANs because there is nuance. But start with the guest WiFi guide - skip the parts about the WiFi stuff, but create the new network and firewall rules. Then we will connect it to the Ethernet port with VLANs. And finally we will configure your ap.
Please connect to your OpenWrt device using ssh and 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:
skip the parts about the WiFi stuff, but create the new network and firewall rules. Then we will connect it to the Ethernet port with VLANs. And finally we will configure your ap.
Thanks, to be clear, I do all of this on the wired router, not the AP?
On the surface, this looks good and we'll connect it to ethernet shortly.
I need to know which port the AP connects to, and then I need to see the config to verify everything and then make the appropriate changes:
Please connect to your OpenWrt device using ssh and 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:
:u* designates a VLAN as untagged + PVID on the port.
:t means that the VLAN is tagged on that port
LMK if you need me to expand this with more detail.
If you set DHCP option 6, it will advertise the desired DNS server to the clients on the respective network. Or, you can set it as the system resolver in dnsmasq.