Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guest Wifi mixed with Main Wifi #218

Closed
HeyItsJono opened this issue Dec 30, 2024 · 7 comments
Closed

Guest Wifi mixed with Main Wifi #218

HeyItsJono opened this issue Dec 30, 2024 · 7 comments

Comments

@HeyItsJono
Copy link

HeyItsJono commented Dec 30, 2024

This is an odd/difficult bug to explain; essentially my Guest Wifi hotspot has somehow merged with my main wifi hotspot and I cannot edit their settings individually. Concurrently; devices trying to connect to the Guest wifi hotspot have their connection fail during IP configuration.

I have a main Wifi hotspot named HomeWifi which is associated with the lan lan interface and addresses in subnet 192.168.0.x. It has band steering enabled.
I have a guest Wifi hotspot named HomeWifiIOT which is associated with the Guest1 lan interface and addresses in the subnet 192.168.1.x. It has band steering & 5GHz disabled.

When I go to edit HomeWifiIOT in the Wifi card (e.g. change the password, etc.), the information displayed is the same as the information for HomeWifi, as demonstrated here:

image
image

HomeWifiIOT still exists as a separate hotspot that my devices can see.
If I try to edit any of HomeWifiIOT's settings, it changes settings for HomeWifi instead, and then HomeWifiIOT disappears from my devices' available networks list. After a reboot of the router, the IOT hotspot returns, but attempting to connect to it fails with IP configuration error.

Looking at the source code for the page, both HomeWifi and HomeWifiIOT lead to different AP settings:
image

In case it's helpful, the output of uci show wireless:

