Basically i'm trying to emulate this functionality from DD-WRT
I have a GoPro that acts as a wireless AP. My mobile can connect via wifi directly to the gopro. The issue i'm trying to solve is when the mobile and gopro are connect, they have no access to my main network.
I've managed to get openwrt to connect to my gopro's AP via this guide and a 2nd router
How would you want devices on your "main network" to be able to find and to connect to the GoPro? (I don't know how a GoPro reveals itself and its control/contents to cclients.)
Edit: Are you using two routers as shown in the video?
"Routed" or "bridged" -- where the latter would put your network "under the control" of the GoPro, which doesn't seem very usable to me.
The video says that the GoPro has a fixed IP address, something like 10.5.5.9/24
If that's the case, then I think you should be able to just add a wireless client to the GoPro network and be done with it for that router. The problem is that if you have an AP on that router, it is on the same channel as the GoPro and they will "compete" for airtime.
Setting a static "WAN" IP on the GoPro-connected router ("Router GP") in the same subnet as your main router's ("Router Main") LAN (192.168.1.9/24, for example) lets Router Main access the GoPro, with a couple changes in Router GP's firewall. Router GP needs to have NAT (masquerade) turned off and the firewall adjusted to allow forwarding from its WAN to its LAN. Router Main needs a static route for the GoPro subnet (10.5.5.0/24) via the WAN address of Router GP (192.168.1.9). With that, you should be able to reach the GoPro at 10.5.5.9. If you need for the GoPro, for some reason, to access the rest of the world, the default route on Router GP needs to be the LAN address of Router Main (likely 192.168.1.1)
You only need two if you want to run an AP on a different channel than the GoPro or when the GoPro is not connected. It could be done with one, but I’d find those restrictions enough to use a second router for the US$20-40 that would cost. You could also use a supported wireless dongle as it would be as a client, not an AP.
Thanks again. Not sure what has gone wrong. I've gone the two router's route. When I try to ping the gopro from a laptop connected to the main router, I get this
Pinging 10.5.5.9 with 32 bytes of data:
Reply from 10.5.5.9: Destination net unreachable.
OK got it working eventually. Can you tell me more about this
If you need for the GoPro, for some reason, to access the rest of the world, the default route on Router GP needs to be the LAN address of Router Main (likely 192.168.1.1)