Seting up a wifi router on Raspberry Pi with internet connection

Hi,

I have setup OpenWRT on a Raspberry Pi and created one interface for LAN and one interface for WIFI.
The LAN port has address 192.168.1.100 and is connected to the internet via a gateway 192.168.1.1.
The WIFI has its own network 10.0.0.1 and a own DHCP.

When connecting to the WIFI I do get a 10.0.0.136 address as expected and can access the OpenWRT web interface via 10.0.0.1. But how can I connect to the internet on the WIFI device?

I think this a common wifi router scenario, where the router is connected to the internet over ethernet and creates its own wifi network, but I could not find any documentation on how to setup OpenWrt for that scenario.

How do I have to setup the OpenWrt router to make the Wifi device been able to connect to the internet?

Thanks in advance,
sophos

The Raspberry Pi series has a couple challenges you should be aware of:

Within those limitations, you should be able to get some Internet connectivity. Typically one bridges the wireless network(s) to the LAN network(s). Such a configuration is "default" for OpenWrt installs. You seem to be missing some critical routing information to be able to route packets from your 10.0.0.0/24 subnet to a default gateway.

You would need a firewall zone for the wireless, a firewall rule to forward from the wireless zone to the lan zone, and enable masquerading on the lan.

This is how a stock configuration on most routers works, but the two networks are lan forwarding to wan.