[Solved] Unable to browse Internet

What do I need to set to be able to browse the Internet via a laptop connected to an OpenWrt router, given that I can ssh into the router and ping 8.8.8.8 or google.com from there?

Is this a DNS or Firewall issue?

I'm using a default installation and accessing the Internet via a 4G/LTE connection.

I'm sure I'm missing something really basic.

If your cellular modem is a modem+router and has a lan subnet of 192.168.1.0/24, that will cause the behavior you are describing.

If that's the case, change your OpenWrt lan address to something like 192.168.5.1 and that will solve the issue

If not, let's see your 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:
grafik
Remember to redact passwords, MAC addresses and any public IP addresses you may have:

ubus call system board
cat /etc/config/network
cat /etc/config/wireless
cat /etc/config/dhcp
cat /etc/config/firewall
1 Like

Many thanks!!!

That works great.

I've spent ages trying to get this working.

Awesome. Glad I could help.

If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.
Thanks! :slight_smile:

1 Like

Just thought I'd add that it also works using 192.168.2.1 in case anyone has the same problem.

Yes, any non-overlapping subnet will work. In this case, your upstream was 192.168.1.0/24, so any 192.168.x.0/24 can be used where x between 0-255 and not 1. Or, you could use any range from the 10.0.0.0/8 or 172.16.0.0/12 ranges, too.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.