I just installed openwrt into my mi router 4a giga. I can open webui from my pc3 which directly connect to the mi router but I can't open the web interface from networks other than openwrt has.
I can ping from openwrt's terminal to other networks but I can't even ping to openwrt from other networks.
Also, I am having trouble understanding how your 192.168.3.0/24 devices are working through the mi router - you seem to have he same subnet on the wan and lan of that device, and that will not work at all.
even if I disable firewall webui is still not opening from other networks. wan and lan on same subnet? I only changed br-lan ip address from 192.168.1.1 to 192.168.3.2. could you give more detail please?
Ok... that actually is okay -- as long as the 192.168.3.0/24 network is LAN only on that device and you're not using the WAN port... it basically transforms the mi router to a dumb AP.
If that's the case...
the firewall on your Mi router won't matter at all if your Mi device is a dumb ap. You need to set your main router to allow inter-VLAN traffic. Currently, the firewall on that device may not allow it.
This cannot work. The subnets on the WAN and LAN must be different.
What is your goal for this device? It seems you already have a router ahead of this one that provides a network on 192.168.3.0/24 -- what is the purpose of the Mi router?
I don't have any goal right now. I just want to figured out how things get done at openwrt. as you said if I changed wan ip adress static like 192.168.4.1 it can not be reach to the internet.
If you wish to keep your current 'double' router setup, you need to change the LAN IP of the Xiaomi, not the WAN IP. eg. 192.168.4.1 would work for Xiaomi LAN.
Then set up a port forward rule on the Xiaomi to forward port 80 from WAN to LAN IP of the Xiaomi, eg if LAN IP is 192.168.4.1.
Then you should be able to access LuCI on the Xiaomi at its WAN IP of 192.168.3.2 (CORRECTION) from PC1 & PC2, provided your main router allows routing between the 192.168.2.x and 192.168.3.x subnets.
Where possible it is recommended to avoid 'daisy chaining' routers due to possible double NAT issues. ie. one 'router' behind another router is 'poor' practise. Suggest configure Xiaomi as a dumb access point if your main router can serve DHCP. (ie. turn OFF DHCP server and use only the LAN ports on Xiaomi. Assign a LAN IP of 192.168.3.x to the Xiaomi)
That is also expected. The lan and wan must be different subnets. But the wan must be on the same subnet as the upstream connection (192.168.3.0/24), so it is the lan that must be changed.
If you don’t have a goal for the mi router, why are you using it? Your are only making your network unnecessarily complicated if there is no specific function it provides.