Optimum wifi (public wifi) as WAN client?

Greetings. The location I am at has outdoor public wifi (optimum) which I have an account for. The signal is a bit too weak to get service directly from my devices so I am trying to set up an TL-WDR3600 to connect to optimum as a WAN link over wifi and a local SSID for the LAN side. Signal strength is adequate when the router is placed in the right place but it won't pass traffic. I tried using the clone MAC option on the interface using MAC address from a laptop that has already been connected to Optimum successfully but still no go. I did try using another wifi network for the WAN connection to confirm the router is working properly and that works as expected. Are there any other settings that I may be missing that could prevent this from working with Optimum?

...on the interface? like

Hostname to send when requesting DHCP

Client ID to send when requesting DHCP

Vendor Class to send when requesting DHCP

...or the wireless connection? like

BSSID

or other settings?

Seems like I must be missing something

Any help much appreciated!

@rcliff, welcome to the community!

This sound like what you want to do.

Did you do a WiFi scan and join the network, thereby creating a WWAN?

Yes, exactly. I scanned and that how I added the optimum connection as WWAN. I used same process for another wifi connection which worked so that's why I think it is some setting and not the process

You mean you've attempted to make 2 WWANs on the same device?

Does the DHCP client successfully get an IP from the public network?

When it does, that IP must be outside your LAN subnet. Otherwise you can't route to the Internet, you'd need to change the LAN configuration so it doesn't conflict.

The BSSID setting constrains your client to only connect to one AP. Most use cases are better if you leave it unset.

1 Like

Nope, not getting an IP on the WAN interface

Ok, do you get signal bars on the client? Any indication of connecting ( or failing to connect ) in the logs?

Is the network open or encrypted? EAP authentication requires removing the default wpad-basic and installing the full wpad.

Signal looks ok :point_up:. Network is open. Normally, when logging in from a device, you get a login page to authenticate and that is why I was trying to clone MAC from a machine that has already be authenticated.

Here is a snippet of the log after manually trying to restart the WAN interface

