Please forgive my ignorance, i have tried numerous examples both gui and cli and i seem to be missing something fundamental. I would greatly appreciate any and all assistance. And with all due respect to wiki authors the content jumps from one version of ui to another and i cant follow.
A-[wifi access point] - gateway192.168.0.1
B-[openwrt_router] wifi connected to A
C-[comp] ethernet connected to B getting internet from A.
D-[comp] wifi connected to B getting internet from A.
So i do the following:
flash/reset, set password.
change lan ip address to 192.168.2.1
in openwrt i connect wifi radio to A.
when i do this [wan]/[wan6]/[wwan (empty)] are in (create/assign firewall zone)
This give me an "associated station" - (wlan1)
So at this point the router doesnt have internet, the connnected devices don't have internet. I don't know what to do next.
The problem is that you cannot have bridged wifi client. You'll have a standalone wifi client interface and a bridge of the lan with the wifi access point.
Forgive me. I dont understand bridged. I thought i did but clearly i have no idea.
I just want internet on computer, i don't know what it's called. Can you please tell me without the bridge how to get the ethernet connection working "i thought that meant bridged"
In a nutshell in a bridged scenario devices connected to A and B would have the IPs from the same subnet.
In your case the subnet of A will be different from the lan subnet of B and packets will be routed between them.
Ok. So i have it working but im not sure if i've done it correctly.
I had to set DNS server to [AP] 192.168.0.1
firewall:
1 lan => wan - accept accept accept and Masquerading on
2 wan => lan - accept accept accept and Masquerading on
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
ubus call system board; \
uci export network; uci export wireless; \
uci export dhcp; uci export firewall; \
head -n -0 /etc/firewall.user; \
ip -4 addr ; ip -4 ro li tab all ; ip -4 ru; \
ls -l /etc/resolv.* /tmp/resolv.*; head -n -0 /etc/resolv.* /tmp/resolv.*
If you do it with the "join network" button, the newly created wwan interface needs to be in the wan firewall zone for forwarding to the Internet to work. I thought that was automatic, but I don't use that join button since what it does in creating an extra network is unnecessary complication.
I usually remove the Ethernet port from the existing wan network and substitute the wifi client. Everything else is default configuration. So what I do for a routed client to get Internet from the neighbors would be:
Start with default configuration.
Go to the wifi page edit the default interface-- change mode to STA, configure SSID and encryption, and set network to "wan".
Go to the network interfaces page and edit wan make sure the "bridge" box is not checked and the attached interface is the wifi STA.
This should now work, assuming the LAN and WAN IP ranges don't overlap. It appears your upstream network is 192.168.0.X, so this will work OK with the default LAN of 192.168.1.X.