How to connect a router with OpenWRT to a public Wifi an share the wifi with connected devices to router?

I have TL-WR902AC v4.6, and the stock firmware has a feature where I can connect the router to a public wifi, and I can create a wifi for devices to join to access the public wifi behind the router. I'm trying to do the same thing with OpenWrt firmware, but I'm lost.

This is what I tried so far with home wifi as a test.

  1. Flashed snapshot to tl-wr902ac-v4
  2. Use SSH to connect to the internet
    • uci set network.lan.ipaddr="192.168.2.200"
    • uci set network.lan.gateway="192.168.2.1"
    • uci set network.lan.dns="192.168.2.1"
    • uci commit
    • /etc/init.d/network restart
  3. Install LuCI
    • opkg update
    • opkg install luci
  4. Enable 5g radio and create a wifi named openwrt
  5. Join home wifi
    • Click on "Scan" next to the 5g radio.
    • Click on "Join Network" next to my home wifi.
    • Fill out the password
    • Save/Apply

Now I see home wifi and openwrt wifi under the 5g radio. However, when I connect a device to openwrt, it has no internet.

I'd appreciate any guidance. Thanks!

Move the uplink connection to the wan firewall zone.

See: https://openwrt.org/docs/guide-user/network/wifi/connect_client_wifi

Also of interest:

1 Like

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