Thu May 21 16:55:17 2020 daemon.notice netifd: wwan (12015): udhcpc: sending renew to 25.224.0.1
Thu May 21 16:55:17 2020 daemon.notice netifd: wwan (12015): udhcpc: lease of 25.227.192.69 obtained, lease time 150
Thu May 21 16:55:33 2020 daemon.notice netifd: wwan (12015): udhcpc: received SIGTERM
Thu May 21 16:55:33 2020 daemon.notice netifd: Interface 'wwan' is now down
Thu May 21 16:55:33 2020 daemon.notice netifd: Interface 'wwan' is disabled
Thu May 21 16:55:33 2020 daemon.notice netifd: Interface 'wwan' is enabled
Thu May 21 16:55:33 2020 daemon.notice netifd: Interface 'wwan' is setting up now
Thu May 21 16:55:33 2020 daemon.warn dnsmasq[1672]: no servers found in /tmp/resolv.conf.auto, will retry
Thu May 21 16:55:34 2020 daemon.notice netifd: wwan (12165): udhcpc: started, v1.30.1
Thu May 21 16:55:34 2020 daemon.notice netifd: wwan (12165): udhcpc: sending discover
Thu May 21 16:55:34 2020 kern.info kernel: [12512.992512] wlan1: deauthenticating from 4a:ee:0c:f3:f7:7f by local choice (Reason: 3=DEAUTH_LEAVING)
Thu May 21 16:55:34 2020 daemon.notice netifd: Network device 'wlan1' link is down
Thu May 21 16:55:34 2020 daemon.notice netifd: Interface 'wwan' has link connectivity loss
Thu May 21 16:55:34 2020 daemon.notice wpa_supplicant[11964]: wlan1: CTRL-EVENT-DISCONNECTED bssid=4a:ee:0c:f3:f7:7f reason=3 locally_generated=1
Thu May 21 16:55:34 2020 daemon.notice wpa_supplicant[11964]: nl80211: deinit ifname=wlan1 disabled_11b_rates=0
Thu May 21 16:55:34 2020 daemon.notice wpa_supplicant[11964]: wlan1: CTRL-EVENT-TERMINATING
Thu May 21 16:55:34 2020 daemon.notice netifd: wwan (12165): udhcpc: read error: Network is down, reopening socket
Thu May 21 16:55:34 2020 daemon.notice netifd: Interface 'wwan' is disabled
Thu May 21 16:55:34 2020 daemon.notice netifd: wwan (12165): udhcpc: bind: No such device
Thu May 21 16:55:34 2020 daemon.notice netifd: Interface 'wwan' is now down
Thu May 21 16:55:35 2020 kern.info kernel: [12514.148596] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
Thu May 21 16:55:35 2020 daemon.notice wpa_supplicant[12269]: Successfully initialized wpa_supplicant
Thu May 21 16:55:36 2020 daemon.notice netifd: Interface 'wwan' is enabled
Thu May 21 16:55:38 2020 daemon.notice wpa_supplicant[12270]: wlan1: SME: Trying to authenticate with 6e:19:8f:13:2d:cc (SSID='optimumwifi' freq=5180 MHz)
Thu May 21 16:55:38 2020 kern.info kernel: [12517.039151] wlan1: authenticate with 6e:19:8f:13:2d:cc
Thu May 21 16:55:38 2020 kern.info kernel: [12517.054084] wlan1: send auth to 6e:19:8f:13:2d:cc (try 1/3)
Thu May 21 16:55:38 2020 kern.info kernel: [12517.060556] wlan1: authenticated
Thu May 21 16:55:38 2020 daemon.notice wpa_supplicant[12270]: wlan1: Trying to associate with 6e:19:8f:13:2d:cc (SSID='optimumwifi' freq=5180 MHz)
Thu May 21 16:55:38 2020 kern.info kernel: [12517.093770] wlan1: associate with 6e:19:8f:13:2d:cc (try 1/3)
Thu May 21 16:55:38 2020 daemon.notice wpa_supplicant[12270]: wlan1: Associated with 6e:19:8f:13:2d:cc
Thu May 21 16:55:38 2020 daemon.notice netifd: Network device 'wlan1' link is up
Thu May 21 16:55:38 2020 daemon.notice netifd: Interface 'wwan' has link connectivity
Thu May 21 16:55:38 2020 daemon.notice netifd: Interface 'wwan' is setting up now
Thu May 21 16:55:38 2020 kern.info kernel: [12517.107503] wlan1: RX AssocResp from 6e:19:8f:13:2d:cc (capab=0x1001 status=0 aid=1)
Thu May 21 16:55:38 2020 kern.info kernel: [12517.115731] wlan1: associated
Thu May 21 16:55:38 2020 daemon.notice wpa_supplicant[12270]: wlan1: CTRL-EVENT-CONNECTED - Connection to 6e:19:8f:13:2d:cc completed [id=0 id_str=]
Thu May 21 16:55:38 2020 kern.info kernel: [12517.124317] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
Thu May 21 16:55:38 2020 daemon.notice wpa_supplicant[12270]: wlan1: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Thu May 21 16:55:38 2020 kern.debug kernel: [12517.170066] wlan1: Limiting TX power to 30 (30 - 0) dBm as advertised by 6e:19:8f:13:2d:cc
Thu May 21 16:55:38 2020 daemon.notice netifd: wwan (12319): udhcpc: started, v1.30.1
Thu May 21 16:55:38 2020 daemon.notice netifd: wwan (12319): udhcpc: sending discover
Thu May 21 16:55:41 2020 daemon.info procd: Instance sysntpd::instance1 pid 12079 not stopped on SIGTERM, sending SIGKILL instead
Thu May 21 16:55:41 2020 daemon.notice netifd: wwan (12319): udhcpc: sending discover
Thu May 21 16:55:44 2020 daemon.notice netifd: wwan (12319): udhcpc: sending discover