So my ISP modem has been in bridge mode since day one and I had followed the guide on OpenWRT Help to access Bridge mode modem but it has not been working since a few months. I am not sure what changed. The setting has been the same.
ISP Modem: 192.168.18.1 (Modem LAN4 is physically connected to the Router WAN port)
Router: 192.168.1.1
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:
cat /etc/config/dhcp
config dnsmasq
option domainneeded '1'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
option localservice '1'
option ednspacket_max '1232'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv4 'server'
option dhcpv6 'server'
option ra 'server'
list ra_flags 'managed-config'
list ra_flags 'other-config'
option dns_service '0'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
config host
option name ''
option ip '192.168.1.100'
option mac ''
config host
option name ''
option ip '192.168.1.129'
option mac ''
config host
option name ''
option ip '192.168.1.136'
option mac ''
config host
option name ''
option ip '192.168.1.110'
option mac ''
config host
option name ''
option ip '192.168.1.124'
option mac ''
config host
option ip '192.168.1.175'
option mac ''
option name ''
option dns '1'
config host
option ip '192.168.1.239'
option mac ''
option name ''
option dns '1'
config host
option ip '192.168.1.115'
option mac ''
option name ''
option dns '1'
config host
option ip '192.168.1.134'
option mac ''
option name ''
option dns '1'
config host
option ip '192.168.1.226'
option mac ''
option name ''
option dns '1'
config host
option name ''
option dns '1'
option ip '192.168.1.200'
option mac ''
config host
option name ''
option dns '1'
option ip '192.168.1.10'
option mac ''
config host
option name ''
option dns '1'
option ip ''
config host
option name ''
option dns '1'
option ip ''
config host
option name ''
option dns '1'
option ip '192.168.1.13'
config host
option name ''
option dns '1'
option ip '192.168.1.14'
config host
option name ''
option dns '1'
option ip '192.168.1.15'
config host
option name ''
option dns '1'
option ip '192.168.1.16'
option mac ''
config host
option ip '192.168.1.184'
option mac ''
option name ''
option dns '1'
config host
option name ''
option ip '192.168.1.230'
option mac ''
config host
option ip '192.168.1.139'
option mac ''
option name ''
option dns '1'
config host
option ip '192.168.1.135'
option mac ''
option name ''
option dns '1'
config host
option name ''
option ip '192.168.1.116'
option mac ''
config host
option ip '192.168.1.199'
option mac ''
config host
option name ''
option ip '192.168.1.186'
option mac ''
config host
option name ''
option ip '192.168.1.197'
option mac ''
config host
option name ''
option ip '192.168.1.169'
option mac ''
config host
option name ''
option ip '192.168.1.248'
option mac ''
config host
option name ''
option ip '192.168.1.177'
option mac ''
config host
option name ''
option ip '192.168.1.140'
option mac ''
config host
option name ''
option ip '192.168.1.170'
option mac ''
config host
option name ''
option ip '192.168.1.130'
option mac ''
config host
option ip '192.168.1.243'
option mac ''
option name ''
option dns '1'
config host
option name ''
option ip '192.168.1.201'
option mac ''
config host
option ip '192.168.1.163'
option mac ''
option name ''
option dns '1'
You need to include option defaultroute '0' here. This is a special subnet for modem access only. It should not be configured to provide a default route to the internet. You can set this option in the web interface by clicking on the advanced settings tab and unchecking the box labeled "use default gateway".
Still the same issue. Ping is okay but won't open in browser.....
I have explained this shortly in first post but here it is with modem from ISP: HUAWEI EG8247H5 and LAN port 4 in it is set by ISP for the bridge mode which is connected to WAN of the router WRT1200AC.
Am I correct in deducing that the LAN4 is thus not allowing access to the modem/router LAN? and this is causing problem somehow. I don't know why it was working previously though...
Just to be clear, did access to the modem web interface work before and now it doesn't? Do you get a 404 error in your web browser like you did with curl? The 404 error suggests that the modem's web interface isn't working properly. You could try rebooting the modem and see if that fixes it.
I would connect a PC to the modem directly and check how this web server works. Note the URL that will work for you, maybe it will be something with /login at the end. Once you know the working URL you can repeat the curl test with this URL if necessary.
Please take a packet capture from the Modemaccess interface while trying to reach it via a browser from the internal network. Some device set the IPv4 TTL field to 1 to make sure the packets are (by default) only propagated one hop wide (things behind your router are 2 hops away). I am not saying this is your issue, but it is something observed in the wild and easy enough to check...
Could also be that the client laptop needs to be in the same subnet as the modem. So a SNAT rule could help too
Best is to check the manual of the modem for hints....