wireless.global=wifi
wireless.global.station_history_persistent='0'
wireless.global.station_history_save_delay='24'
wireless.radio_2G=wifi-device
wireless.radio_2G.type='broadcom'
wireless.radio_2G.country='AU'
wireless.radio_2G.channel='auto'
wireless.radio_2G.channelwidth='auto'
wireless.radio_2G.standard='bgn'
wireless.radio_2G.rateset='1(b) 2(b) 5.5(b) 6(b) 9 11(b) 12(b) 18 24(b) 36 48 54'
wireless.radio_2G.ht_security_restriction='1'
wireless.radio_2G.sgi='1'
wireless.radio_2G.cdd='1'
wireless.radio_2G.frame_bursting='1'
wireless.radio_2G.interference_mode='auto'
wireless.radio_2G.interference_channel_list='1 2 3 4 5 6 7 8 9 10 11 12 13'
wireless.radio_2G.acs_config_file='/etc/wireless_acs.conf'
wireless.radio_2G.acs_state='selecting'
wireless.radio_2G.acs_rescan_period='39901'
wireless.radio_2G.acs_trace_level='0'
wireless.radio_2G.acs_chanim_tracing='0'
wireless.radio_2G.acs_traffic_tracing='0'
wireless.radio_2G.acs_policy='2'
wireless.radio_2G.acs_rescan_delay='180'
wireless.radio_2G.acs_rescan_delay_policy='notraffic'
wireless.radio_2G.acs_rescan_delay_max_events='60'
wireless.radio_2G.acs_channel_fail_lockout_period='28800'
wireless.radio_2G.acs_monitor_action='policy'
wireless.radio_2G.acs_tx_traffic_threshold='100'
wireless.radio_2G.acs_rx_traffic_threshold='100'
wireless.radio_2G.acs_traffic_sense_period='10'
wireless.radio_2G.acs_interference_span='2'
wireless.radio_2G.acs_channel_monitor_period='5'
wireless.radio_2G.tx_power_adjust='0'
wireless.radio_2G.stbc='0'
wireless.radio_2G.probe_monitor_vsie_oui='24f128'
wireless.radio_2G.acs_allowed_channels='1 6 11'
wireless.radio_2G.monitor_unassoc_station_state='1'
wireless.radio_2G.state='1'
wireless.wl0=wifi-iface
wireless.wl0.device='radio_2G'
wireless.wl0.mode='ap'
wireless.wl0.state='1'
wireless.wl0.network='lan'
wireless.wl0.reliable_multicast='0'
wireless.wl0.fronthaul='1'
wireless.wl0.ssid='HomeWifi'
wireless.ap0=wifi-ap
wireless.ap0.iface='wl0'
wireless.ap0.state='1'
wireless.ap0.public='1'
wireless.ap0.ap_isolation='0'
wireless.ap0.station_history='1'
wireless.ap0.max_assoc='0'
wireless.ap0.pmksa_cache='1'
wireless.ap0.wps_w7pbc='1'
wireless.ap0.wsc_state='configured'
wireless.ap0.wps_ap_setup_locked='1'
wireless.ap0.wps_credentialformat='passphrase'
wireless.ap0.acl_registration_time='60'
wireless.ap0.trace_modules=' '
wireless.ap0.trace_level='some'
wireless.ap0.security_mode='wpa2-psk'
wireless.ap0.pmf='enabled'
wireless.ap0.bandsteer_id='off'
wireless.ap0.wep_key='DD25D6AAE6'
wireless.ap0.wps_ap_pin='26114798'
wireless.ap0.supported_security_modes='none wpa2 wpa2-psk wpa-wpa2 wpa-wpa2-psk'
wireless.ap0.wps_state='0'
wireless.ap0.acl_mode='disabled'
wireless.ap0.wpa_psk_key='PASSONE'
wireless.radio_5G=wifi-device
wireless.radio_5G.type='broadcom'
wireless.radio_5G.country='AU'
wireless.radio_5G.channel='auto'
wireless.radio_5G.channelwidth='auto'
wireless.radio_5G.standard='anac'
wireless.radio_5G.rateset='6(b) 9 12(b) 18 24(b) 36 48 54'
wireless.radio_5G.ht_security_restriction='1'
wireless.radio_5G.sgi='1'
wireless.radio_5G.cdd='1'
wireless.radio_5G.ldpc='1'
wireless.radio_5G.txbf='1'
wireless.radio_5G.frame_bursting='1'
wireless.radio_5G.interference_mode='auto'
wireless.radio_5G.acs_allowed_channels='36 40 44 48 52 56 60 64 100 104 108 112 132 136 149 153 157 161'
wireless.radio_5G.acs_config_file='/etc/wireless_acs.conf'
wireless.radio_5G.acs_state='selecting'
wireless.radio_5G.acs_rescan_period='39901'
wireless.radio_5G.acs_trace_level='0'
wireless.radio_5G.acs_chanim_tracing='0'
wireless.radio_5G.acs_traffic_tracing='0'
wireless.radio_5G.acs_policy='2'
wireless.radio_5G.acs_rescan_delay='180'	
wireless.radio_5G.acs_rescan_delay_policy='notraffic'
wireless.radio_5G.acs_rescan_delay_max_events='60'
wireless.radio_5G.acs_channel_fail_lockout_period='28800'
wireless.radio_5G.acs_monitor_action='policy'
wireless.radio_5G.acs_tx_traffic_threshold='100'
wireless.radio_5G.acs_rx_traffic_threshold='100'
wireless.radio_5G.acs_traffic_sense_period='10'
wireless.radio_5G.acs_interference_span='2'
wireless.radio_5G.acs_channel_monitor_period='5'
wireless.radio_5G.tx_power_adjust='0'
wireless.radio_5G.mumimo='1'
wireless.radio_5G.rx_amsdu_in_ampdu='0'
wireless.radio_5G.monitor_unassoc_station_state='1'
wireless.radio_5G.state='1'
wireless.wl1=wifi-iface
wireless.wl1.device='radio_5G'
wireless.wl1.mode='ap'
wireless.wl1.state='1'
wireless.wl1.network='lan'
wireless.wl1.reliable_multicast='0'
wireless.wl1.fronthaul='1'
wireless.wl1.ssid='HomeWifi'
wireless.ap2=wifi-ap
wireless.ap2.iface='wl1'
wireless.ap2.state='1'
wireless.ap2.public='1'
wireless.ap2.ap_isolation='0'
wireless.ap2.station_history='1'
wireless.ap2.max_assoc='0'
wireless.ap2.security_mode='wpa2-psk'
wireless.ap2.pmf='enabled'
wireless.ap2.pmksa_cache='1'
wireless.ap2.wps_w7pbc='1'
wireless.ap2.wsc_state='configured'
wireless.ap2.wps_credentialformat='passphrase'
wireless.ap2.wps_ap_setup_locked='1'
wireless.ap2.acl_registration_time='60'
wireless.ap2.trace_modules=' '
wireless.ap2.trace_level='some'
wireless.ap2.bandsteer_id='off'
wireless.ap2.wep_key='DD25D6AAE6'
wireless.ap2.wps_ap_pin='26114798'
wireless.ap2.supported_security_modes='none wpa2 wpa2-psk wpa-wpa2 wpa-wpa2-psk'
wireless.ap2.wps_state='0'
wireless.ap2.acl_mode='disabled'
wireless.ap2.wpa_psk_key='PASSONE'
wireless.bs0=wifi-bandsteer
wireless.bs0.rssi_threshold='-65'
wireless.bs0.rssi_5g_threshold='-80'
wireless.bs0.policy_mode='5'
wireless.bs0.sta_comeback_to='20'
wireless.bs0.state='0'
wireless.bs1=wifi-bandsteer
wireless.bs1.rssi_threshold='-65'
wireless.bs1.rssi_5g_threshold='-80'
wireless.bs1.policy_mode='5'
wireless.bs1.sta_comeback_to='20'
wireless.ap4=wifi-ap
wireless.ap4.iface='wl1_2'
wireless.ap4.state='1'
wireless.ap4.ap_isolation='1'
wireless.ap4.station_history='1'
wireless.ap4.max_assoc='0'
wireless.ap4.public='0'
wireless.ap4.pmf='disabled'
wireless.ap4.pmksa_cache='1'
wireless.ap4.wps_state='0'
wireless.ap4.wps_w7pbc='0'
wireless.ap4.wsc_state='configured'
wireless.ap4.wps_ap_setup_locked='1'
wireless.ap4.acl_mode='unlock'
wireless.ap4.acl_registration_time='60'
wireless.ap4.trace_level='some'
wireless.ap4.bandsteer_id='off'
wireless.ap4.supported_security_modes='none wpa2 wpa2-psk wpa-wpa2 wpa-wpa2-psk'
wireless.ap4.wpa_psk_key='f4nmyfcjrp'
wireless.ap4.security_mode='wpa2-psk'
wireless.wl1_2=wifi-iface
wireless.wl1_2.device='radio_5G'
wireless.wl1_2.mode='ap'
wireless.wl1_2.state='1'
wireless.wl1_2.reliable_multicast='0'
wireless.wl1_2.network='lan'
wireless.wl1_2.backhaul='1'
wireless.wl1_2.ssid='BH-825E08'
wireless.wl0_1=wifi-iface
wireless.wl0_1.device='radio_2G'
wireless.wl0_1.mode='ap'
wireless.wl0_1.state='1'
wireless.wl0_1.reliable_multicast='0'
wireless.wl0_1.network='Guest1'
wireless.wl0_1.ssid='HomeWifiIOT'
wireless.ap1=wifi-ap
wireless.ap1.iface='wl0_1'
wireless.ap1.public='1'
wireless.ap1.station_history='1'
wireless.ap1.max_assoc='0'
wireless.ap1.pmksa_cache='1'
wireless.ap1.wps_state='0'
wireless.ap1.wps_w7pbc='0'
wireless.ap1.wsc_state='configured'
wireless.ap1.wps_ap_setup_locked='1'
wireless.ap1.acl_registration_time='60'
wireless.ap1.trace_modules=' '
wireless.ap1.trace_level='some'
wireless.ap1.supported_security_modes='none wep wpa2-psk wpa-wpa2-psk wpa2 wpa-wpa2'
wireless.ap1.security_mode='wpa2-psk'
wireless.ap1.pmf='enabled'
wireless.ap1.bandsteer_id='off'
wireless.ap1.wep_key='B389AC692F'
wireless.ap1.wps_ap_pin='26114798'
wireless.ap1.state='1'
wireless.ap1.acl_mode='disabled'
wireless.ap1.ap_isolation='0'
wireless.ap1.wpa_psk_key='PASSTWO'
wireless.wl1_1=wifi-iface
wireless.wl1_1.device='radio_5G'
wireless.wl1_1.mode='ap'
wireless.wl1_1.state='1'
wireless.wl1_1.reliable_multicast='0'
wireless.wl1_1.ssid='Guest1-5G'
wireless.wl1_1.network='Guest1_5GHz'
wireless.ap3=wifi-ap
wireless.ap3.iface='wl1_1'
wireless.ap3.state='0'
wireless.ap3.public='1'
wireless.ap3.ap_isolation='1'
wireless.ap3.station_history='1'
wireless.ap3.max_assoc='0'
wireless.ap3.pmksa_cache='1'
wireless.ap3.wps_state='0'
wireless.ap3.wps_w7pbc='0'
wireless.ap3.wsc_state='configured'
wireless.ap3.wps_ap_setup_locked='1'
wireless.ap3.acl_mode='unlock'
wireless.ap3.acl_registration_time='60'
wireless.ap3.trace_modules=' '
wireless.ap3.trace_level='some'
wireless.ap3.supported_security_modes='none wpa2-psk wpa-wpa2-psk wpa2 wpa-wpa2'
wireless.ap3.security_mode='wpa2-psk'
wireless.ap3.pmf='enabled'
wireless.ap3.bandsteer_id='off'
wireless.ap3.wep_key='FF7EB9C322'
wireless.ap3.wpa_psk_key='jnjs57jbsp'
wireless.ap3.wps_ap_pin='26114798'
@seud0nym
Copy link
Owner

