At least on that point, the modem is on the same subnet as your LAN but plugged into the WAN, so you'll "never" be able to connect. To be able to access the modem, you'll need to, at a minimum:
- Define another interface/address on the WAN port for 192.168.1.0/24
- Change your LAN to something else, as you generally can't have two interfaces with the same subnet
You can then port-forward using SSH through your OpenWrt box to access the modem. Something like
desktop $ ssh -L8080:192.168.1.254:80 you@your.openwrt.router
If you want to access the modem from elsewhere directly, then you'd additionally need to set up forwarding rules and firewall rules around what hosts on what networks have access. When I set up this type of thing, access to the modem and the OpenWrt box, both being "critical systems", are constrained to a very limited VLAN.
I'm not sure why you're using static addressing on your WAN, especially as it conflicts with your LAN subnet. In my opinion, you should get your modem into "pass-through" or "transparent" mode and set your WAN for DHCP. If you can't do that, and it's very much worthwhile taking the time to find out how to do so, then you've got "double NAT" and can deal with that later.
Your configuration of a static address on your wireless is also confusing to me. What was your thinking behind doing that?
Also, what version of OpenWrt are you running? The _orig_ifname
and _orig_bridge
temporary storage was moved out of /etc/config/network
some time ago, as I recall.
I'd personally take the path of abandoning your current config, and starting fresh.
Step 1 -- Get "main" OpenWrt box working properly with DHCP on WAN, and some subnet that is not 192.168.1.0/24 on its LAN. Except for the LAN subnet, this should be close to "stock" config.
Step 2 -- Get "dumb AP" connected as per the previous link. LAN <= cable => LAN. No DHCP server, no DNS, basically just the wireless bridged and a unique IP from your chosen LAN network on its LAN bridge so that you can manage it.
Step 3 -- Deal with access to the modem's management interface