Hello, I want to use a router as a wifi repeater or bridge, with a differenti SSID.
I'm not good at networking.
I would like to isolate the devices connected to main router (with OEM firmware) and to wifi repeater (openWRT). My main router has no VPN functions.
How can I do that?
Maybe put on 192.168.1.x the devices connected on main router and on 192.168.2.x the devices on wifi repeater? I'm not sure the main router DHCP can be set to work like this.
Firewall rules? VPN set on the bridge/ap?
The last option is to install openWRT on main router and just set the second wifi antenna on a different vpn then the first antenna. But I don't want to mess with my main router.
If this device should broadcast both the trusted and the untrusted networks, you’ll want to set up a guest WiFi on the device. If it is untrusted only, you’ll set this up as a basic router (with a different subnet for the second lan) and then add a firewall rule to block access to the upstream (that rule can be found in the guest wifi tutorial).
I followed the guide and it worked perfectly. I have just one issue.
Now the guest are on the 192.168.2.x subnet, and cannot see devices on the 192.168.1.x.
The only problem is that even on the main lan (main router, 192.168.1.x) I have no access to 192.168.1.253 (the openWRT static ip).
If I connect both routers via ethernet, I can access LuCi configuration page. So the problem is just when routers are connected via WiFi. Any hint?
How are you connecting the two routers when you use ethernet? lan->wan, or lan->lan?
While I'm not sure about the details of your config, it's likely that you've setp your upstream against the wan firewall zone (or something setup similarly). That would, by default, mean that input is rejected. If you fully trust your upstream network, you can set input to ACCEPT on the wan/upstream zone. (this is only safe to do if you trust the network; never do this if the upstream is the internet or otherwise untrusted).
If that doesn't solve the problem, post your complete config:
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:
The wwan and lan interfaces are both using the same address and subnet, thus causing a conflict.
From what I can tell, this device is operating as an STA (client) mode wifi device for its connection to the upstream and then setting up a wifi guest network. Nothing more.