Okay, I can see what the issue is.

The way that they determine if the current AP is a Guest is by (stupidly) looking at the setting of ap_isolation, so when you turned off ap_isolation for the Guest network, it buggered up the setting handling.

I will have to have a think and see if I can work out a way to get around it.

seud0nym added a commit that referenced this issue Dec 30, 2024
@seud0nym
Copy link
Owner

I have made a change that I think has fixed it. Please give it try and let me know. You can apply the fix with these commands:

./tch-gui-unhide -u && ./tch-gui-unhide -y

@seud0nym
Copy link
Owner

seud0nym commented Jan 1, 2025

I am going to mark this as closed as I have just done a release. If there are any further problems, please re-open.

@seud0nym seud0nym closed this as completed Jan 1, 2025
@HeyItsJono
Copy link
Author

Hi, thank you so much for the rapid fix! My apologies, I was working night shift so was unable to reply sooner; I've tested the latest update and can confirm this has fixed the issue of the network editing pages overlapping. Unfortunately for some reason DHCP / IP assignment doesn't seem to be working on my Guest/HomeWifiIOT network still. Devices can connect and function on the network if they manually specify a static IP/gateway, but fail to connect/be assigned an IP if trying to connect with DHCP.

@seud0nym
Copy link
Owner

seud0nym commented Jan 4, 2025

Hmm. I just set up the Guest Wi-Fi on my test DJA0230 (basically the same as a DJA0231). I named the SSID HomeWiFiIOT and turned off AP Isolation. I then connected to that SSID with my phone, and I got an IP (192.168.2.7).

What does the log say when you try to connect a device? It should be something like:

Wed Jan  1 16:29:13 2025 daemon.info dnsmasq-dhcp[10185]: DHCPDISCOVER(wl0_1) xx:xx:xx:xx:xx:xx
Wed Jan  1 16:29:13 2025 daemon.info dnsmasq-dhcp[10185]: DHCPOFFER(wl0_1) 192.168.2.7 xx:xx:xx:xx:xx:xx
Wed Jan  1 16:29:13 2025 daemon.info dnsmasq-dhcp[10185]: DHCPDISCOVER(wl0_1) xx:xx:xx:xx:xx:xx
Wed Jan  1 16:29:13 2025 daemon.info dnsmasq-dhcp[10185]: DHCPOFFER(wl0_1) 192.168.2.7 xx:xx:xx:xx:xx:xx
Wed Jan  1 16:29:13 2025 daemon.info dnsmasq-dhcp[10185]: DHCPDISCOVER(wl0_1) xx:xx:xx:xx:xx:xx
Wed Jan  1 16:29:13 2025 daemon.info dnsmasq-dhcp[10185]: DHCPOFFER(wl0_1) 192.168.2.7 xx:xx:xx:xx:xx:xx
Wed Jan  1 16:29:13 2025 daemon.info dnsmasq-dhcp[10185]: DHCPREQUEST(wl0_1) 192.168.2.7 xx:xx:xx:xx:xx:xx
Wed Jan  1 16:29:13 2025 daemon.info dnsmasq-dhcp[10185]: DHCPACK(wl0_1) 192.168.2.7 xx:xx:xx:xx:xx:xx Phone
Wed Jan  1 16:29:13 2025 daemon.info hostmanager: Probing device xx:xx:xx:xx:xx:xx IP address 192.168.2.7 on interface wl0_1

I assume that you do have DHCPv4 Server turned on in the Guest1 Local Network screen? You could also try enabling Detailed DHCP Logging on that screen (for Guest1) to see if it tells you something extra in the log...

@HeyItsJono
Copy link
Author

HeyItsJono commented Jan 4, 2025

Figured it out, was (of course) user error. A couple days ago I had gone in and tried to disable a couple of Firewall User-defined Rules preventing WAN in/out on the IOT subnet. In my sleep-deprived state I stupidly accidently disabled the Guest1 Zone rule instead, just noticed that. Re-enabling it fixed the DHCP issue. Thanks for your help and sorry for the trouble.

@seud0nym
Copy link
Owner

seud0nym commented Jan 4, 2025

I am glad you sorted it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants